OpenCloudOS-Kernel/drivers/bus/mhi
Manivannan Sadhasivam c38f83bae4 bus: mhi: host: pci_generic: Flush recovery worker during freeze
It is possible that the recovery work might be running while the freeze
gets executed (during hibernation etc.,). Currently, we don't powerdown
the stack if it is not up but if the recovery work completes after freeze,
then the device will be up afterwards. This will not be a sane situation.

So let's flush the recovery worker before trying to powerdown the device.

Cc: stable@vger.kernel.org
Fixes: 5f0c2ee1fe ("bus: mhi: pci-generic: Fix hibernation")
Reported-by: Bhaumik Vasav Bhatt <quic_bbhatt@quicinc.com>
Reviewed-by: Bhaumik Vasav Bhatt <quic_bbhatt@quicinc.com>
Link: https://lore.kernel.org/r/20220408150039.17297-1-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2022-04-13 13:11:19 +05:30
..
host bus: mhi: host: pci_generic: Flush recovery worker during freeze 2022-04-13 13:11:19 +05:30
Kconfig bus: mhi: Move host MHI code to "host" directory 2022-03-18 14:02:54 +01:00
Makefile bus: mhi: Move host MHI code to "host" directory 2022-03-18 14:02:54 +01:00
common.h bus: mhi: Make mhi_state_str[] array static inline and move to common.h 2022-03-18 14:02:55 +01:00