OSDN Git Service

pinctrl: uniphier: fix pin_config_get() for input-enable
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 31 Jul 2017 06:21:07 +0000 (15:21 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:00 +0000 (15:01 +0200)
commite3829d15460feb884805012c72ec4a17402822eb
treed5d178991f09be26699a4f5bdb875b8444f90837
parent9fc939c68325752580ffcf966e9da49a7ab94a90
pinctrl: uniphier: fix pin_config_get() for input-enable

For LD11/LD20 SoCs (capable of per-pin input enable), iectrl bits are
located across multiple registers.  So, the register offset must be
taken into account.  Otherwise, wrong input-enable status is displayed.

While we here, rename the macro because it is a base address.

Fixes: aa543888ca8c ("pinctrl: uniphier: support per-pin input enable for new SoCs")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c