summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-mtk-cirq.c
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2020-10-09 12:07:14 +0300
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2020-11-18 12:50:34 +0300
commita7f422f2f89e7d48aa66e6488444a4c7f01269d5 (patch)
tree7d4be6c933e4f95c23ed3a0651e5168d0e962202 /drivers/irqchip/irq-mtk-cirq.c
parentf4d0b39c842585c74bce8f8a80553369181b72df (diff)
downloadlinux-a7f422f2f89e7d48aa66e6488444a4c7f01269d5.tar.xz
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>
Diffstat (limited to 'drivers/irqchip/irq-mtk-cirq.c')
0 files changed, 0 insertions, 0 deletions