aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorPaul Davey <[email protected]>2022-03-01 21:33:01 +0530
committerGreg Kroah-Hartman <[email protected]>2022-03-18 14:02:54 +0100
commited2d980503235829aa3e0c7ae3b82374c30a081c (patch)
tree7483af13cd70bbbb871263a8adb4e34cd85c40db /net/lapb/lapb_in.c
parent64f93a9a27c1970fa8ee5ffc5a6ae2bda477ec5b (diff)
bus: mhi: Fix MHI DMA structure endianness
The MHI driver does not work on big endian architectures. The controller never transitions into mission mode. This appears to be due to the modem device expecting the various contexts and transfer rings to have fields in little endian order in memory, but the driver constructs them in native endianness. Fix MHI event, channel and command contexts and TRE handling macros to use explicit conversion to little endian. Mark fields in relevant structures as little endian to document this requirement. Fixes: a6e2e3522f29 ("bus: mhi: core: Add support for PM state transitions") Fixes: 6cd330ae76ff ("bus: mhi: core: Add support for ringing channel/event ring doorbells") Cc: [email protected] Reviewed-by: Manivannan Sadhasivam <[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