Hi Linus and Bartosz, On Tue, 20 Jun 2023 at 22:11, Andy Shevchenko <[email protected]> wrote: > > On Tue, Apr 11, 2023 at 10:57:28AM +0200, Linus Walleij wrote: > > On Mon, Apr 10, 2023 at 11:16 AM Naresh Kamboju > > <[email protected]> wrote: > > ... > > > Add a pr_info() devm_gpio_chip_release() in drivers/gpio/gpiolib-devres.c > > and see if the callback is even called. I think this could be the > > problem: if that isn't cleaned up, there will be dangling references. > > Side note: Since we have devres tracepoints, your patch seems an overkill :-) > Just enable devres tracepoints and filter out by the function name. I believe > that should work.
Since I have been tracking open issues on the stable-rc kernel, The reported problem on stable-rc linux.6.3.y has been solved on the stable-rc linux.6.6.y branch. Thanks for fixing this reported issue. Upstream links about this fix and discussion, Commit daecca4b8433 gpiolib: Do not alter GPIO chip fwnode member [1] https://lore.kernel.org/linux-gpio/[email protected]/ [2] https://lore.kernel.org/linux-gpio/CAMRc=mffebsej78no7xeuzamj0kezepaywswnfxxaryqpaf...@mail.gmail.com/ [3] https://lore.kernel.org/linux-gpio/ca+g9fyv94gx8+-jmzbmqaue3q3y6qdbmsgucdd-26x5xavl...@mail.gmail.com/ > > -- > With Best Regards, > Andy Shevchenko > >
