pinctrl: mvebu: complain about missing group after checking variant
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 28 Nov 2015 10:26:49 +0000 (11:26 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Dec 2015 15:15:07 +0000 (16:15 +0100)
commit0581b16b184031e767f64d20a93f65433d678685
treea81b1f1210e1f4d660b2cfef8c9f89cdb7c07c98
parentc5cdcba3d54b9bd2443bd0afe9f4828f802a944f
pinctrl: mvebu: complain about missing group after checking variant

Common MVEBU pinctrl driver core gets an array of controls to modify
a specific set of registers and an array of modes for each pingroup
from each of the different SoC families of MVEBU.

Some SoC families comprise different variants that differ in available
pingroups and also controls, but to ease driver development, we can
pass a variant mask to disable specific pingroups for some variants.
However, controls are limited to the true number of pinctrl groups
avaiable on a variant.

Now, when pinctrl core driver parses over above arrays, it tries to
match modes with available controls and complains about missing
controls for modes that are passed to the core but actually are not
avaiable on a variant with:

kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group 36

This warning is a false-positive and annoying, so move the warning
after we checked the variant mask for each mode setting. Also, if
there is no supported setting for this variant, do not complain at
all.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Reported-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-mvebu.c
This page took 0.02735 seconds and 5 git commands to generate.