Re: [PATCH] gpio: virtuser: report the right dev_name before the device is live
From: Bartosz Golaszewski
Date: Wed Dec 02 2026 - 03:49:43 EST
On Tue, 01 Dec 2026 22:26:49 +0800, Lin Tzu Yang wrote:
> Until the consumer is enabled, dev_name_show() prints the name the
> platform device is going to get, but it uses the gpio-sim prefix:
> "gpio-sim.N". The device is registered as "gpio-virtuser.N", which is
> also what the lookup table built for it uses, and that is what
> dev_name shows once the consumer is live.
>
> The wrong name can also belong to a real device: with one gpio-sim
> chip and one consumer, dev_name of the disabled consumer reads
> "gpio-sim.0", the name of the simulated chip.
>
> [...]
Applied, thanks!
[1/1] gpio: virtuser: report the right dev_name before the device is live
https://git.kernel.org/brgl/c/232e5dc3486f9aa4286579e9c490cb31e34d1bdb
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>