[PATCH 1/4] pinctrl: imx: detect uninitialized pins

Linus Walleij linus.walleij at linaro.org
Tue Sep 23 02:46:20 PDT 2014

On Sat, Sep 6, 2014 at 6:25 PM, Stefan Agner <stefan at agner.ch> wrote:

> The pinctrl driver initialized the register offsets for the pins
> with 0. On Vybrid an offset of 0 is a valid offset for the pinctrl
> mux register. So far, this was solved using the ZERO_OFFSET_VALID
> flag which allowed offsets of 0. However, this does not allow to
> verify whether a pins struct imx_pmx_func was initialized or not.
> Use signed offset values for register offsets and initialize those
> with -1 in order to detect uninitialized offset values reliable.
> Signed-off-by: Stefan Agner <stefan at agner.ch>

Patch applied.

Linus Walleij

More information about the linux-arm-kernel mailing list