Skip to content
Snippets Groups Projects
Commit 9279c00f authored by Aidan MacDonald's avatar Aidan MacDonald Committed by Linus Walleij
Browse files

pinctrl: ingenic: Fix regmap on X series SoCs


The X series Ingenic SoCs have a shadow GPIO group which is at a higher
offset than the other groups, and is used for all GPIO configuration.
The regmap did not take this offset into account and set max_register
too low, so the regmap API blocked writes to the shadow group, which
made the pinctrl driver unable to configure any pins.

Fix this by adding regmap access tables to the chip info. The way that
max_register was computed was also off by one, since max_register is an
inclusive bound, not an exclusive bound; this has been fixed.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Fixes: 6626a76e ("pinctrl: ingenic: Add .max_register in  regmap_config")
Reviewed-by: default avatarPaul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20220317000740.1045204-1-aidanmacdonald.0x0@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 283fb4ea
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment