]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(ufs): poll UCRDY for all commands
authorRohit Ner <rohitner@google.com>
Tue, 25 Apr 2023 07:14:41 +0000 (00:14 -0700)
committerRohit Ner <rohitner@google.com>
Tue, 25 Apr 2023 16:29:54 +0000 (09:29 -0700)
commit6e57b2f00e36e63da765e3aa1650b03772999726
tree082e86142f3824bb82da2dca2226089146abe245
parent100f56d873591a8de61ff8826c2ed8cdd09f3338
fix(ufs): poll UCRDY for all commands

Host must only set UICCMD if HCS.UCRDY is set to 1.
At present, SW polls for UCRDY only before sending DME_GET.
Generalise this behaviour for DME_SET, DME_LINKSTARTUP,
DME_HIBERNATE_EXIT by moving polling logic inside ufshc_send_uic_cmd.

Signed-off-by: Rohit Ner <rohitner@google.com>
Change-Id: Iece777f803a660fdd144a073834c221e889371a6
drivers/ufs/ufs.c