Re: [PATCH] MIPS: RB532: attach the software node to its target GPIO controller
From: Thomas Bogendoerfer
Date: Tue May 26 2026 - 10:58:33 EST
On Thu, Apr 30, 2026 at 01:23:13PM +0200, Bartosz Golaszewski wrote:
> GPIOLIB wants to remove the software node's name matching against GPIO
> controller's label that is going on behind the scenes in software node
> lookup. To that end, we need to convert all existing users to using
> software nodes actually attached to the GPIO devices they represent.
>
> In order to use an attached software node with the GPIO controller on
> rb532: convert the GPIO module into a real platform device, provide
> platform device info for it in device.c and assign the software node
> using its swnode field.
>
> The software node will get inherited by the GPIO chip from the parent
> platform device in devm_gpiochip_add_data() as we don't set the fwnode
> using any other of the mechanisms.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> ---
> arch/mips/rb532/devices.c | 32 ++++++++++++++++++++++++++------
> arch/mips/rb532/gpio.c | 41 +++++++++++++++++++++--------------------
> 2 files changed, 47 insertions(+), 26 deletions(-)
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]