bus: mhi: core: Add support MHI EE FP for download firmware
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi bbhatt:
Quoted 52 lines · bbhatt
Hi Carl,
Quoted 50 lines · Hemant Kumar
Hi Jeff,
Quoted 47 lines · Jeffrey Hugo
Quoted 46 lines · On 10/27/2020 3:43 AM, [email protected] wrote:
From: "carl.yin" <[email protected]>
MHI wwan modems support download firmware to nand or emmc by firehose protocol, process as next:
1. wwan modem normal bootup and enter EE AMSS, create mhi DIAG chan device 2. send EDL cmd via DIAG chan, then modem enter EE EDL 3.boot.cdownload 'firehose/prog_firehose_sdx55.mbn' via BHI interface
4. modem enter EE FP, and create mhi EDL chan device 5. user space tool download FW to modem via EDL chan by firehose protocolSigned-off-by carl.yin <[email protected]>---
drivers/bus/mhi/core/boot.c | 4 +++- drivers/bus/mhi/core/init.c | 2 ++drivers/bus/mhi/core/internal.h| 1 + drivers/bus/mhi/core/main.c | 3 +++ drivers/bus/mhi/core/pm.c | 16 +++++++++++++++- include/linux/mhi.h | 4 +++-6 files changed, 27 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/bus/mhi/core/boot.cindex 24422f5..ab39ad6 100644drivers/bus/mhi/core/boot.c +3
-1@@ -460,8 +460,10 @@ void mhi_fw_load_handler(struct mhi_controller *mhi_cntrl) return; } - if (mhi_cntrl->ee == MHI_EE_EDL) + if (mhi_cntrl->ee == MHI_EE_EDL) { + mhi_ready_state_transition(mhi_cntrl); return; + } write_lock_irq(&mhi_cntrl->pm_lock);
mhi_cntrl->dev_state=MHI_STATE_RESET; diff --gita/drivers/bus/mhi/core/init.cb/drivers/bus/mhi/core/init.cindex ac4aa5c..9c2c2f3 100644drivers/bus/mhi/core/init.c +1
-0@@ -26,6 +26,7 @@ const char * const mhi_ee_str[MHI_EE_MAX] = { [MHI_EE_WFW] = "WFW", [MHI_EE_PTHRU] = "PASS THRU", [MHI_EE_EDL] = "EDL", + [MHI_EE_FP] = "FP", [MHI_EE_DISABLE_TRANSITION] = "DISABLE", [MHI_EE_NOT_SUPPORTED] = "NOT SUPPORTED",
Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
drivers/bus/mhi/core/init.c const char * const · line 40
Quoted 7 lines
drivers/bus/mhi/core/init.c +1
-0};@@ -35,6 +36,7 @@ const char * const dev_state_tran_str[DEV_ST_TRANSITION_MAX] = { [DEV_ST_TRANSITION_READY] = "READY", [DEV_ST_TRANSITION_SBL] = "SBL", [DEV_ST_TRANSITION_MISSION_MODE] = "MISSION_MODE", + [DEV_ST_TRANSITION_FP] = "FP",Longer description here would be nice (FLASH PROGRAMMER).
[carl.yin] yes, for SDX24 and SDX55 chip, 'FIREHOSE PROGRAMMER' is more better.
Quoted 113 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
drivers/bus/mhi/core/init.c +0
-0[DEV_ST_TRANSITION_SYS_ERR] = "SYS_ERR", [DEV_ST_TRANSITION_DISABLE] = "DISABLE",};
(quoted diff) +0
-0
b/drivers/bus/mhi/core/internal.hindex 4abf0cf..6ae897a 100644drivers/bus/mhi/core/internal.h +1
-0@@ -386,6 +386,7 @@ enum dev_st_transition { DEV_ST_TRANSITION_READY, DEV_ST_TRANSITION_SBL, DEV_ST_TRANSITION_MISSION_MODE, + DEV_ST_TRANSITION_FP, DEV_ST_TRANSITION_SYS_ERR, DEV_ST_TRANSITION_DISABLE, DEV_ST_TRANSITION_MAX,(quoted diff) +0
-0
b/drivers/bus/mhi/core/main.cindex 3950792..e307b58 100644drivers/bus/mhi/core/main.c +0
-0@@ -782,6 +782,9 @@ int mhi_process_ctrl_ev_ring(struct mhi_controller *mhi_cntrl,case
MHI_EE_SBL:Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
st =
DEV_ST_TRANSITION_SBL; break;
+ caseMHI_EE_FP:
+ st =DEV_ST_TRANSITION_FP;
+ break;
caseMHI_EE_WFW:
caseMHI_EE_AMSS:
st =DEV_ST_TRANSITION_MISSION_MODE; diff--git
Quoted 11 lines
Quoted 11 lines
drivers/bus/mhi/core/pm.c static void mhi_pm_disable_transition(struct · line 567
Quoted 11 lines
a/drivers/bus/mhi/core/pm.cb/drivers/bus/mhi/core/pm.cindex 3de7b16..3c95a5d 100644drivers/bus/mhi/core/pm.c +2
-1@@ -563,7 +563,15 @@ static void mhi_pm_disable_transition(structmhi_controller *mhi_cntrl, } if (cur_state == MHI_PM_SYS_ERR_PROCESS) { - mhi_ready_state_transition(mhi_cntrl); + if (mhi_get_exec_env(mhi_cntrl) == MHI_EE_EDL + && mhi_get_mhi_state(mhi_cntrl) == MHI_STATE_RESET){
Quoted 2 lines
Quoted 2 lines
drivers/bus/mhi/core/pm.c static void mhi_pm_disable_transition(struct · line 569
Quoted 2 lines
drivers/bus/mhi/core/pm.c +2
-0+ write_lock_irq(&mhi_cntrl->pm_lock); + cur_state = mhi_tryset_pm_state(mhi_cntrl,
MHI_PM_POR);Quoted 60 lines
Quoted 41 lines
Quoted 41 lines
drivers/bus/mhi/core/pm.c +5
-0+ write_unlock_irq(&mhi_cntrl->pm_lock); + mhi_queue_state_transition(mhi_cntrl,DEV_ST_TRANSITION_PBL ); + } else { + mhi_ready_state_transition(mhi_cntrl); + } } else { /* Move to disable state */
write_lock_irq(&mhi_cntrl->pm_lock);drivers/bus/mhi/core/pm.c +0
-0@@ -658,6 +666,12 @@ void mhi_pm_st_worker(struct work_struct *work)case
DEV_ST_TRANSITION_MISSION_MODE:
mhi_pm_mission_mode_transition(mhi_cntrl); break;
+ caseDEV_ST_TRANSITION_FP:
+write_lock_irq(&mhi_cntrl->pm_lock); +mhi_cntrl->ee=MHI_EE_FP;
+write_unlock_irq(&mhi_cntrl->pm_lock); +mhi_create_devices(mhi_cntrl);
+ break;
caseDEV_ST_TRANSITION_READY:
mhi_ready_state_transition(mhi_cntrl); break;include/linux/mhi.h index renamed from include/linux/mhi.h +0
-06e1122c..4620af8 100644
include/linux/mhi.h +3
-1@@ -120,6 +120,7 @@ struct mhi_link_info {* @MHI_EE_WFW: WLAN firmware mode * @MHI_EE_PTHRU: Passthrough * @MHI_EE_EDL: Embedded downloader +* @MHI_EE_FP, Flash Programmer Environment */ enum mhi_ee_type { MHI_EE_PBL,@@ -129,7 +130,8 @@ enum mhi_ee_type { MHI_EE_WFW, MHI_EE_PTHRU, MHI_EE_EDL, - MHI_EE_MAX_SUPPORTED = MHI_EE_EDL, + MHI_EE_FP, + MHI_EE_MAX_SUPPORTED = MHI_EE_FP,Quoted 9 lines
Quoted 5 lines
MHI_EE_DISABLE_TRANSITION, /* local EE, not related to mhi spec */
MHI_EE_NOT_SUPPORTED,
MHI_EE_MAX,This gets a NACK from me. I don't see the
FP_EEthat this patch introduces defined in the spec. Where did it come from?There is indeed a FP EE, BHI spec will be updated with this EE next month.
Basically, once device goes to EDL, flash programmer image is downloaded using BHI protocol (same as we download SBL image using BHI from PBL in current use case). Once it is downloaded intvec sends EE change event for FP. Also event is generated for the same which is used to create EDL channels (34, 35) which is used by flash programmer to flash image for AMSS.
Quoted 6 lines
Quoted 1 line
Quoted 1 line
2. send EDL cmd via DIAG chan, then modem enter EE EDL
#2 needs to be done in cleaner way. From AMSS when diag cmd is sent to switch to EDL, device would send
SYS_ERRwhich we can use to do a call back to mhi controller to perform power down and power up. Instead of moving pm state to POR from disable transition :-
Quoted 5 lines
The callback that Hemant refers to is for
MHI_CB_FATAL_ERROR. It should be seen by the controller once device enters EDL EE with MHI inSYS_ERRORstate.Can you confirm you see this? If yes, it should be used to power down and power up MHI with EE set to EDL.
[carl.yin] from AMSS EE to SBL EE or EDL EE, I think it is not a really ' FATAL_ERROR '. It is a normal EE state change, no need to power down and power up device. When ' FATAL_ERROR ' occurs, we can get really EE state from the MHI devices. Then just stay here, let the user space tools to decide how to handle this new EE.
Quoted 18 lines
This, along with the
mhi_cntrl->edl_imageset from the controller, will result in MHI loading the EDL image for you.Quoted 15 lines
(quoted diff) +0
-0@@ -563,7 +563,15 @@ static void mhi_pm_disable_transition(struct >> mhi_controller *mhi_cntrl, >> } >> if (cur_state == MHI_PM_SYS_ERR_PROCESS) { >> - mhi_ready_state_transition(mhi_cntrl);Quoted 10 lines
Quoted 10 lines
include/linux/mhi.h +6
-0+if (mhi_get_exec_env (mhi_cntrl) ==MHI_EE_EDL + &&mhi_get_mhi_state (mhi_cntrl) ==MHI_STATE_RESET ) { +write_lock_irq (&mhi_cntrl->pm_lock); + cur_state =mhi_tryset_pm_state (mhi_cntrl,MHI_PM_POR ); +write_unlock_irq (&mhi_cntrl->pm_lock); + mhi_queue_state_transition(mhi_cntrl,
DEV_ST_TRANSITION_PBL);include/linux/mhi.h +3
-0+ }else { +mhi_ready_state_transition (mhi_cntrl); + }
[carl.yin] I am working on SDX24 and SDX55 chip, maybe the process is different form MHI wlan chips? For these chips, SBL EE means the chip enter RAMDUMP state. mhi driver just need export SAHARA chan to user space, then user space tool to catch RADDUMP.
Quoted 9 lines
Quoted 3 lines
Thanks,
HemantThanks,
Bhaumik
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 63 lines · Carl Yin
Hi bbhatt:
Quoted 52 lines · bbhatt
Hi Carl,
Quoted 50 lines · Hemant Kumar
Hi Jeff,
Quoted 47 lines · Jeffrey Hugo
Quoted 46 lines · On 10/27/2020 3:43 AM, [email protected] wrote:
From: "carl.yin" <[email protected]>
MHI wwan modems support download firmware to nand or emmc by firehose protocol, process as next:
1. wwan modem normal bootup and enter EE AMSS, create mhi DIAG chan device 2. send EDL cmd via DIAG chan, then modem enter EE EDL 3.boot.cdownload 'firehose/prog_firehose_sdx55.mbn' via BHI interface
4. modem enter EE FP, and create mhi EDL chan device 5. user space tool download FW to modem via EDL chan by firehose protocolSigned-off-by carl.yin <[email protected]>---
drivers/bus/mhi/core/boot.c | 4 +++- drivers/bus/mhi/core/init.c | 2 ++drivers/bus/mhi/core/internal.h| 1 + drivers/bus/mhi/core/main.c | 3 +++ drivers/bus/mhi/core/pm.c | 16 +++++++++++++++- include/linux/mhi.h | 4 +++-6 files changed, 27 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/bus/mhi/core/boot.cindex 24422f5..ab39ad6 100644drivers/bus/mhi/core/boot.c +3
-1@@ -460,8 +460,10 @@ void mhi_fw_load_handler(struct mhi_controller *mhi_cntrl) return; } - if (mhi_cntrl->ee == MHI_EE_EDL) + if (mhi_cntrl->ee == MHI_EE_EDL) { + mhi_ready_state_transition(mhi_cntrl); return; + } write_lock_irq(&mhi_cntrl->pm_lock);
mhi_cntrl->dev_state=MHI_STATE_RESET; diff --gita/drivers/bus/mhi/core/init.cb/drivers/bus/mhi/core/init.cindex ac4aa5c..9c2c2f3 100644drivers/bus/mhi/core/init.c +1
-0@@ -26,6 +26,7 @@ const char * const mhi_ee_str[MHI_EE_MAX] = { [MHI_EE_WFW] = "WFW", [MHI_EE_PTHRU] = "PASS THRU", [MHI_EE_EDL] = "EDL", + [MHI_EE_FP] = "FP", [MHI_EE_DISABLE_TRANSITION] = "DISABLE", [MHI_EE_NOT_SUPPORTED] = "NOT SUPPORTED",Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
drivers/bus/mhi/core/init.c const char * const · line 40
Quoted 7 lines
drivers/bus/mhi/core/init.c +1
-0};@@ -35,6 +36,7 @@ const char * const dev_state_tran_str[DEV_ST_TRANSITION_MAX] = { [DEV_ST_TRANSITION_READY] = "READY", [DEV_ST_TRANSITION_SBL] = "SBL", [DEV_ST_TRANSITION_MISSION_MODE] = "MISSION_MODE", + [DEV_ST_TRANSITION_FP] = "FP",Longer description here would be nice (FLASH PROGRAMMER).
Quoted 1 line
[carl.yin] yes, for SDX24 and SDX55 chip, 'FIREHOSE PROGRAMMER' is more better.
I agree with Jeff, should be generic.
Quoted 116 lines
Quoted 116 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
drivers/bus/mhi/core/init.c +0
-0[DEV_ST_TRANSITION_SYS_ERR] = "SYS_ERR", [DEV_ST_TRANSITION_DISABLE] = "DISABLE",};
(quoted diff) +0
-0
b/drivers/bus/mhi/core/internal.hindex 4abf0cf..6ae897a 100644drivers/bus/mhi/core/internal.h +1
-0@@ -386,6 +386,7 @@ enum dev_st_transition { DEV_ST_TRANSITION_READY, DEV_ST_TRANSITION_SBL, DEV_ST_TRANSITION_MISSION_MODE, + DEV_ST_TRANSITION_FP, DEV_ST_TRANSITION_SYS_ERR, DEV_ST_TRANSITION_DISABLE, DEV_ST_TRANSITION_MAX,(quoted diff) +0
-0
b/drivers/bus/mhi/core/main.cindex 3950792..e307b58 100644drivers/bus/mhi/core/main.c +0
-0@@ -782,6 +782,9 @@ int mhi_process_ctrl_ev_ring(struct mhi_controller *mhi_cntrl,case
MHI_EE_SBL:Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
st =
DEV_ST_TRANSITION_SBL; break;
+ caseMHI_EE_FP:
+ st =DEV_ST_TRANSITION_FP;
+ break;
caseMHI_EE_WFW:
caseMHI_EE_AMSS:
st =DEV_ST_TRANSITION_MISSION_MODE; diff--git
Quoted 11 lines
Quoted 11 lines
drivers/bus/mhi/core/pm.c static void mhi_pm_disable_transition(struct · line 567
Quoted 11 lines
a/drivers/bus/mhi/core/pm.cb/drivers/bus/mhi/core/pm.cindex 3de7b16..3c95a5d 100644drivers/bus/mhi/core/pm.c +2
-1@@ -563,7 +563,15 @@ static void mhi_pm_disable_transition(structmhi_controller *mhi_cntrl, } if (cur_state == MHI_PM_SYS_ERR_PROCESS) { - mhi_ready_state_transition(mhi_cntrl); + if (mhi_get_exec_env(mhi_cntrl) == MHI_EE_EDL + && mhi_get_mhi_state(mhi_cntrl) == MHI_STATE_RESET){
Quoted 2 lines
Quoted 2 lines
drivers/bus/mhi/core/pm.c static void mhi_pm_disable_transition(struct · line 569
Quoted 2 lines
drivers/bus/mhi/core/pm.c +2
-0+ write_lock_irq(&mhi_cntrl->pm_lock); + cur_state = mhi_tryset_pm_state(mhi_cntrl,
MHI_PM_POR);Quoted 60 lines
Quoted 41 lines
Quoted 41 lines
drivers/bus/mhi/core/pm.c +5
-0+ write_unlock_irq(&mhi_cntrl->pm_lock); + mhi_queue_state_transition(mhi_cntrl,DEV_ST_TRANSITION_PBL ); + } else { + mhi_ready_state_transition(mhi_cntrl); + } } else { /* Move to disable state */
write_lock_irq(&mhi_cntrl->pm_lock);drivers/bus/mhi/core/pm.c +0
-0@@ -658,6 +666,12 @@ void mhi_pm_st_worker(struct work_struct *work)case
DEV_ST_TRANSITION_MISSION_MODE:
mhi_pm_mission_mode_transition(mhi_cntrl); break;
+ caseDEV_ST_TRANSITION_FP:
+write_lock_irq(&mhi_cntrl->pm_lock); +mhi_cntrl->ee=MHI_EE_FP;
+write_unlock_irq(&mhi_cntrl->pm_lock); +mhi_create_devices(mhi_cntrl);
+ break;
caseDEV_ST_TRANSITION_READY:
mhi_ready_state_transition(mhi_cntrl); break;include/linux/mhi.h index renamed from include/linux/mhi.h +0
-06e1122c..4620af8 100644
include/linux/mhi.h +3
-1@@ -120,6 +120,7 @@ struct mhi_link_info {* @MHI_EE_WFW: WLAN firmware mode * @MHI_EE_PTHRU: Passthrough * @MHI_EE_EDL: Embedded downloader +* @MHI_EE_FP, Flash Programmer Environment */ enum mhi_ee_type { MHI_EE_PBL,@@ -129,7 +130,8 @@ enum mhi_ee_type { MHI_EE_WFW, MHI_EE_PTHRU, MHI_EE_EDL, - MHI_EE_MAX_SUPPORTED = MHI_EE_EDL, + MHI_EE_FP, + MHI_EE_MAX_SUPPORTED = MHI_EE_FP,Quoted 9 lines
Quoted 5 lines
MHI_EE_DISABLE_TRANSITION, /* local EE, not related to mhi spec */
MHI_EE_NOT_SUPPORTED,
MHI_EE_MAX,This gets a NACK from me. I don't see the
FP_EEthat this patch introduces defined in the spec. Where did it come from?There is indeed a FP EE, BHI spec will be updated with this EE next month.
Basically, once device goes to EDL, flash programmer image is downloaded using BHI protocol (same as we download SBL image using BHI from PBL in current use case). Once it is downloaded intvec sends EE change event for FP. Also event is generated for the same which is used to create EDL channels (34, 35) which is used by flash programmer to flash image for AMSS.
Quoted 6 lines
Quoted 1 line
Quoted 1 line
2. send EDL cmd via DIAG chan, then modem enter EE EDL
#2 needs to be done in cleaner way. From AMSS when diag cmd is sent to switch to EDL, device would send
SYS_ERRwhich we can use to do a call back to mhi controller to perform power down and power up. Instead of moving pm state to POR from disable transition :-The callback that Hemant refers to is for
MHI_CB_FATAL_ERROR. It should be seen by the controller once device enters EDL EE with MHI inSYS_ERRORstate.
Quoted 9 lines
Quoted 2 lines
Can you confirm you see this? If yes, it should be used to power down and power up MHI with EE set to EDL.
[carl.yin] from AMSS EE to SBL EE or EDL EE, I think it is not a really '
FATAL_ERROR'.
It is a normal EE state change, no need to power down and power up device. When 'FATAL_ERROR' occurs, we can get really EE state from the MHI devices. Then just stay here, let the user space tools to decide how to handle this new EE.
Why do you think it is a normal EE change? FATAL ERROR callback is a means to notify the controller that the device is back to one of the PBL EEs (PBL/EDL/ PTHRU) and a clean-up must be done. Hence, the emphasis on doing an MHI power down and power up.
Because any move to from AMSS -> PBL is essentially treated as a reboot of the device, MHI host should instruct the controller to do the same for MHI. Once the next power up happens, you are free to load the EDL image because EE will be EDL if mhi_cntrl->edl_image is set as 'firehose/prog_firehose_sdx55.mbn'.
This if check is not a good idea. If you want to load the EDL image, just use what already exists.
Quoted 18 lines
Quoted 18 lines
This, along with the
mhi_cntrl->edl_imageset from the controller, will result in MHI loading the EDL image for you.Quoted 15 lines
(quoted diff) +0
-0@@ -563,7 +563,15 @@ static void mhi_pm_disable_transition(struct >> mhi_controller *mhi_cntrl, >> } >> if (cur_state == MHI_PM_SYS_ERR_PROCESS) { >> - mhi_ready_state_transition(mhi_cntrl);Quoted 10 lines
Quoted 10 lines
include/linux/mhi.h +6
-0+if (mhi_get_exec_env (mhi_cntrl) ==MHI_EE_EDL + &&mhi_get_mhi_state (mhi_cntrl) ==MHI_STATE_RESET ) { +write_lock_irq (&mhi_cntrl->pm_lock); + cur_state =mhi_tryset_pm_state (mhi_cntrl,MHI_PM_POR ); +write_unlock_irq (&mhi_cntrl->pm_lock); + mhi_queue_state_transition(mhi_cntrl,
DEV_ST_TRANSITION_PBL);include/linux/mhi.h +3
-0+ }else { +mhi_ready_state_transition (mhi_cntrl); + }
Quoted 15 lines
[carl.yin] I am working on SDX24 and SDX55 chip, maybe the process is different form MHI wlan chips?
For these chips, SBL EE means the chip enter RAMDUMP state. mhi driver just need export SAHARA chan
to user space, then user space tool to catch RADDUMP.Quoted 9 lines
Quoted 3 lines
Thanks,
HemantThanks,
Bhaumik
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Thanks,
Bhaumik
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 63 lines · Carl Yin(殷张成)
Hi bbhatt:
Quoted 52 lines · bbhatt
Hi Carl,
Quoted 50 lines · Hemant Kumar
Hi Jeff,
Quoted 47 lines · Jeffrey Hugo
Quoted 46 lines · On 10/27/2020 3:43 AM, [email protected] wrote:
From: "carl.yin" <[email protected]>
MHI wwan modems support download firmware to nand or emmc by firehose protocol, process as next:
1. wwan modem normal bootup and enter EE AMSS, create mhi DIAG chan device 2. send EDL cmd via DIAG chan, then modem enter EE EDL 3.boot.cdownload 'firehose/prog_firehose_sdx55.mbn' via BHI interface
4. modem enter EE FP, and create mhi EDL chan device 5. user space tool download FW to modem via EDL chan by firehose protocolSigned-off-by carl.yin <[email protected]>--- drivers/bus/mhi/core/boot.c | 4 +++- drivers/bus/mhi/core/init.c | 2 ++ drivers/bus/mhi/core/internal.h | 1 + drivers/bus/mhi/core/main.c | 3 +++ drivers/bus/mhi/core/pm.c | 16 +++++++++++++++- include/linux/mhi.h | 4 +++- 6 files changed, 27 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/bus/mhi/core/boot.cindex 24422f5..ab39ad6 100644drivers/bus/mhi/core/boot.c +3
-1@@ -460,8 +460,10 @@ void mhi_fw_load_handler(struct mhi_controller *mhi_cntrl) return; } - if (mhi_cntrl->ee == MHI_EE_EDL) + if (mhi_cntrl->ee == MHI_EE_EDL) { + mhi_ready_state_transition(mhi_cntrl); return; + } write_lock_irq(&mhi_cntrl->pm_lock); mhi_cntrl->dev_state = MHI_STATE_RESET; diff --git
a/drivers/bus/mhi/core/init.cb/drivers/bus/mhi/core/init.cindex ac4aa5c..9c2c2f3 100644drivers/bus/mhi/core/init.c +1
-0@@ -26,6 +26,7 @@ const char * const mhi_ee_str[MHI_EE_MAX] = { [MHI_EE_WFW] = "WFW", [MHI_EE_PTHRU] = "PASS THRU", [MHI_EE_EDL] = "EDL", + [MHI_EE_FP] = "FP", [MHI_EE_DISABLE_TRANSITION] = "DISABLE", [MHI_EE_NOT_SUPPORTED] = "NOT SUPPORTED",Quoted 8 lines
Quoted 7 lines
Quoted 7 lines
drivers/bus/mhi/core/init.c const char * const · line 40
Quoted 7 lines
drivers/bus/mhi/core/init.c +1
-0};@@ -35,6 +36,7 @@ const char * const dev_state_tran_str[DEV_ST_TRANSITION_MAX] = { [DEV_ST_TRANSITION_READY] = "READY", [DEV_ST_TRANSITION_SBL] = "SBL", [DEV_ST_TRANSITION_MISSION_MODE] = "MISSION_MODE", + [DEV_ST_TRANSITION_FP] = "FP",Longer description here would be nice (FLASH PROGRAMMER).
Quoted 1 line
[carl.yin] yes, for SDX24 and SDX55 chip, 'FIREHOSE PROGRAMMER' is more better.
"Flash programmer" is more generic. It means that the EE can be used with a different protocol than firehose if there is a use for that.
Signature · 3 lines
Jeffrey Hugo Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.