aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorPaul Davey <[email protected]>2022-03-01 21:33:00 +0530
committerGreg Kroah-Hartman <[email protected]>2022-03-18 14:02:54 +0100
commit64f93a9a27c1970fa8ee5ffc5a6ae2bda477ec5b (patch)
tree42644633fb3698ef91de322504ea0c1dd4796568 /net/lapb/lapb_in.c
parent2413ffbf19a95cfcd7adf63135c5a9343a66d0a2 (diff)
bus: mhi: Fix pm_state conversion to string
On big endian architectures the mhi debugfs files which report pm state give "Invalid State" for all states. This is caused by using find_last_bit which takes an unsigned long* while the state is passed in as an enum mhi_pm_state which will be of int size. Fix by using __fls to pass the value of state instead of find_last_bit. Also the current API expects "mhi_pm_state" enumerator as the function argument but the function only works with bitmasks. So as Alex suggested, let's change the argument to u32 to avoid confusion. Fixes: a6e2e3522f29 ("bus: mhi: core: Add support for PM state transitions") Cc: [email protected] [mani: changed the function argument to u32] Reviewed-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Hemant Kumar <[email protected]> Reviewed-by: Alex Elder <[email protected]> Signed-off-by: Paul Davey <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions