linux/drivers/bus/mhi/core
Loic Poulain a7f422f2f8
bus: mhi: Fix channel close issue on driver remove
Some MHI device drivers need to stop the channels in their driver
remove callback (e.g. module unloading), but the unprepare function
is aborted because MHI core moved the channels to suspended state
prior calling driver remove callback. This prevents the driver to
send a proper MHI RESET CHAN command to the device. Device is then
unaware of the stopped state of these channels.

This causes issue when driver tries to start the channels again (e.g.
module is reloaded), since device considers channels as already
started (inconsistent state).

Fix this by allowing channel reset when channel is suspended.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2020-11-18 15:20:34 +05:30
..
boot.c bus: mhi: core: Read and save device hardware information from BHI 2020-10-02 11:33:47 +02:00
debugfs.c bus: mhi: debugfs: Print channel context read-pointer 2020-10-02 11:33:48 +02:00
init.c bus: mhi: core: Fix null pointer access when parsing MHI configuration 2020-11-18 15:20:34 +05:30
internal.h bus: mhi: core: fix potential operator-precedence with BHI macros 2020-11-18 15:20:34 +05:30
main.c bus: mhi: Fix channel close issue on driver remove 2020-11-18 15:20:34 +05:30
Makefile bus: mhi: core: Fix the building of MHI module 2020-10-02 11:33:47 +02:00
pm.c bus: mhi: core: Allow shared IRQ for event rings 2020-10-02 11:33:47 +02:00