]> git.baikalelectronics.ru Git - kernel.git/commit
sh-pfc: fix sparse GPIOs for R-Car SoCs
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thu, 25 Jun 2015 22:40:56 +0000 (01:40 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 20 Jul 2015 09:01:52 +0000 (11:01 +0200)
commitd70a411a537d2190889a14667484a915f060f769
treef2bd33a22bf4d9c96d082f0188f2fedad285c9fa
parent65886045b428e0b5e63fc404cc26d46202211177
sh-pfc: fix sparse GPIOs for R-Car SoCs

The PFC driver causes the kernel to hang on the R-Car gen2 SoC based  boards
when the CPU_ALL_PORT() macro is fixed to reflect the reality, i.e. when the
GPIO space becomes actually sparse.  This happens because the _GP_GPIO() macro
includes  an indexed initializer which causes the "holes" (array entries filled
with all 0s) between the groups  of the existing GPIOs; and the driver can't
cope with that.  There seems to  be no reason to use the indexed initializer,
so we can remove the index specifier and so avoid the "holes".

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/sh_pfc.h