• Fang, Yang A's avatar
    ASoC: ts3a227e: do not report jack status when there is i2c read err · c4a99a4b
    Fang, Yang A authored
    After suspend -> resume the ts3a227e_interrupt sometimes comes before i2c
    controller resume is called .regmap_read will return incorrect status
    and report a wrong jack status.This patch will disable irq on suspend
    and enable irq again on the resume to make sure interrupt is coming
    after TI resumes. Also We should return if there is read err,the
    interrupt will come again since it is level triggered and we are not yet
    clear the interrupt.
    
    In addtion,cht_bsw_max98090_ti machine driver registered additional
    notifier base on jack event which will program the audio codec.there
    will be codec timeout err if such event occurs prior to i2c controller
    is resumed.
    Signed-off-by: default avatarFang, Yang A <yang.a.fang@intel.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    c4a99a4b
ts3a227e.c 10.2 KB