Re: [PATCH v2 1/5] gpio: uclass: log when a gpio offset is already claimed

Simon Glass <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <CAFLszTiGUcTjYt+4L7witP_wwPsUKcGnQMenLT9yid5ikxfwXw__36828.4709913254$1786211856$gmane$org@mail.gmail.com>
On 2026-07-29T08:12:14, Pranav Sanwal <[email protected]> wrote:
> gpio: uclass: log when a gpio offset is already claimed
>
> dm_gpio_request() returns -EBUSY when the requested offset is already
> claimed, but gives no indication of which label already holds it. Any
> caller going through the uclass API directly, rather than the "gpio"
> command, has no way to see this at all.
>
> Log it at dev_dbg() level: silent by default, available when actively
> debugging with this device's debug output enabled.
>
> Signed-off-by: Pranav Sanwal <[email protected]>
>
> drivers/gpio/gpio-uclass.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.