• Vignesh R's avatar
    mfd: ti_am335x_tscadc: Fix TSC operation after ADC continouous mode · 6ac734d2
    Vignesh R authored
    After enabling and disabling ADC continuous mode via sysfs, ts_print_raw
    fails to return any data. This is because when ADC is configured for
    continuous mode, it disables touch screen steps.These steps are not
    re-enabled when ADC continuous mode is disabled. Therefore existing values
    of REG_SE needs to be cached before enabling continuous mode and
    disabling touch screen steps and enabling ADC steps. The cached value
    are to be restored to REG_SE once ADC is disabled.
    
    Fixes: 7ca6740c ("mfd: input: iio: ti_amm335x: Rework TSC/ADC synchronization")
    
    Cc: stable@vger.kernel.org # v3.13+
    Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    6ac734d2
ti_am335x_tscadc.c 9.66 KB