From: Zhao Qiang Date: Mon, 14 Aug 2017 02:22:43 +0000 (+0800) Subject: QE: Set QE_IRAM_READY after uploading firmware X-Git-Tag: v2017.11-rc1~165^2~31 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7a81756b8851b84de11c8e755b2e63d907336d4;p=oweals%2Fu-boot.git QE: Set QE_IRAM_READY after uploading firmware QE_IRAM_READY should be set only after successfully uploading the firmware. Signed-off-by: Zhao Qiang Reviewed-by: York Sun --- diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 24e764dc7c..8151068432 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -225,8 +225,8 @@ void u_qe_init(void) flush_cache((ulong)addr, cnt * 512); } #endif - u_qe_upload_firmware(addr); - out_be32(&qe_immr->iram.iready, QE_IRAM_READY); + if (!u_qe_upload_firmware(addr)) + out_be32(&qe_immr->iram.iready, QE_IRAM_READY); #ifdef CONFIG_SYS_QE_FMAN_FW_IN_MMC free(addr); #endif