From: Kristina Martšenko Date: Sun, 25 Jan 2015 16:28:20 +0000 (+0200) Subject: iio: mxs-lradc: make ADC reads not disable touchscreen interrupts X-Git-Tag: omap-for-v4.1/wl12xx-dt~47^2~4^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86bf7f3ef7e961e91e16dceb31ae0f583483b204;p=pandora-kernel.git iio: mxs-lradc: make ADC reads not disable touchscreen interrupts Reading a channel through sysfs, or starting a buffered capture, will currently turn off the touchscreen. This is because the read_raw() and buffer preenable()/postdisable() callbacks disable interrupts for all LRADC channels, including those the touchscreen uses. So make the callbacks only disable interrupts for the channels they use. This means channel 0 for read_raw() and channels 0-5 for the buffer (if the touchscreen is enabled). Since the touchscreen uses different channels (6 and 7), it no longer gets turned off. Note that only i.MX28 is affected by this issue, i.MX23 should be fine. Signed-off-by: Kristina Martšenko Reviewed-by: Marek Vasut Cc: Stable@vger.kernel.org Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed