LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] bus: mhi: core: Update comments on mhi_prepare_for_power_up
@ 2021-08-26 16:32 Jeffrey Hugo
  2021-08-26 17:11 ` Bhaumik Bhatt
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Hugo @ 2021-08-26 16:32 UTC (permalink / raw)
  To: mani, hemantk, bbhatt
  Cc: linux-arm-msm, linux-kernel, Pranjal Ramajor Asha Kanojiya, Jeffrey Hugo

From: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>

After "bus: mhi: core: Remove pre_init flag used for power purposes"
mhi_prepare_for_power_up() is no longer an optional API. All users
of MHI should call this API before power up sequence to initialize
MHI context. Update the comments on this API to make this clear.

Fixes: eee87072e2fb ("bus: mhi: core: Remove pre_init flag used for power purposes")
Signed-off-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
---
 include/linux/mhi.h | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/linux/mhi.h b/include/linux/mhi.h
index 56e7934..483b852 100644
--- a/include/linux/mhi.h
+++ b/include/linux/mhi.h
@@ -617,10 +617,8 @@ int mhi_get_free_desc_count(struct mhi_device *mhi_dev,
 
 /**
  * mhi_prepare_for_power_up - Do pre-initialization before power up.
- *                            This is optional, call this before power up if
- *                            the controller does not want bus framework to
- *                            automatically free any allocated memory during
- *                            shutdown process.
+ *                            Call this before MHI power up sequence to
+ *                            initialize MHI context.
  * @mhi_cntrl: MHI controller
  */
 int mhi_prepare_for_power_up(struct mhi_controller *mhi_cntrl);
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-26 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 16:32 [PATCH] bus: mhi: core: Update comments on mhi_prepare_for_power_up Jeffrey Hugo
2021-08-26 17:11 ` Bhaumik Bhatt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).