diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-12-13 12:53:11 +0300 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-12-18 13:25:56 +0300 |
commit | 755a5b805fa7ff22e2934d67501efd92109f41ea (patch) | |
tree | 22bf502c548ebced4caec02a57d3ed759aa0fe10 /drivers/pinctrl/mediatek/pinctrl-mt8135.c | |
parent | 94482af7055e1ffa211c1135256b85590ebcac99 (diff) | |
download | linux-755a5b805fa7ff22e2934d67501efd92109f41ea.tar.xz |
pinctrl: sh-pfc: r8a77990: Fix MOD_SEL0 SEL_I2C1 field width
The SEL_I2C1 (MOD_SEL0[21:20]) field in Module Select Register 0 has a
width of 2 bits, i.e. it allows programming one out of 4 different
configurations.
However, the MOD_SEL0_21_20 macro contains 8 values instead of 4,
overflowing into the subsequent fields in the register, and thus breaking
the configuration of the latter.
Fix this by dropping the bogus last 4 values, including the non-existent
SEL_I2C1_4 configuration.
Fixes: 6d4036a1e3b3ac0f ("pinctrl: sh-pfc: Initial R8A77990 PFC support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/pinctrl/mediatek/pinctrl-mt8135.c')
0 files changed, 0 insertions, 0 deletions