linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base
@ 2023-05-06  8:59 haibo.chen
  2023-05-06  8:59 ` [PATCH 2/2] gpio: mxc: " haibo.chen
  2023-05-06 13:04 ` [PATCH 1/2] gpio: vf610: " Linus Walleij
  0 siblings, 2 replies; 13+ messages in thread
From: haibo.chen @ 2023-05-06  8:59 UTC (permalink / raw)
  To: linus.walleij, brgl
  Cc: linux-gpio, linux-kernel, linux-imx, haibo.chen, christophe.leroy

From: Haibo Chen <haibo.chen@nxp.com>

gpiolib want to get completely rid of static gpiobase allocation,
so switch to dynamic allocat GPIO base, also can avoid warning
message:

[    1.529974] gpio gpiochip0: Static allocation of GPIO base
is deprecated, use dynamic allocation.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
 drivers/gpio/gpio-vf610.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index d3f3a69d4907..70e16cef7738 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -259,7 +259,6 @@ static void vf610_gpio_disable_clk(void *data)
 static int vf610_gpio_probe(struct platform_device *pdev)
 {
 	struct device *dev = &pdev->dev;
-	struct device_node *np = dev->of_node;
 	struct vf610_gpio_port *port;
 	struct gpio_chip *gc;
 	struct gpio_irq_chip *girq;
@@ -319,7 +318,7 @@ static int vf610_gpio_probe(struct platform_device *pdev)
 	gc->parent = dev;
 	gc->label = dev_name(dev);
 	gc->ngpio = VF610_GPIO_PER_PORT;
-	gc->base = of_alias_get_id(np, "gpio") * VF610_GPIO_PER_PORT;
+	gc->base = -1;
 
 	gc->request = gpiochip_generic_request;
 	gc->free = gpiochip_generic_free;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-05-06  8:59 [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base haibo.chen
@ 2023-05-06  8:59 ` haibo.chen
  2023-05-06 13:06   ` Linus Walleij
  2023-05-26 13:12   ` Bartosz Golaszewski
  2023-05-06 13:04 ` [PATCH 1/2] gpio: vf610: " Linus Walleij
  1 sibling, 2 replies; 13+ messages in thread
From: haibo.chen @ 2023-05-06  8:59 UTC (permalink / raw)
  To: linus.walleij, brgl
  Cc: linux-gpio, linux-kernel, linux-imx, haibo.chen, christophe.leroy

From: Haibo Chen <haibo.chen@nxp.com>

gpiolib want to get completely rid of static gpiobase allocation,
so switch to dynamic allocat GPIO base, also can avoid warning
message:

[    1.529974] gpio gpiochip0: Static allocation of GPIO base
is deprecated, use dynamic allocation.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
 drivers/gpio/gpio-mxc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index 9d0cec4b82a3..abc129a88a62 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -462,8 +462,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)
 	port->gc.request = gpiochip_generic_request;
 	port->gc.free = gpiochip_generic_free;
 	port->gc.to_irq = mxc_gpio_to_irq;
-	port->gc.base = (pdev->id < 0) ? of_alias_get_id(np, "gpio") * 32 :
-					     pdev->id * 32;
+	port->gc.base = -1;
 
 	err = devm_gpiochip_add_data(&pdev->dev, &port->gc, port);
 	if (err)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base
  2023-05-06  8:59 [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base haibo.chen
  2023-05-06  8:59 ` [PATCH 2/2] gpio: mxc: " haibo.chen
@ 2023-05-06 13:04 ` Linus Walleij
  2023-08-21  2:47   ` Bough Chen
  1 sibling, 1 reply; 13+ messages in thread
From: Linus Walleij @ 2023-05-06 13:04 UTC (permalink / raw)
  To: haibo.chen; +Cc: brgl, linux-gpio, linux-kernel, linux-imx, christophe.leroy

On Sat, May 6, 2023 at 10:56 AM <haibo.chen@nxp.com> wrote:

> From: Haibo Chen <haibo.chen@nxp.com>
>
> gpiolib want to get completely rid of static gpiobase allocation,
> so switch to dynamic allocat GPIO base, also can avoid warning
> message:
>
> [    1.529974] gpio gpiochip0: Static allocation of GPIO base
> is deprecated, use dynamic allocation.
>
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-05-06  8:59 ` [PATCH 2/2] gpio: mxc: " haibo.chen
@ 2023-05-06 13:06   ` Linus Walleij
  2023-08-21  2:47     ` Bough Chen
  2023-05-26 13:12   ` Bartosz Golaszewski
  1 sibling, 1 reply; 13+ messages in thread
From: Linus Walleij @ 2023-05-06 13:06 UTC (permalink / raw)
  To: haibo.chen; +Cc: brgl, linux-gpio, linux-kernel, linux-imx, christophe.leroy

On Sat, May 6, 2023 at 10:56 AM <haibo.chen@nxp.com> wrote:

> From: Haibo Chen <haibo.chen@nxp.com>
>
> gpiolib want to get completely rid of static gpiobase allocation,
> so switch to dynamic allocat GPIO base, also can avoid warning
> message:
>
> [    1.529974] gpio gpiochip0: Static allocation of GPIO base
> is deprecated, use dynamic allocation.
>
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-05-06  8:59 ` [PATCH 2/2] gpio: mxc: " haibo.chen
  2023-05-06 13:06   ` Linus Walleij
@ 2023-05-26 13:12   ` Bartosz Golaszewski
  1 sibling, 0 replies; 13+ messages in thread
From: Bartosz Golaszewski @ 2023-05-26 13:12 UTC (permalink / raw)
  To: haibo.chen
  Cc: linus.walleij, linux-gpio, linux-kernel, linux-imx, christophe.leroy

On Sat, May 6, 2023 at 10:56 AM <haibo.chen@nxp.com> wrote:
>
> From: Haibo Chen <haibo.chen@nxp.com>
>
> gpiolib want to get completely rid of static gpiobase allocation,
> so switch to dynamic allocat GPIO base, also can avoid warning
> message:
>
> [    1.529974] gpio gpiochip0: Static allocation of GPIO base
> is deprecated, use dynamic allocation.
>
> Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
> ---
>  drivers/gpio/gpio-mxc.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
> index 9d0cec4b82a3..abc129a88a62 100644
> --- a/drivers/gpio/gpio-mxc.c
> +++ b/drivers/gpio/gpio-mxc.c
> @@ -462,8 +462,7 @@ static int mxc_gpio_probe(struct platform_device *pdev)
>         port->gc.request = gpiochip_generic_request;
>         port->gc.free = gpiochip_generic_free;
>         port->gc.to_irq = mxc_gpio_to_irq;
> -       port->gc.base = (pdev->id < 0) ? of_alias_get_id(np, "gpio") * 32 :
> -                                            pdev->id * 32;
> +       port->gc.base = -1;
>
>         err = devm_gpiochip_add_data(&pdev->dev, &port->gc, port);
>         if (err)
> --
> 2.34.1
>

This is not the first time we're seeing someone submit this fix[1].

Unfortunately it's been brought to our attention that this breaks
existing user-space scripts that rely on fixed GPIO numbering in
sysfs.

Bart

[1] https://lore.kernel.org/lkml/CACRpkdYV3mHNYvBg1nf+12Q2XZH_g4iTrA2YB1SVQ=ROriRRgg@mail.gmail.com/T/

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-05-06 13:06   ` Linus Walleij
@ 2023-08-21  2:47     ` Bough Chen
  2023-08-21  7:25       ` Linus Walleij
  0 siblings, 1 reply; 13+ messages in thread
From: Bough Chen @ 2023-08-21  2:47 UTC (permalink / raw)
  To: Linus Walleij
  Cc: brgl, linux-gpio, linux-kernel, dl-linux-imx, christophe.leroy

> -----Original Message-----
> From: Linus Walleij <linus.walleij@linaro.org>
> Sent: 2023年5月6日 21:06
> To: Bough Chen <haibo.chen@nxp.com>
> Cc: brgl@bgdev.pl; linux-gpio@vger.kernel.org; linux-kernel@vger.kernel.org;
> dl-linux-imx <linux-imx@nxp.com>; christophe.leroy@csgroup.eu
> Subject: Re: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
> 
> On Sat, May 6, 2023 at 10:56 AM <haibo.chen@nxp.com> wrote:
> 
> > From: Haibo Chen <haibo.chen@nxp.com>
> >
> > gpiolib want to get completely rid of static gpiobase allocation, so
> > switch to dynamic allocat GPIO base, also can avoid warning
> > message:
> >
> > [    1.529974] gpio gpiochip0: Static allocation of GPIO base
> > is deprecated, use dynamic allocation.
> >
> > Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
> 
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Hi Linus and Bartosz,

For this patch, still not in the main trunk (Linux 6.5-rc7) and linux-next(next-20230818).
Can you help apply or any comment?

Best Regards
Haibo Chen

> 
> Yours,
> Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* RE: [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base
  2023-05-06 13:04 ` [PATCH 1/2] gpio: vf610: " Linus Walleij
@ 2023-08-21  2:47   ` Bough Chen
  2023-08-22  9:39     ` Bartosz Golaszewski
  0 siblings, 1 reply; 13+ messages in thread
From: Bough Chen @ 2023-08-21  2:47 UTC (permalink / raw)
  To: Linus Walleij
  Cc: brgl, linux-gpio, linux-kernel, dl-linux-imx, christophe.leroy

> -----Original Message-----
> From: Linus Walleij <linus.walleij@linaro.org>
> Sent: 2023年5月6日 21:05
> To: Bough Chen <haibo.chen@nxp.com>
> Cc: brgl@bgdev.pl; linux-gpio@vger.kernel.org; linux-kernel@vger.kernel.org;
> dl-linux-imx <linux-imx@nxp.com>; christophe.leroy@csgroup.eu
> Subject: Re: [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base
> 
> On Sat, May 6, 2023 at 10:56 AM <haibo.chen@nxp.com> wrote:
> 
> > From: Haibo Chen <haibo.chen@nxp.com>
> >
> > gpiolib want to get completely rid of static gpiobase allocation, so
> > switch to dynamic allocat GPIO base, also can avoid warning
> > message:
> >
> > [    1.529974] gpio gpiochip0: Static allocation of GPIO base
> > is deprecated, use dynamic allocation.
> >
> > Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
> 
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Hi Linus and Bartosz,

For this patch, still not in the main trunk (Linux 6.5-rc7) and linux-next(next-20230818).
Can you help apply or any comment?

Best Regards
Haibo Chen

> 
> Yours,
> Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-08-21  2:47     ` Bough Chen
@ 2023-08-21  7:25       ` Linus Walleij
  2023-08-21  7:44         ` Alexander Stein
  0 siblings, 1 reply; 13+ messages in thread
From: Linus Walleij @ 2023-08-21  7:25 UTC (permalink / raw)
  To: Bough Chen; +Cc: brgl, linux-gpio, linux-kernel, dl-linux-imx, christophe.leroy

On Mon, Aug 21, 2023 at 4:47 AM Bough Chen <haibo.chen@nxp.com> wrote:

> Hi Linus and Bartosz,
>
> For this patch, still not in the main trunk (Linux 6.5-rc7) and linux-next(next-20230818).
> Can you help apply or any comment?

As pointed out by Bartosz you cannot just mechanically switch the base
to -1.

You also need to convince us that this doesn't break any systems, and if
it does, fix them so they don't break before submitting this patch.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-08-21  7:25       ` Linus Walleij
@ 2023-08-21  7:44         ` Alexander Stein
  2023-08-21 10:21           ` Linus Walleij
  0 siblings, 1 reply; 13+ messages in thread
From: Alexander Stein @ 2023-08-21  7:44 UTC (permalink / raw)
  To: Bough Chen, Linus Walleij
  Cc: brgl, linux-gpio, linux-kernel, dl-linux-imx, christophe.leroy

Hi Linus,

Am Montag, 21. August 2023, 09:25:54 CEST schrieb Linus Walleij:
> On Mon, Aug 21, 2023 at 4:47 AM Bough Chen <haibo.chen@nxp.com> wrote:> > Hi 
Linus and Bartosz,
> > 
> > For this patch, still not in the main trunk (Linux 6.5-rc7) and
> > linux-next(next-20230818). Can you help apply or any comment?
> 
> As pointed out by Bartosz you cannot just mechanically switch the base
> to -1.
> 
> You also need to convince us that this doesn't break any systems, and if
> it does, fix them so they don't break before submitting this patch.

I think it's hard to tell if something breaks, this driver is used in a lot of 
boards. AFAIR some people are relying on the assumption of fixed order. Using 
dynamic allocation this not ensured. A possible fix is to use aliases [1].

Best regards,
Alexander

[1] https://lore.kernel.org/lkml/20230215092421.143199-1-alexander.stein@ew.tq-group.com/T/#u
-- 
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
http://www.tq-group.com/



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-08-21  7:44         ` Alexander Stein
@ 2023-08-21 10:21           ` Linus Walleij
  2023-08-21 12:17             ` Bartosz Golaszewski
  0 siblings, 1 reply; 13+ messages in thread
From: Linus Walleij @ 2023-08-21 10:21 UTC (permalink / raw)
  To: Alexander Stein
  Cc: Bough Chen, brgl, linux-gpio, linux-kernel, dl-linux-imx,
	christophe.leroy

On Mon, Aug 21, 2023 at 9:44 AM Alexander Stein
<alexander.stein@ew.tq-group.com> wrote:
> Am Montag, 21. August 2023, 09:25:54 CEST schrieb Linus Walleij:
> > On Mon, Aug 21, 2023 at 4:47 AM Bough Chen <haibo.chen@nxp.com> wrote:> > Hi
> Linus and Bartosz,
> > >
> > > For this patch, still not in the main trunk (Linux 6.5-rc7) and
> > > linux-next(next-20230818). Can you help apply or any comment?
> >
> > As pointed out by Bartosz you cannot just mechanically switch the base
> > to -1.
> >
> > You also need to convince us that this doesn't break any systems, and if
> > it does, fix them so they don't break before submitting this patch.
>
> I think it's hard to tell if something breaks, this driver is used in a lot of
> boards. AFAIR some people are relying on the assumption of fixed order. Using
> dynamic allocation this not ensured. A possible fix is to use aliases [1].

Hm I might have been to grumpy!

It looks like any boardfiles using gpio-mxc have been eliminated
so this driver is now only used in device tree-boots? Right?

Then I feel a lot better about it.

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-08-21 10:21           ` Linus Walleij
@ 2023-08-21 12:17             ` Bartosz Golaszewski
  2023-08-28 13:56               ` Ahmad Fatoum
  0 siblings, 1 reply; 13+ messages in thread
From: Bartosz Golaszewski @ 2023-08-21 12:17 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Alexander Stein, Bough Chen, linux-gpio, linux-kernel,
	dl-linux-imx, christophe.leroy

On Mon, Aug 21, 2023 at 12:21 PM Linus Walleij <linus.walleij@linaro.org> wrote:
>
> On Mon, Aug 21, 2023 at 9:44 AM Alexander Stein
> <alexander.stein@ew.tq-group.com> wrote:
> > Am Montag, 21. August 2023, 09:25:54 CEST schrieb Linus Walleij:
> > > On Mon, Aug 21, 2023 at 4:47 AM Bough Chen <haibo.chen@nxp.com> wrote:> > Hi
> > Linus and Bartosz,
> > > >
> > > > For this patch, still not in the main trunk (Linux 6.5-rc7) and
> > > > linux-next(next-20230818). Can you help apply or any comment?
> > >
> > > As pointed out by Bartosz you cannot just mechanically switch the base
> > > to -1.
> > >
> > > You also need to convince us that this doesn't break any systems, and if
> > > it does, fix them so they don't break before submitting this patch.
> >
> > I think it's hard to tell if something breaks, this driver is used in a lot of
> > boards. AFAIR some people are relying on the assumption of fixed order. Using
> > dynamic allocation this not ensured. A possible fix is to use aliases [1].
>
> Hm I might have been to grumpy!
>
> It looks like any boardfiles using gpio-mxc have been eliminated
> so this driver is now only used in device tree-boots? Right?
>
> Then I feel a lot better about it.
>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> Yours,
> Linus Walleij

I will not be queueing it for v6.6 as merge window opens in a week, I
want to give it more time in next and see if anyone complains so it'll
make it for v6.7.

Bart

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base
  2023-08-21  2:47   ` Bough Chen
@ 2023-08-22  9:39     ` Bartosz Golaszewski
  0 siblings, 0 replies; 13+ messages in thread
From: Bartosz Golaszewski @ 2023-08-22  9:39 UTC (permalink / raw)
  To: Bough Chen
  Cc: Linus Walleij, linux-gpio, linux-kernel, dl-linux-imx, christophe.leroy

On Mon, Aug 21, 2023 at 4:47 AM Bough Chen <haibo.chen@nxp.com> wrote:
>
> > -----Original Message-----
> > From: Linus Walleij <linus.walleij@linaro.org>
> > Sent: 2023年5月6日 21:05
> > To: Bough Chen <haibo.chen@nxp.com>
> > Cc: brgl@bgdev.pl; linux-gpio@vger.kernel.org; linux-kernel@vger.kernel.org;
> > dl-linux-imx <linux-imx@nxp.com>; christophe.leroy@csgroup.eu
> > Subject: Re: [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base
> >
> > On Sat, May 6, 2023 at 10:56 AM <haibo.chen@nxp.com> wrote:
> >
> > > From: Haibo Chen <haibo.chen@nxp.com>
> > >
> > > gpiolib want to get completely rid of static gpiobase allocation, so
> > > switch to dynamic allocat GPIO base, also can avoid warning
> > > message:
> > >
> > > [    1.529974] gpio gpiochip0: Static allocation of GPIO base
> > > is deprecated, use dynamic allocation.
> > >
> > > Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
> >
> > Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
>
> Hi Linus and Bartosz,
>
> For this patch, still not in the main trunk (Linux 6.5-rc7) and linux-next(next-20230818).
> Can you help apply or any comment?
>

I think I didn't apply it because the first patch in this series was
controversial with known user-space breakages. Now applied.

Bart

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2/2] gpio: mxc: switch to dynamic allocat GPIO base
  2023-08-21 12:17             ` Bartosz Golaszewski
@ 2023-08-28 13:56               ` Ahmad Fatoum
  0 siblings, 0 replies; 13+ messages in thread
From: Ahmad Fatoum @ 2023-08-28 13:56 UTC (permalink / raw)
  To: Bartosz Golaszewski, Linus Walleij
  Cc: Alexander Stein, Bough Chen, linux-gpio, linux-kernel,
	dl-linux-imx, christophe.leroy, Shawn Guo, Sascha Hauer,
	Fabio Estevam, Pengutronix Kernel Team

Hello,

Cc += i.MX maintainers as this file isn't matched by the MAINTAINERS entry.

On 21.08.23 14:17, Bartosz Golaszewski wrote:
> On Mon, Aug 21, 2023 at 12:21 PM Linus Walleij <linus.walleij@linaro.org> wrote:
>>
>> On Mon, Aug 21, 2023 at 9:44 AM Alexander Stein
>> <alexander.stein@ew.tq-group.com> wrote:
>>> Am Montag, 21. August 2023, 09:25:54 CEST schrieb Linus Walleij:
>>>> On Mon, Aug 21, 2023 at 4:47 AM Bough Chen <haibo.chen@nxp.com> wrote:> > Hi
>>> Linus and Bartosz,
>>>>>
>>>>> For this patch, still not in the main trunk (Linux 6.5-rc7) and
>>>>> linux-next(next-20230818). Can you help apply or any comment?
>>>>
>>>> As pointed out by Bartosz you cannot just mechanically switch the base
>>>> to -1.
>>>>
>>>> You also need to convince us that this doesn't break any systems, and if
>>>> it does, fix them so they don't break before submitting this patch.
>>>
>>> I think it's hard to tell if something breaks, this driver is used in a lot of
>>> boards. AFAIR some people are relying on the assumption of fixed order. Using
>>> dynamic allocation this not ensured. A possible fix is to use aliases [1].
>>
>> Hm I might have been to grumpy!
>>
>> It looks like any boardfiles using gpio-mxc have been eliminated
>> so this driver is now only used in device tree-boots? Right?
>>
>> Then I feel a lot better about it.
>>
>> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>>
>> Yours,
>> Linus Walleij
> 
> I will not be queueing it for v6.6 as merge window opens in a week, I
> want to give it more time in next and see if anyone complains so it'll
> make it for v6.7.

IMO, this should not be merged. I would hate to do a kernel update and
see the kernel toggle some unrelated GPIO, because probe order changes.
This will eventually happen to somebody and if they're unlucky, it will
break something.

For systems, where the order was never fixed, I agree it's on them, but
for i.MX, it has been fixed since inception AFAIK and I fail to see
what strong reason there is to justify breaking their setups in such
a manner.

Yes, the sysfs interface will eventually go away and fixed numbering
with it but that has been announced long in advance and when that happens,
updated systems with legacy scripts will cease to do GPIO until fixed
and not essentially toggling GPIOs at random.

Thanks,
Ahmad

> 
> Bart

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-08-28 13:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-06  8:59 [PATCH 1/2] gpio: vf610: switch to dynamic allocat GPIO base haibo.chen
2023-05-06  8:59 ` [PATCH 2/2] gpio: mxc: " haibo.chen
2023-05-06 13:06   ` Linus Walleij
2023-08-21  2:47     ` Bough Chen
2023-08-21  7:25       ` Linus Walleij
2023-08-21  7:44         ` Alexander Stein
2023-08-21 10:21           ` Linus Walleij
2023-08-21 12:17             ` Bartosz Golaszewski
2023-08-28 13:56               ` Ahmad Fatoum
2023-05-26 13:12   ` Bartosz Golaszewski
2023-05-06 13:04 ` [PATCH 1/2] gpio: vf610: " Linus Walleij
2023-08-21  2:47   ` Bough Chen
2023-08-22  9:39     ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).