ieee802154: ca8210: Remove stray gpiod_unexport() call
PATCH 1/1 ieee802154: ca8210: Remove stray gpiod_unexport() call
There is no gpiod_export() and gpiod_unexport() looks pretty much stray. The gpiod_export() and gpiod_unexport() shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.
--- drivers/net/ieee802154/ca8210.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ieee802154/ca8210.c +0 -1
@@ -2855,7 +2855,6 @@ static int ca8210_interrupt_init(struct spi_device *spi) );if (ret) {dev_crit (&spi->dev,"request_irq %d failed\n" , pdata->irq_id); -gpiod_unexport (gpio_to_desc (pdata->gpio_irq));gpio_free (pdata->gpio_irq); }
Signature · 1 line
2.40.0.1.gaa8946217a0b
Miquel Raynal
maintainerHi Andy,
[email protected] wrote on Sun, 28 May 2023 17:09:38 +0300:
Quoted 5 lines
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>
Any reason not to consider a backport into stable kernels?
Cc: stable + Fixes would certainly be welcome in this case?
Quoted 9 lines
--- drivers/net/ieee802154/ca8210.c | 1 - 1 file changed, 1 deletion(-)drivers/net/ieee802154/ca8210.c +0
-0
drivers/net/ieee802154/ca8210.c static int ca8210_interrupt_init(struct spi_device *spi) · line 2860
Quoted 7 lines
drivers/net/ieee802154/ca8210.c +0
-1@@ -2855,7 +2855,6 @@ static int ca8210_interrupt_init(struct spi_device *spi) );if (ret) {dev_crit (&spi->dev,"request_irq %d failed\n" , pdata->irq_id); -gpiod_unexport (gpio_to_desc (pdata->gpio_irq));gpio_free (pdata->gpio_irq); }
Thanks,
Miquèl
Quoted 5 lines · Andy Shevchenko
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>
Quoted 11 lines · Miquel Raynal
[email protected] wrote on Sun, 28 May 2023 17:09:38 +0300:
Quoted 5 lines
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>Any reason not to consider a backport into stable kernels?
Cc: stable + Fixes would certainly be welcome in this case?
I don't think it's justified for stable. It doesn't fix any existing regression as far as I understand.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 8 lines · Simon Horman
Quoted 5 lines · Andy Shevchenko
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>Reviewed-by Simon Horman <[email protected]>
Thank you!
Can this be applied now?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Hi,
Quoted 7 lines · Andy Shevchenko
Quoted 5 lines · Simon Horman
Quoted 4 lines · Andy Shevchenko
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Andy Shevchenko <[email protected]>Reviewed-by Simon Horman <[email protected]>Thank you!
Can this be applied now?
ping, Miquel? :)
- Alex
Miquel Raynal
maintainer[email protected] wrote on Tue, 6 Jun 2023 05:33:47 -0400:
Quoted 11 lines
Hi,
Quoted 7 lines · Andy Shevchenko
Quoted 5 lines · Simon Horman
Quoted 4 lines · Andy Shevchenko
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Andy Shevchenko <[email protected]>Reviewed-by Simon Horman <[email protected]>Thank you!
Can this be applied now?ping, Miquel? :)
I already applied it locally, but I am trying to fix my "thanks for patch" routine to not tell you it was applied on the mtd tree :-p
Cheers,
Miquèl
Hi Miquel,
Quoted 19 lines · Miquel Raynal
[email protected] wrote on Tue, 6 Jun 2023 05:33:47 -0400:
Quoted 15 lines
Hi,
Quoted 11 lines · Andy Shevchenko
Quoted 8 lines · Simon Horman
Quoted 5 lines · Andy Shevchenko
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>Reviewed-by Simon Horman <[email protected]>
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Thank you!
Can this be applied now?ping, Miquel? :)
I already applied it locally, but I am trying to fix my "thanks for patch" routine to not tell you it was applied on the mtd tree :-p
okay no problem. Fully understandable as we have a new workflow mechanism for 802.15.4.
Thanks. :)
- Alex
Quoted 13 lines · Miquel Raynal
[email protected] wrote on Tue, 6 Jun 2023 05:33:47 -0400:
Quoted 12 lines
Quoted 10 lines · Andy Shevchenko
Quoted 8 lines · Simon Horman
Quoted 5 lines · Andy Shevchenko
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>Reviewed-by Simon Horman <[email protected]>
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Thank you!
Can this be applied now?ping, Miquel? :)
I already applied it locally, but I am trying to fix my "thanks for patch" routine to not tell you it was applied on the mtd tree :-p
Good to know and thank you!
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 6 lines · Andy Shevchenko
There is no
gpiod_export()andgpiod_unexport()looks pretty much stray. Thegpiod_export()andgpiod_unexport()shouldn't be used in the code, GPIO sysfs is deprecated. That said, simply drop the stray call.Signed-off-by Andy Shevchenko <[email protected]>Reviewed-by Simon Horman <[email protected]>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan-next.git staging, thanks.
Miquel