]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Ufs: Fix UFS flag read from Query Resp UPIU
authorAgrawal, Sachin <sachin.agrawal@intel.com>
Mon, 23 Sep 2019 11:48:17 +0000 (19:48 +0800)
committerHao A Wu <hao.a.wu@intel.com>
Tue, 15 Oct 2019 01:54:37 +0000 (09:54 +0800)
commitcd70b1a71d30d0fff4c549a309682fdf127aaae6
treed7a74e631be807a5b2cb72aa93ddb94de5bbd0fd
parent4d05a4b709ce52d4649698f887a1358246fa4437
MdeModulePkg/Ufs: Fix UFS flag read from Query Resp UPIU

As per UFS spec, flag value is stored in the 'last byte' of value
field. Existing code is attempting to read first byte.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2208

Test: Verified the Fix by sending command to set fPowerOnWPEn flag
and then reading it to verify the set value.

Cc: Ray Ni <ray.ni@intel.com>
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Ufs/UfsBlockIoPei/UfsHci.c
MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c