projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acb5a8b
)
bus: mhi: pci_generic: Graceful shutdown on freeze
author
Loic Poulain
<loic.poulain@linaro.org>
Thu, 16 Dec 2021 08:12:19 +0000
(13:42 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:02:57 +0000
(11:02 +0100)
commit
f77097ec8c0141a4b5cf3722a246be0cb5677e29
upstream.
There is no reason for shutting down MHI ungracefully on freeze,
this causes the MHI host stack & device stack to not be aligned
anymore since the proper MHI reset sequence is not performed for
ungraceful shutdown.
Link:
https://lore.kernel.org/r/1635268180-13699-1-git-send-email-loic.poulain@linaro.org
Fixes:
5f0c2ee1fe8d
("bus: mhi: pci-generic: Fix hibernation")
Cc: stable@vger.kernel.org
Suggested-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link:
https://lore.kernel.org/r/20211216081227.237749-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/pci_generic.c
patch
|
blob
|
history
diff --git
a/drivers/bus/mhi/pci_generic.c
b/drivers/bus/mhi/pci_generic.c
index
4c577a7
..
b8b2811
100644
(file)
--- a/
drivers/bus/mhi/pci_generic.c
+++ b/
drivers/bus/mhi/pci_generic.c
@@
-1018,7
+1018,7
@@
static int __maybe_unused mhi_pci_freeze(struct device *dev)
* context.
*/
if (test_and_clear_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status)) {
- mhi_power_down(mhi_cntrl,
fals
e);
+ mhi_power_down(mhi_cntrl,
tru
e);
mhi_unprepare_after_power_down(mhi_cntrl);
}