]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(ufs): fix slot base address computation
authoranans <anans@google.com>
Mon, 1 Aug 2022 02:37:25 +0000 (02:37 +0000)
committeranans <anans@google.com>
Mon, 1 Aug 2022 02:39:52 +0000 (02:39 +0000)
The entire packet including UPIUs and PRDT is 0x400 but the controller
just looks for the header (32-bytes) from the UTRL

Change-Id: Ibd5d22b4a841c107fdf6447d598c5c600998e0f8
Signed-off-by: Anand Saminathan <anans@google.com>
drivers/ufs/ufs.c

index 2c9bab7b1f9fda852c7979b830d9cc334870c0be..644b670d265c58911f25cdca315793660236d239 100644 (file)
@@ -264,7 +264,7 @@ static void get_utrd(utp_utrd_t *utrd)
 
        /* clear utrd */
        memset((void *)utrd, 0, sizeof(utp_utrd_t));
-       base = ufs_params.desc_base + (slot * UFS_DESC_SIZE);
+       base = ufs_params.desc_base + (slot * sizeof(utrd_header_t));
        /* clear the descriptor */
        memset((void *)base, 0, UFS_DESC_SIZE);