From: Greg Kroah-Hartman Date: Mon, 23 May 2022 06:45:21 +0000 (+0200) Subject: 5.10-stable patches X-Git-Tag: v4.9.316~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2b1a3121128ad6cd2d4c022ed5f0ccaf08cb486c;p=thirdparty%2Fkernel%2Fstable-queue.git 5.10-stable patches added patches: input-ili210x-fix-reset-timing.patch --- diff --git a/queue-5.10/input-ili210x-fix-reset-timing.patch b/queue-5.10/input-ili210x-fix-reset-timing.patch new file mode 100644 index 00000000000..4fd1333a9cb --- /dev/null +++ b/queue-5.10/input-ili210x-fix-reset-timing.patch @@ -0,0 +1,42 @@ +From e4920d42ce0e9c8aafb7f64b6d9d4ae02161e51e Mon Sep 17 00:00:00 2001 +From: Marek Vasut +Date: Wed, 18 May 2022 14:28:32 -0700 +Subject: Input: ili210x - fix reset timing + +From: Marek Vasut + +commit e4920d42ce0e9c8aafb7f64b6d9d4ae02161e51e upstream. + +According to Ilitek "231x & ILI251x Programming Guide" Version: 2.30 +"2.1. Power Sequence", "T4 Chip Reset and discharge time" is minimum +10ms and "T2 Chip initial time" is maximum 150ms. Adjust the reset +timings such that T4 is 12ms and T2 is 160ms to fit those figures. + +This prevents sporadic touch controller start up failures when some +systems with at least ILI251x controller boot, without this patch +the systems sometimes fail to communicate with the touch controller. + +Fixes: 201f3c803544c ("Input: ili210x - add reset GPIO support") +Signed-off-by: Marek Vasut +Link: https://lore.kernel.org/r/20220518204901.93534-1-marex@denx.de +Cc: stable@vger.kernel.org +Signed-off-by: Dmitry Torokhov +Signed-off-by: Greg Kroah-Hartman +--- + drivers/input/touchscreen/ili210x.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/drivers/input/touchscreen/ili210x.c ++++ b/drivers/input/touchscreen/ili210x.c +@@ -420,9 +420,9 @@ static int ili210x_i2c_probe(struct i2c_ + if (error) + return error; + +- usleep_range(50, 100); ++ usleep_range(12000, 15000); + gpiod_set_value_cansleep(reset_gpio, 0); +- msleep(100); ++ msleep(160); + } + + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); diff --git a/queue-5.10/series b/queue-5.10/series index aaa1dd216fc..138c7731952 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -88,3 +88,4 @@ net-atlantic-reduce-scope-of-is_rsc_complete.patch net-atlantic-add-check-for-max_skb_frags.patch net-atlantic-verify-hw_head_-lies-within-tx-buffer-r.patch arm64-enable-repeat-tlbi-workaround-on-kryo4xx-gold-.patch +input-ili210x-fix-reset-timing.patch