+ // + // Check validity of the device path of the ATA AHCI controller. + // + Status = AhciCheckHcDevicePath (DevicePath, DevicePathLength);
1. Please avoid using "Check".
+ if (EFI_ERROR (Status)) { + DEBUG (( + DEBUG_ERROR, "%a: The device path is invalid for Controller %d.\n", + __FUNCTION__, Controller + )); + Controller++; + continue; + } +
2. Please add more comments here.
+ if (BootMode == BOOT_ON_S3_RESUME) { + NumberOfPorts = AhciS3GetEumeratePorts (DevicePath, DevicePathLength, &PortBitMap); + if (NumberOfPorts == 0) { + // + // No ports need to be enumerated for this controller. + // + Controller++; + continue; + } + } else { + PortBitMap = MAX_UINT32; + } + + //
With the above comments addressed, Reviewed-by: Ray Ni <ray...@intel.com> -- Thanks, Ray _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel