From 83103d1264fe3cd7d54f3a89121d6889b4d33980 Mon Sep 17 00:00:00 2001 From: Jorge Troncoso Date: Mon, 20 Feb 2023 18:35:24 -0800 Subject: [PATCH] fix(ufs): device present (DP) field is set to '1' The Device Present (DP) field is set to '1' after host controller receive 'SUCCESS' return code on the response of the DME_LINKSTARTUP UIC CMD during host controller initialization. JEDEC Standard No. 223E Page 28 Signed-off-by: Jorge Troncoso Change-Id: I9db0374c1df3530d64187b9e449cde3b27d63072 --- drivers/ufs/ufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index d8c0a140e..cf3f0e62c 100644 --- a/drivers/ufs/ufs.c +++ b/drivers/ufs/ufs.c @@ -225,7 +225,7 @@ static int ufshc_link_startup(uintptr_t base) } continue; } - assert((mmio_read_32(base + HCS) & HCS_DP) == 0); + assert(mmio_read_32(base + HCS) & HCS_DP); data = mmio_read_32(base + IS); if (data & UFS_INT_ULSS) mmio_write_32(base + IS, UFS_INT_ULSS); -- 2.39.5