aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorAidan MacDonald <[email protected]>2022-03-17 00:07:40 +0000
committerLinus Walleij <[email protected]>2022-03-24 20:10:32 +0100
commit9279c00fa40250e5cb23a8423dce7dbc6516a0ea (patch)
tree47f5f58ac7e1701b0eda5c0de1c9a0c4210293c7 /lib/test_overflow.c
parent283fb4ea08c5876150b4158e9c20c14309214ce2 (diff)
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: [email protected] Signed-off-by: Aidan MacDonald <[email protected]> Fixes: 6626a76ef857 ("pinctrl: ingenic: Add .max_register in regmap_config") Reviewed-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions