[PATCH] pinctrl: sunxi: fix pin numbers passed to register offset helpers

Linus Walleij linus.walleij at linaro.org
Thu May 22 15:38:09 PDT 2014


On Thu, May 22, 2014 at 5:20 PM, Chen-Yu Tsai <wens at csie.org> wrote:

> The pin numbers passed to sunxi_*_reg helpers to get the correct
> registers should be the pin offset for the PIO block, not the
> absolute number we use that is based on the alphanumeric labels
> Allwinner uses.
>
> This patch subtracts .pin_base from the pin number passed to these
> functions, so the driver accesses the correct registers.
>
> Signed-off-by: Chen-Yu Tsai <wens at csie.org>

Maxime, can I have your ACK on this patch, too?

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list