From 09138d73842cb8a98749f4d8ad7981ba9053ae25 Mon Sep 17 00:00:00 2001 From: Bhaumik Bhatt Date: Tue, 29 Mar 2022 17:35:14 -0700 Subject: [PATCH] bus: mhi: misc: DTR race condition updates Data terminal ready driver should not be started until other client drivers are probed so that they can get the necessary notifications when updates are made available to them by the device via incoming messages. Adjust flow of the driver and ensure DTR driver starts after all other devices are created by core driver. Change-Id: I9e0bcb87a3b59a66fede0c82ded94a704d16c2a1 Signed-off-by: Bhaumik Bhatt Signed-off-by: Lazarus Motha --- drivers/bus/mhi/host/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/mhi/host/pm.c b/drivers/bus/mhi/host/pm.c index f12abb9c5cf8..9755f9fe0667 100644 --- a/drivers/bus/mhi/host/pm.c +++ b/drivers/bus/mhi/host/pm.c @@ -437,7 +437,6 @@ static int mhi_pm_mission_mode_transition(struct mhi_controller *mhi_cntrl) read_unlock_bh(&mhi_cntrl->pm_lock); - mhi_misc_mission_mode(mhi_cntrl); mhi_process_sleeping_events(mhi_cntrl); /* @@ -445,6 +444,7 @@ static int mhi_pm_mission_mode_transition(struct mhi_controller *mhi_cntrl) * Execution Environment (EE) to either SBL or AMSS states */ mhi_create_devices(mhi_cntrl); + mhi_misc_mission_mode(mhi_cntrl); read_lock_bh(&mhi_cntrl->pm_lock);