Re: [PATCH v3] usb: common: usb-conn-gpio: use a unique name for usb connector device

From: Greg Kroah-Hartman
Date: Fri Apr 11 2025 - 10:06:37 EST


On Fri, Apr 11, 2025 at 04:33:26PM +0800, Chance Yang wrote:
> The current implementation of the usb-conn-gpio driver uses a fixed
> "usb-charger" name for all USB connector devices. This causes conflicts
> in the power supply subsystem when multiple USB connectors are present,
> as duplicate names are not allowed.
>
> Use IDA to manage unique IDs for naming usb connectors (e.g.,
> usb-charger-0, usb-charger-1).
>
> Fixes: 880287910b189 ("usb: common: usb-conn-gpio: fix NULL pointer dereference of charger")

This isn't a "fix" it is a "new feature to support multiple devices in
the same system".

So I'll drop the stable stuff here when applying it, thanks.

greg k-h