linux-stable/drivers/bus/mhi/host
Qiang Yu 01bd694ac2 bus: mhi: host: Drop chan lock before queuing buffers
Ensure read and write locks for the channel are not taken in succession by
dropping the read lock from parse_xfer_event() such that a callback given
to client can potentially queue buffers and acquire the write lock in that
process. Any queueing of buffers should be done without channel read lock
acquired as it can result in multiple locks and a soft lockup.

Cc: <stable@vger.kernel.org> # 5.7
Fixes: 1d3173a3ba ("bus: mhi: core: Add support for processing events from client device")
Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Tested-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/1702276972-41296-3-git-send-email-quic_qianyu@quicinc.com
[mani: added fixes tag and cc'ed stable]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2023-12-16 10:54:29 +05:30
..
Kconfig bus: mhi: Move host MHI code to "host" directory 2022-03-18 14:02:54 +01:00
Makefile
boot.c bus: mhi: host: allow MHI client drivers to provide the firmware via a pointer 2023-08-04 12:09:56 +05:30
debugfs.c bus: mhi: Make mhi_state_str[] array static inline and move to common.h 2022-03-18 14:02:55 +01:00
init.c bus: mhi: host: Add a separate timeout parameter for waiting ready 2023-12-14 10:57:34 +05:30
internal.h bus: mhi: host: Add a separate timeout parameter for waiting ready 2023-12-14 10:57:34 +05:30
main.c bus: mhi: host: Drop chan lock before queuing buffers 2023-12-16 10:54:29 +05:30
pci_generic.c bus: mhi: host: pci_generic: Add SDX75 based modem support 2023-12-14 10:57:34 +05:30
pm.c bus: mhi: host: Add a separate timeout parameter for waiting ready 2023-12-14 10:57:34 +05:30