mirror of
https://github.com/torvalds/linux.git
synced 2026-09-28 12:02:03 +02:00
pinctrl: mpfs-mssio: fix width of unused bank voltage setting
The bank voltages are only 4 bits wide, so when a pin was unused the
driver was not correctly interpreting it as being at zero volts, because
the driver's value for unused had two extra set bits.
CC: stable@vger.kernel.org
Fixes: 488d704ed7 ("pinctrl: add polarfire soc mssio pinctrl driver")
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
parent
51ae996594
commit
e6c5d6c589
|
|
@ -86,7 +86,7 @@ static struct mpfs_pinctrl_bank_voltage mpfs_pinctrl_bank_voltages[8] = {
|
|||
{ .uv = 1800000, .val = 4 },
|
||||
{ .uv = 2500000, .val = 6 },
|
||||
{ .uv = 3300000, .val = 8 },
|
||||
{ .uv = 0, .val = 0x3f }, // pin unused
|
||||
{ .uv = 0, .val = 0xf }, // pin unused
|
||||
};
|
||||
|
||||
static int mpfs_pinctrl_get_drive_strength_ma(u32 drive_strength)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user