diff options
author | Mara Sophie Grosch via groups.io <littlefox=lf-net.org@groups.io> | 2022-03-23 18:22:34 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-03-25 00:59:04 +0000 |
commit | 69218d5d2854acaa7a11c777244de4a297d2fbb9 (patch) | |
tree | 691e82732a0d224226147db6b8c609894bc2eaa0 /MdeModulePkg | |
parent | 5d8d8b514832fcaa36c0b573b51442c2f53e2aaf (diff) | |
download | edk2-69218d5d2854acaa7a11c777244de4a297d2fbb9.zip edk2-69218d5d2854acaa7a11c777244de4a297d2fbb9.tar.gz edk2-69218d5d2854acaa7a11c777244de4a297d2fbb9.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c b/MdeModulePkg/Bus/Pci/NvmExpressPei/NvmExpressPeiHci.c index ac956bd..bff5cfd 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;
}
|