Skip to contentSkip to conversation

ieee802154: ca8210: Remove stray gpiod_unexport() call

PATCH Applied Andy Shevchenko 4 participants 10 messages May 28, 2023 – Jun 6, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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
index a2d242034220..f9b10e84de06 100644
@@ -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
maintainer
#1 lore raw

Hi Andy,

[email protected] wrote on Sun, 28 May 2023 17:09:38 +0300:

Quoted 5 lines

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.

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
index a2d242034220..f9b10e84de06 100644

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

#2 lore raw
In reply to Miquel Raynal
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() 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.

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
#4 lore raw
In reply to Simon Horman
Quoted 8 lines · Simon Horman
Quoted 5 lines · Andy Shevchenko

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.

Thank you!
Can this be applied now?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#5 lore raw

Hi,

Quoted 7 lines · Andy Shevchenko
Quoted 5 lines · Simon Horman
Quoted 4 lines · Andy Shevchenko

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.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Thank you!
Can this be applied now?

ping, Miquel? :)

- Alex

maintainer
#6 lore raw

[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() 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.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

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

#7 lore raw

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() 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.

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

#8 lore raw
In reply to Miquel Raynal
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() 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.

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
maintainer Applied
#9 lore raw
In reply to Andy Shevchenko
Quoted 6 lines · Andy Shevchenko

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.

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan-next.git staging, thanks.

Miquel