[PATCH] staging: mt7621-pinctrl: stop using the deprecated 'pinctrl_add_gpio_range'

Sergio Paracuellos sergio.paracuellos at gmail.com
Mon Dec 7 13:57:01 UTC 2020


Hi Linus,

On Mon, Dec 7, 2020 at 2:05 PM Linus Walleij <linus.walleij at linaro.org> wrote:
>
> On Sun, Dec 6, 2020 at 11:53 AM Sergio Paracuellos
> <sergio.paracuellos at gmail.com> wrote:
>
> > If the gpio DT node has the 'gpio-ranges' property, the range will be
> > added by the gpio core and doesn't need to be added by the pinctrl
> > driver.
> >
> > By having the gpio-ranges property, we can map every pin between
> > gpio node and pinctrl node and we can stop using the deprecated
> > pinctrl_add_gpio_range() function.
> >
> > Signed-off-by: Sergio Paracuellos <sergio.paracuellos at gmail.com>
>
> Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
>
> After this I think the driver looks good and can graduate from staging.
> Can you send a patch to move this to drivers/pinctrl next

>
> I think drivers/pinctrl/pinctrl-rt2880.c since we don't expect a lot
> more of them.


Perfect, let me write the bindings yaml file and send the patch moving this.

What git tree do you prefer the patch to be rebased onto?

>
> Yours,
> Linus Walleij

Best regards,
    Sergio Paracuellos


More information about the devel mailing list