mirror of https://github.com/acidanthera/audk.git
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:
parent
5d8d8b5148
commit
69218d5d28
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue