]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(ufs): device present (DP) field is set to '1'
authorJorge Troncoso <jatron@google.com>
Tue, 21 Feb 2023 02:35:24 +0000 (18:35 -0800)
committerJorge Troncoso <jatron@google.com>
Tue, 21 Feb 2023 03:49:54 +0000 (19:49 -0800)
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 <jatron@google.com>
Change-Id: I9db0374c1df3530d64187b9e449cde3b27d63072

drivers/ufs/ufs.c

index d8c0a140e0f5a8472fb86865650d42890cfffb93..cf3f0e62ceaf08593521259347d3cf75c8863323 100644 (file)
@@ -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);