Re: [PATCH RFT/RFC] mfd: cs42l43: setup true links with software nodes

From: Andy Shevchenko

Date: Wed Nov 19 2025 - 05:58:57 EST


On Wed, Nov 19, 2025 at 11:50:09AM +0100, Bartosz Golaszewski wrote:
> On Wed, Nov 19, 2025 at 11:47 AM Charles Keepax
> <ckeepax@xxxxxxxxxxxxxxxxxxxxx> wrote:
> > On Wed, Nov 19, 2025 at 11:38:35AM +0100, Bartosz Golaszewski wrote:

...

> > Cool, thanks for all your help here. Might take me a couple hours
> > but I will get to the bottom of the EBUSY thing, and report back.
>
> Sure. Could you just post the stack trace down to where the EBUSY is
> returned in drivers/base/swnode.c? I'd like to analyze the logic
> myself too if that's not too much work for you.


FWIW, there is also an interesting debug technique. Put in your driver where
you get this error code something like this (after all #include directives):

#undef EBUSY
#define EBUSY __LINE__

And then you get some error code which is line number in some C file. You can
narrow down grepping of the EBUSY in the suspected files and get the one.

git grep -n -w EBUSY -- ...files of interest...

Hope this saves some minutes for you.

--
With Best Regards,
Andy Shevchenko