]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(ufs): set the PRDT length field properly
authorJorge Troncoso <jatron@google.com>
Wed, 22 Feb 2023 23:30:47 +0000 (15:30 -0800)
committerJorge Troncoso <jatron@google.com>
Sat, 25 Feb 2023 14:32:44 +0000 (06:32 -0800)
commit20fdbcf502bd457a4b74ffa9a610d573594f1f6c
tree7a0d2e83b47fc512f86114a635d7e9d1404da552
parent83ef8698f9d1477c892cad15b4e48574ed634903
fix(ufs): set the PRDT length field properly

The PRDT length field contains the count of the entries in the PRDT. See
JEDEC Standard No. 223E, section 6.1.1, "UTP Transfer Request
Descriptor," page 66. Previously we were setting the PRDT length field
to the number of bytes in the PRDT divided by four (the size in units of
32 bits). This was incorrect according to the spec.

Signed-off-by: Jorge Troncoso <jatron@google.com>
Change-Id: I960771e6ce57002872392993042fae9ec505447e
drivers/ufs/ufs.c
include/drivers/ufs.h