This series fixes two gaps that prevent a UFSHCI 4.1 host from bringing the
emulated device up and using it over MCQ.
Patch 1 adds minimal DME_GET/SET handling for the PA layer attributes that a
host reads and writes when negotiating the link power mode after
DME_LINK_STARTUP. Previously every DME command other than LINK_STARTUP and
HIBER_{ENTER,EXIT} returned FAILURE, so the power-mode change could not
complete.
Patch 2 populates cqe.task_tag (and lun) in the MCQ completion path. The
device reports version 4.1, for which the request tag is conveyed in the CQE
task_tag field instead of being derived from the command descriptor base
address, so completions were all decoded as tag 0.
Jeuk Kim (2):
hw/ufs: Emulate DME_GET/SET for PA layer attributes
hw/ufs: Populate cqe.task_tag for UFSHCI 4.1 tag decoding
hw/ufs/ufs.c | 46 +++++++++++++++++++++++++++++++++++++++++++++
include/block/ufs.h | 18 +++++++++++++++++-
2 files changed, 63 insertions(+), 1 deletion(-)
--
2.43.0