linux/drivers/pinctrl/mvebu
Sebastian Hesselbarth 0581b16b18 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>
2015-12-09 16:15:07 +01:00
..
Kconfig pinctrl: mvebu: add pinctrl driver for Marvell Armada 39x 2015-03-04 13:53:55 +01:00
Makefile pinctrl: mvebu: guard sub-directory with CONFIG_PINCTRL_MVEBU 2015-12-01 10:41:03 +01:00
pinctrl-armada-38x.c pinctrl: mvebu: armada-38x: add ptp functions 2015-06-10 14:30:44 +02:00
pinctrl-armada-39x.c pinctrl: mvebu: armada-39x: add support for Armada 395 variant 2015-06-10 14:36:34 +02:00
pinctrl-armada-370.c Here is the bulk of pin control changes for the v4.2 series: 2015-06-24 19:21:02 -07:00
pinctrl-armada-375.c pinctrl: mvebu: armada-{370,375}: normalize audio pins 2015-06-10 13:43:52 +02:00
pinctrl-armada-xp.c pinctrl: mvebu: armada-xp: add dram functions 2015-06-10 14:11:50 +02:00
pinctrl-dove.c pinctrl: dove: Constify struct regmap_config and of_device_id 2015-01-14 14:21:53 +01:00
pinctrl-kirkwood.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00
pinctrl-mvebu.c pinctrl: mvebu: complain about missing group after checking variant 2015-12-09 16:15:07 +01:00
pinctrl-mvebu.h pinctrl: mvebu: remove MPP_REG_CTRL macro 2014-02-25 18:38:31 +01:00
pinctrl-orion.c pinctrl: constify of_device_id array 2015-03-27 09:58:35 +01:00