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>
This commit is contained in:
Mara Sophie Grosch via groups.io 2022-03-23 18:22:34 +08:00 committed by mergify[bot]
parent 5d8d8b5148
commit 69218d5d28
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}