summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKalle Valo <quic_kvalo@quicinc.com>2024-04-05 15:18:23 +0300
committerKalle Valo <quic_kvalo@quicinc.com>2024-04-05 15:23:39 +0300
commit231a4c893c9bb2984a8c6b7450199f59eb816ed9 (patch)
tree3f83585ea6d0ae39e0125d24d9195214a5cc9438 /include/linux
parent5abf259772df8329dc95f1f9699617ae59eb0b95 (diff)
parent813e0ae613d6ee1b3e11f1c41f8b9e9df8ef0493 (diff)
downloadlinux-231a4c893c9bb2984a8c6b7450199f59eb816ed9.tar.xz
Merge branch 'mhi-immutable' of git://git.kernel.org/pub/scm/linux/kernel/git/mani/mhi into ath-next
This is needed for patch 'wifi: ath11k: support hibernation'.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mhi.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/mhi.h b/include/linux/mhi.h
index 77b8c0a26674..cde01e133a1b 100644
--- a/include/linux/mhi.h
+++ b/include/linux/mhi.h
@@ -630,13 +630,29 @@ int mhi_async_power_up(struct mhi_controller *mhi_cntrl);
int mhi_sync_power_up(struct mhi_controller *mhi_cntrl);
/**
- * mhi_power_down - Start MHI power down sequence
+ * mhi_power_down - Power down the MHI device and also destroy the
+ * 'struct device' for the channels associated with it.
+ * See also mhi_power_down_keep_dev() which is a variant
+ * of this API that keeps the 'struct device' for channels
+ * (useful during suspend/hibernation).
* @mhi_cntrl: MHI controller
* @graceful: Link is still accessible, so do a graceful shutdown process
*/
void mhi_power_down(struct mhi_controller *mhi_cntrl, bool graceful);
/**
+ * mhi_power_down_keep_dev - Power down the MHI device but keep the 'struct
+ * device' for the channels associated with it.
+ * This is a variant of 'mhi_power_down()' and
+ * useful in scenarios such as suspend/hibernation
+ * where destroying of the 'struct device' is not
+ * needed.
+ * @mhi_cntrl: MHI controller
+ * @graceful: Link is still accessible, so do a graceful shutdown process
+ */
+void mhi_power_down_keep_dev(struct mhi_controller *mhi_cntrl, bool graceful);
+
+/**
* mhi_unprepare_after_power_down - Free any allocated memory after power down
* @mhi_cntrl: MHI controller
*/