[PATCH 03/10] gpio: pxa: make pxa_gpio_has_pinctrl return false for MMP_GPIO

Duje Mihanović posted 10 patches 1 year, 2 months ago
There is a newer version of this series
[PATCH 03/10] gpio: pxa: make pxa_gpio_has_pinctrl return false for MMP_GPIO
Posted by Duje Mihanović 1 year, 2 months ago
Fixes the incorrect assumption that mmp-gpio needs a pinctrl handle,
causing devices consuming GPIO to be indefinitely deferred.

Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
---
 drivers/gpio/gpio-pxa.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpio/gpio-pxa.c b/drivers/gpio/gpio-pxa.c
index 076ee6dff4d5..b48d142b736d 100644
--- a/drivers/gpio/gpio-pxa.c
+++ b/drivers/gpio/gpio-pxa.c
@@ -238,6 +238,7 @@ static bool pxa_gpio_has_pinctrl(void)
 	switch (gpio_type) {
 	case PXA3XX_GPIO:
 	case MMP2_GPIO:
+	case MMP_GPIO:
 		return false;
 
 	default:
-- 
2.41.0


Re: [PATCH 03/10] gpio: pxa: make pxa_gpio_has_pinctrl return false for MMP_GPIO
Posted by Andy Shevchenko 1 year, 1 month ago
On Fri, Jul 21, 2023 at 10:37:45PM +0200, Duje Mihanović wrote:
> Fixes the incorrect assumption that mmp-gpio needs a pinctrl handle,
> causing devices consuming GPIO to be indefinitely deferred.

If this is a fix, add the Fixes tag and locate it closer to the beginning of
the series, so it may be backported with an ease.

-- 
With Best Regards,
Andy Shevchenko