diff options
author | Jason Wang <jason77.wang@gmail.com> | 2010-10-13 11:35:40 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-10-17 21:10:28 -0700 |
commit | 2991a1ca6e9b13b639a82c0eec0cbc191bf1f42f (patch) | |
tree | ccf612f19613723148f9c40965af15a7f7c79af4 /drivers/input/mousedev.c | |
parent | 0982258264d2f615612ab957634efdeb874f47c8 (diff) | |
download | blackbird-op-linux-2991a1ca6e9b13b639a82c0eec0cbc191bf1f42f.tar.gz blackbird-op-linux-2991a1ca6e9b13b639a82c0eec0cbc191bf1f42f.zip |
Input: ads7846 - switch to using threaded IRQ
Commit 9114337 introduces regulator operations in ads7846 touchscreen
driver. Among these operations, some are called while holding a
spinlock. On many platforms regulators reside on slow buses, such as
I2C/SPI and require sleep while accessing them.
The touchscreen itself is also a SPI device and currently relies on
asynchronous SPI access to avoid sleeping in interrupt context. Let's
switch to using threaded IRQ to be able to access SPI bus
synchronously (which simplifies driver a bit); it also allows safe
access to the regulators as well.
This has been tested on the ti_omap3530evm board:
1) using ts_lib after normal boot
2) using ts_lib after "#echo 1/0 > /sys/bus/spi/devices/spi0.1/disable"
3) using ts_lib after "#echo mem > /sys/power/state" and "wake up"
Also tested on pandora.
Based on original patch by Dmitry Torokhov.
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mousedev.c')
0 files changed, 0 insertions, 0 deletions