Re: [PATCH] dsa: b53: hide legacy gpiolib usage on non-mips

From: Florian Fainelli

Date: Mon Apr 27 2026 - 18:25:47 EST


On 4/27/26 07:30, Arnd Bergmann wrote:
From: Arnd Bergmann <arnd@xxxxxxxx>

The MIPS bcm53xx platform still uses the legacy gpiolib interfaces based
on gpio numbers, but other platforms do not.

Hide these interfaces inside of the existing #ifdef block and use the
modern interfaces in the common parts of the driver to allow building
it when the gpio_set_value() is left out of the kernel.

Reviewed-by: Jonas Gorski <jonas.gorski@xxxxxxxxx>
Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>

Small nit: subject should be prefix with "net: ", and a target tree, like net-next. Since net-next is currently closed, you will have to resubmit.
--
Florian