[PATCH v2] pinctrl: mvebu: fix num_settings in mpp group assignment
Linus Walleij
linus.walleij at linaro.org
Sat Feb 13 14:52:42 PST 2016
On Mon, Feb 1, 2016 at 11:48 PM, Sebastian Hesselbarth
<sebastian.hesselbarth at gmail.com> wrote:
> When assigning mpp settings from static mpp modes to mpp groups,
> we do not want any groups that have no supported setting for a
> specific Kirkwood variant. However, when there is at least a
> single supported setting, we need to assign the number of all
> settings in this mode to grp->num_settings as we are reusing
> the static modes table.
>
> Fixes: 0581b16b1840 ("pinctrl: mvebu: complain about missing group after checking variant")
> Reported-by: Aaro Koskinen <aaro.koskinen at iki.fi>
> Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth at gmail.com>
> --
> Changelog:
> v1->v2:
> - Chose a less intrusive fix by adding supp_settings variable
> instead of looping over the settings twice.
Patch applied with Aaro's Test tag.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list