Skip to content
Commit 11a1c27e authored by Ye Li's avatar Ye Li Committed by Stefano Babic
Browse files

pinctrl: imx: Fix select input issue



The pinctrl supports to set any bit in input register on iMX6 if
the MSB of input value is 0xff. But the driver uses signed int for
input value, so when executing the codes below, it won't meet.
Because this is arithmetic right shift.

    if (input_val >> 24 == 0xff)

Fix the issue by changing the input_val, config_val and mux_mode to u32.

Signed-off-by: default avatarYe Li <ye.li@nxp.com>
Reviewed-by: default avatarFugang Duan <fugang.duan@nxp.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
parent 59ceb152
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment