input: Provide coordinate logs for accelerated WM97xx I/O
Subsystems (2)
PATCH 1/1 input: Provide coordinate logs for accelerated WM97xx I/O
This aids debug of problematic systems.
Signed-off-by Mark Brown <[email protected]>
--- drivers/input/touchscreen/mainstone-wm97xx.c | 3 +++ drivers/input/touchscreen/zylonite-wm97xx.c | 3 +++ 2 files changed, 6 insertions(+), 0 deletions(-)
drivers/input/touchscreen/mainstone-wm97xx.c +3 -0
@@ -153,6 +153,9 @@ static int wm97xx_acc_pen_down(struct wm97xx *wm)if (pressure) p =MODR ; +dev_dbg (wm->dev,"Raw coordinates: x=%x, y=%x, p=%x\n" , + x, y, p); +/* are samples valid */ if ((x & WM97XX_ADCSRC_MASK) != WM97XX_ADCSEL_X || (y & WM97XX_ADCSRC_MASK) != WM97XX_ADCSEL_Y ||
drivers/input/touchscreen/zylonite-wm97xx.c +3 -0
@@ -118,6 +118,9 @@ static int wm97xx_acc_pen_down(struct wm97xx *wm)if (pressure) p =MODR ; +dev_dbg (wm->dev,"Raw coordinates: x=%x, y=%x, p=%x\n" , + x, y, p); +/* are samples valid */ if ((x & WM97XX_ADCSRC_MASK) != WM97XX_ADCSEL_X || (y & WM97XX_ADCSRC_MASK) != WM97XX_ADCSEL_Y ||
Signature · 1 line
1.6.6
Quoted 3 lines · Mark Brown
This aids debug of problematic systems.
Signed-off-by Mark Brown <[email protected]>
Applied, thank you Mark.
Signature · 1 line
Dmitry