linux/drivers/bus/mhi/core
Bhaumik Bhatt eee87072e2 bus: mhi: core: Remove pre_init flag used for power purposes
Some controllers can choose to skip preparation for power up.
In that case, device context is initialized based on the pre_init
flag not being set during mhi_prepare_for_power_up(). There is no
reason MHI host driver should maintain and provide controllers
with two separate paths for preparing MHI.

Going forward, all controllers will be required to call the
mhi_prepare_for_power_up() API followed by their choice of sync
or async power up. This allows MHI host driver to get rid of the
pre_init flag and sets up a common way for all controllers to use
MHI. This also helps controllers fail early on during preparation
phase in some failure cases.

Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/1617313309-24035-1-git-send-email-bbhatt@codeaurora.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2021-04-07 12:25:41 +05:30
..
boot.c bus: mhi: core: Wait for MHI READY state in most scenarios 2021-03-31 16:51:43 +05:30
debugfs.c bus: mhi: core: Rename debugfs directory name 2021-03-10 20:11:22 +05:30
init.c bus: mhi: core: Remove pre_init flag used for power purposes 2021-04-07 12:25:41 +05:30
internal.h bus: mhi: core: Introduce internal register poll helper function 2021-04-01 00:09:52 +05:30
main.c bus: mhi: core: Fix MHI runtime_pm behavior 2021-04-07 12:18:28 +05:30
Makefile bus: mhi: core: Fix the building of MHI module 2020-10-02 11:33:47 +02:00
pm.c bus: mhi: core: Remove pre_init flag used for power purposes 2021-04-07 12:25:41 +05:30