Re: regression from commit b0ce9ce408b6 ("gpiolib: Do not unexport GPIO on freeing")

From: Andy Shevchenko
Date: Tue Aug 08 2023 - 16:39:15 EST


On Tue, Aug 08, 2023 at 10:28:28AM +0200, Marek Behún wrote:
> Hi,
>
> the commit b0ce9ce408b6 ("gpiolib: Do not unexport GPIO on freeing")
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b0ce9ce408b6
>
> causes a regression on my mvebu arm board (haven't tested on other
> systems), wherein if I export a GPIO to sysfs and then unexport it, it
> does not disasppear from the /sys/class/gpio directory, and subsequent
> writes to the export and unexport files for the gpio fail.

Thank you for the report. I'll look into this ASAP.

--
With Best Regards,
Andy Shevchenko