aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorPatrick Williams <[email protected]>2019-10-01 10:46:31 -0500
committerLinus Walleij <[email protected]>2019-10-04 23:53:23 +0200
commit20504fa1d2ffd5d03cdd9dc9c9dd4ed4579b97ef (patch)
tree7cf4621d9c644fcdfc28ddd74e1755336d09c3ed /scripts/gcc-plugins/randomize_layout_plugin.c
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c (diff)
pinctrl: armada-37xx: fix control of pins 32 and up
The 37xx configuration registers are only 32 bits long, so pins 32-35 spill over into the next register. The calculation for the register address was done, but the bitmask was not, so any configuration to pin 32 or above resulted in a bitmask that overflowed and performed no action. Fix the register / offset calculation to also adjust the offset. Fixes: 5715092a458c ("pinctrl: armada-37xx: Add gpio support") Signed-off-by: Patrick Williams <[email protected]> Acked-by: Gregory CLEMENT <[email protected]> Cc: <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions