]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mhi: host: pci_generic: Flush recovery worker during freeze
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Fri, 8 Apr 2022 15:00:39 +0000 (20:30 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 13 Apr 2022 07:41:19 +0000 (13:11 +0530)
commitc443f41061ecf3fc2245d38cf2e5afb61d9de7d3
treea8f9f3e94282593a57fb28eef1fb928d9ea6bf6b
parentb6270200f3f46feae76044170cbb03ad60751bee
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: 86379c9250e5 ("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>
drivers/bus/mhi/host/pci_generic.c