Message ID | 1617067704-28850-2-git-send-email-bbhatt@codeaurora.org |
---|---|
State | Accepted |
Commit | 418bec695696abd1b4d5abca85f143ead2ffedac |
Headers | show |
Series | MHI Emergency download and flash programmer support | expand |
diff --git a/drivers/bus/mhi/core/boot.c b/drivers/bus/mhi/core/boot.c index 08c2874..84c2117 100644 --- a/drivers/bus/mhi/core/boot.c +++ b/drivers/bus/mhi/core/boot.c @@ -460,7 +460,8 @@ void mhi_fw_load_handler(struct mhi_controller *mhi_cntrl) goto error_fw_load; } - if (mhi_cntrl->ee == MHI_EE_EDL) { + /* Exit if EDL image was loaded */ + if (fw_name == mhi_cntrl->edl_image) { release_firmware(firmware); return; }