Patch "Input: st1232 - add IDLE state as ready condition" has been added to the 5.11-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Input: st1232 - add IDLE state as ready condition

to the 5.11-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     input-st1232-add-idle-state-as-ready-condition.patch
and it can be found in the queue-5.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 1abc7b445e080c232d11337c2d977c45575361e4
Author: Michael Tretter <m.tretter@xxxxxxxxxxxxxx>
Date:   Fri Feb 19 10:37:00 2021 -0800

    Input: st1232 - add IDLE state as ready condition
    
    [ Upstream commit 6524d8eac258452e547f8a49c8a965ac6dd8a161 ]
    
    The st1232 can switch from NORMAL to IDLE state after the configured
    idle time (by default 8 s). If the st1232 is not reset during probe, it
    might already be ready but in IDLE state. Since it does not enter NORMAL
    state in this case, probe fails.
    
    Fix the wait function to report the IDLE state as ready, too.
    
    Fixes: f605be6a57b4 ("Input: st1232 - wait until device is ready before reading resolution")
    Signed-off-by: Michael Tretter <m.tretter@xxxxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210219110556.1858969-1-m.tretter@xxxxxxxxxxxxxx
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c
index b4e7bcbe9b91d..885f0572488dd 100644
--- a/drivers/input/touchscreen/st1232.c
+++ b/drivers/input/touchscreen/st1232.c
@@ -94,7 +94,7 @@ static int st1232_ts_wait_ready(struct st1232_ts_data *ts)
 
 	for (retries = 10; retries; retries--) {
 		error = st1232_ts_read_data(ts, REG_STATUS, 1);
-		if (!error && ts->read_buf[0] == (STATUS_NORMAL | ERROR_NONE))
+		if (!error && ts->read_buf[0] == (STATUS_NORMAL | STATUS_IDLE | ERROR_NONE))
 			return 0;
 
 		usleep_range(1000, 2000);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux