summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorMara Sophie Grosch via groups.io <littlefox=lf-net.org@groups.io>2022-03-23 18:22:34 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-03-25 00:59:04 +0000
commit69218d5d2854acaa7a11c777244de4a297d2fbb9 (patch)
tree691e82732a0d224226147db6b8c609894bc2eaa0 /MdeModulePkg
parent5d8d8b514832fcaa36c0b573b51442c2f53e2aaf (diff)
downloadedk2-69218d5d2854acaa7a11c777244de4a297d2fbb9.tar.gz
edk2-69218d5d2854acaa7a11c777244de4a297d2fbb9.tar.bz2
edk2-69218d5d2854acaa7a11c777244de4a297d2fbb9.zip
MdeModulePkg/NvmExpressPei: fix check for NVM command set
Previous commit fixed that check in DXE, this one now for PEI. Signed-off-by: Mara Sophie Grosch <littlefox@lf-net.org> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c b/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c
index ac956bdce4..bff5cfd0d5 100644
--- a/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c
+++ b/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c
@@ -571,7 +571,7 @@ NvmeControllerInit (
// Read the controller Capabilities register and verify that the NVM command set is supported
//
NVME_GET_CAP (Private, &Private->Cap);
- if (Private->Cap.Css != 0x01) {
+ if ((Private->Cap.Css & BIT0) == 0) {
DEBUG ((DEBUG_ERROR, "%a: The NVME controller doesn't support NVMe command set.\n", __FUNCTION__));
return EFI_UNSUPPORTED;
}