Repository navigation
Commit 1322dc3
iio: mxs-lradc: make ADC reads not disable touchscreen interrupts
commit 86bf7f3 upstream.
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 <kristina.martsenko@gmail.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>1 parent 567a6d5 commit 1322dc3
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
| |||
817 | 820 | | |
818 | 821 | | |
819 | 822 | | |
820 | | - | |
| 823 | + | |
821 | 824 | | |
822 | 825 | | |
823 | 826 | | |
| |||
1264 | 1267 | | |
1265 | 1268 | | |
1266 | 1269 | | |
1267 | | - | |
1268 | | - | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1269 | 1273 | | |
1270 | 1274 | | |
1271 | 1275 | | |
| |||
1301 | 1305 | | |
1302 | 1306 | | |
1303 | 1307 | | |
1304 | | - | |
1305 | | - | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
1306 | 1311 | | |
1307 | 1312 | | |
1308 | 1313 | | |
| |||
1547 | 1552 | | |
1548 | 1553 | | |
1549 | 1554 | | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
1550 | 1560 | | |
1551 | 1561 | | |
1552 | 1562 | | |
| |||
0 commit comments