* [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks
@ 2025-04-02 12:19 Andy Shevchenko
2025-04-02 12:20 ` [PATCH v1 1/2] gpiolib: of: Fix the choice for Ingenic NAND quirk Andy Shevchenko
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Andy Shevchenko @ 2025-04-02 12:19 UTC (permalink / raw)
To: Andy Shevchenko, linux-gpio, linux-kernel
Cc: Linus Walleij, Bartosz Golaszewski
Just a couple of minor updates to the GPIO OF quirks.
Andy Shevchenko (2):
gpiolib: of: Fix the choice for Ingenic NAND quirk
gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment
drivers/gpio/gpiolib-of.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--
2.47.2
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH v1 1/2] gpiolib: of: Fix the choice for Ingenic NAND quirk 2025-04-02 12:19 [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks Andy Shevchenko @ 2025-04-02 12:20 ` Andy Shevchenko 2025-04-15 8:02 ` Linus Walleij 2025-04-02 12:20 ` [PATCH v1 2/2] gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment Andy Shevchenko 2025-04-08 9:07 ` [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks Bartosz Golaszewski 2 siblings, 1 reply; 6+ messages in thread From: Andy Shevchenko @ 2025-04-02 12:20 UTC (permalink / raw) To: Andy Shevchenko, linux-gpio, linux-kernel Cc: Linus Walleij, Bartosz Golaszewski The Ingenic NAND quirk has been added under CONFIG_LCD_HX8357 ifdeffery which sounds quite wrong. Fix the choice for Ingenic NAND quirk by wrapping it into own ifdeffery related to the respective driver. Fixes: 3a7fd473bd5d ("mtd: rawnand: ingenic: move the GPIO quirk to gpiolib-of.c") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/gpio/gpiolib-of.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index eb667f8f1ead..8fff6fdfb4a1 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -193,6 +193,8 @@ 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_MTD_NAND_JZ4780) /* * The rb-gpios semantics was undocumented and qi,lb60 (along with * the ingenic driver) got it wrong. The active state encodes the -- 2.47.2 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/2] gpiolib: of: Fix the choice for Ingenic NAND quirk 2025-04-02 12:20 ` [PATCH v1 1/2] gpiolib: of: Fix the choice for Ingenic NAND quirk Andy Shevchenko @ 2025-04-15 8:02 ` Linus Walleij 0 siblings, 0 replies; 6+ messages in thread From: Linus Walleij @ 2025-04-15 8:02 UTC (permalink / raw) To: Andy Shevchenko; +Cc: linux-gpio, linux-kernel, Bartosz Golaszewski On Wed, Apr 2, 2025 at 2:21 PM Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote: > The Ingenic NAND quirk has been added under CONFIG_LCD_HX8357 ifdeffery > which sounds quite wrong. Fix the choice for Ingenic NAND quirk > by wrapping it into own ifdeffery related to the respective driver. > > Fixes: 3a7fd473bd5d ("mtd: rawnand: ingenic: move the GPIO quirk to gpiolib-of.c") > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 2/2] gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment 2025-04-02 12:19 [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks Andy Shevchenko 2025-04-02 12:20 ` [PATCH v1 1/2] gpiolib: of: Fix the choice for Ingenic NAND quirk Andy Shevchenko @ 2025-04-02 12:20 ` Andy Shevchenko 2025-04-15 8:03 ` Linus Walleij 2025-04-08 9:07 ` [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks Bartosz Golaszewski 2 siblings, 1 reply; 6+ messages in thread From: Andy Shevchenko @ 2025-04-02 12:20 UTC (permalink / raw) To: Andy Shevchenko, linux-gpio, linux-kernel Cc: Linus Walleij, Bartosz Golaszewski The regulator comment in of_gpio_set_polarity_by_property() made on top of a couple of the cases, while Atmel HSMCI quirk is not related to that. Make it clear by moving Atmel HSMCI quirk up out of the scope of the regulator comment. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/gpio/gpiolib-of.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 8fff6fdfb4a1..65f6a7177b78 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -268,6 +268,9 @@ static void of_gpio_set_polarity_by_property(const struct device_node *np, { "fsl,imx8qm-fec", "phy-reset-gpios", "phy-reset-active-high" }, { "fsl,s32v234-fec", "phy-reset-gpios", "phy-reset-active-high" }, #endif +#if IS_ENABLED(CONFIG_MMC_ATMELMCI) + { "atmel,hsmci", "cd-gpios", "cd-inverted" }, +#endif #if IS_ENABLED(CONFIG_PCI_IMX6) { "fsl,imx6q-pcie", "reset-gpio", "reset-gpio-active-high" }, { "fsl,imx6sx-pcie", "reset-gpio", "reset-gpio-active-high" }, @@ -293,9 +296,6 @@ static void of_gpio_set_polarity_by_property(const struct device_node *np, #if IS_ENABLED(CONFIG_REGULATOR_GPIO) { "regulator-gpio", "enable-gpio", "enable-active-high" }, { "regulator-gpio", "enable-gpios", "enable-active-high" }, -#endif -#if IS_ENABLED(CONFIG_MMC_ATMELMCI) - { "atmel,hsmci", "cd-gpios", "cd-inverted" }, #endif }; unsigned int i; -- 2.47.2 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 2/2] gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment 2025-04-02 12:20 ` [PATCH v1 2/2] gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment Andy Shevchenko @ 2025-04-15 8:03 ` Linus Walleij 0 siblings, 0 replies; 6+ messages in thread From: Linus Walleij @ 2025-04-15 8:03 UTC (permalink / raw) To: Andy Shevchenko; +Cc: linux-gpio, linux-kernel, Bartosz Golaszewski On Wed, Apr 2, 2025 at 2:21 PM Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote: > The regulator comment in of_gpio_set_polarity_by_property() > made on top of a couple of the cases, while Atmel HSMCI quirk > is not related to that. Make it clear by moving Atmel HSMCI > quirk up out of the scope of the regulator comment. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks 2025-04-02 12:19 [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks Andy Shevchenko 2025-04-02 12:20 ` [PATCH v1 1/2] gpiolib: of: Fix the choice for Ingenic NAND quirk Andy Shevchenko 2025-04-02 12:20 ` [PATCH v1 2/2] gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment Andy Shevchenko @ 2025-04-08 9:07 ` Bartosz Golaszewski 2 siblings, 0 replies; 6+ messages in thread From: Bartosz Golaszewski @ 2025-04-08 9:07 UTC (permalink / raw) To: linux-gpio, linux-kernel, Andy Shevchenko Cc: Bartosz Golaszewski, Linus Walleij, Bartosz Golaszewski From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> On Wed, 02 Apr 2025 15:19:59 +0300, Andy Shevchenko wrote: > Just a couple of minor updates to the GPIO OF quirks. > > Andy Shevchenko (2): > gpiolib: of: Fix the choice for Ingenic NAND quirk > gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment > > drivers/gpio/gpiolib-of.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > [...] Applied, thanks! [1/2] gpiolib: of: Fix the choice for Ingenic NAND quirk https://git.kernel.org/brgl/linux/c/2b9c536430126c233552cdcd6ec9d5077454ece4 [2/2] gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment https://git.kernel.org/brgl/linux/c/b8c7a1ac884cc267d1031f8de07f1a689a69fbab Best regards, -- Bartosz Golaszewski <bartosz.golaszewski@linaro.org> ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-04-15 8:04 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2025-04-02 12:19 [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks Andy Shevchenko 2025-04-02 12:20 ` [PATCH v1 1/2] gpiolib: of: Fix the choice for Ingenic NAND quirk Andy Shevchenko 2025-04-15 8:02 ` Linus Walleij 2025-04-02 12:20 ` [PATCH v1 2/2] gpiolib: of: Move Atmel HSMCI quirk up out of the regulator comment Andy Shevchenko 2025-04-15 8:03 ` Linus Walleij 2025-04-08 9:07 ` [PATCH v1 0/2] gpiolib: of: Fix and amendment of OF quirks Bartosz Golaszewski
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®