Patch "gpiolib: of: add polarity quirk for TSC2005" has been added to the 5.15-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

    gpiolib: of: add polarity quirk for TSC2005

to the 5.15-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:
     gpiolib-of-add-polarity-quirk-for-tsc2005.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 892ab56aefa4db8459c4db45329731ccf892e62a
Author: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
Date:   Wed Jul 3 11:26:09 2024 -0700

    gpiolib: of: add polarity quirk for TSC2005
    
    [ Upstream commit f8d76c2c313c56d5cb894a243dff4550f048278d ]
    
    DTS for Nokia N900 incorrectly specifies "active high" polarity for
    the reset line, while the chip documentation actually specifies it as
    "active low".  In the past the driver fudged gpiod API and inverted
    the logic internally, but it was changed in d0d89493bff8.
    
    Fixes: d0d89493bff8 ("Input: tsc2004/5 - switch to using generic device properties")
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
    Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/ZoWXwYtwgJIxi-hD@xxxxxxxxxx
    Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index 7a77d9cd9c774..608526ce7bab0 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -173,6 +173,14 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np,
 		 */
 		{ "himax,hx8357",	"gpios-reset",	false },
 		{ "himax,hx8369",	"gpios-reset",	false },
+#endif
+#if IS_ENABLED(CONFIG_TOUCHSCREEN_TSC2005)
+		/*
+		 * DTS for Nokia N900 incorrectly specified "active high"
+		 * polarity for the reset line, while the chip actually
+		 * treats it as "active low".
+		 */
+		{ "ti,tsc2005",		"reset-gpios",	false },
 #endif
 	};
 	unsigned int i;




[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