Searched hist:"56 db7b8b08d5bb350a02e1f794dc6eb02827917f" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/drivers/ufs/ |
| H A D | ufs.c | 56db7b8b08d5bb350a02e1f794dc6eb02827917f Wed Feb 22 08:51:31 UTC 2023 Jorge Troncoso <jatron@google.com> fix(ufs): only allow using one slot
Currently the UFS driver places the Command UPIU, Response UPIU, and PRDT immediately after the UTP Transfer Request Descriptor. This space would normally be reserved for other slots in the UTP Transfer Request List, but because we always use slot zero, the other slots in the UTP Transfer Request List are never used and this is okay.
Because the Command UPIU, Response UPIU, and PRDT are placed inside the UTP Transfer Request List, the UFS driver would break if two or more slots were used at the same time. Therefore, in a sense the get_empty_slot() function is misleading. It gives developers the illusion that they can use two or more slots simultaneously but in reality they cannot.
This change deletes the get_empty_slot() function and replaces it with is_slot_available() so that only one slot can be used.
Signed-off-by: Jorge Troncoso <jatron@google.com> Change-Id: I57f316640a1cdd56493505ede61f3012ceb2f305
|