2. Remove the comments of the BlockIo2 check in PartitionDriverBindingStart().
Signed-off-by: qianouyang
Reviewed-by: niruiyu
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12806
6f19259b-4bc3-4df7-8a09-
765794883524
ControllerHandle,\r
EFI_OPEN_PROTOCOL_TEST_PROTOCOL\r
);\r
ControllerHandle,\r
EFI_OPEN_PROTOCOL_TEST_PROTOCOL\r
);\r
- if (EFI_ERROR (Status)) {\r
- return Status;\r
- }\r
- \r
- Status = gBS->OpenProtocol (\r
- ControllerHandle,\r
- &gEfiBlockIo2ProtocolGuid,\r
- NULL,\r
- This->DriverBindingHandle,\r
- ControllerHandle,\r
- EFI_OPEN_PROTOCOL_TEST_PROTOCOL\r
- );\r
if (EFI_ERROR (Status)) {\r
if (EFI_ERROR (Status)) {\r
- //\r
- // According to UEFI Spec 2.3.1, if a driver is written for a disk device, \r
- // then the EFI_BLOCK_IO_PROTOCOL and EFI_BLOCK_IO2_PROTOCOAL must be implemented.\r
- // Currently, SCSI disk driver only produce the EFI_BLOCK_IO_PROTOCOL, it will\r
- // not be updated until the non blocking SCSI Pass Thru Protocol is provided.\r
- // If there is no EFI_BLOCK_IO2_PROTOCOL, skip here.\r
- // \r
- } \r
+ return Status;\r
+ }\r
+\r
return EFI_SUCCESS; \r
}\r
\r
return EFI_SUCCESS; \r
}\r
\r
BOOLEAN MediaPresent;\r
EFI_TPL OldTpl;\r
\r
BOOLEAN MediaPresent;\r
EFI_TPL OldTpl;\r
\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK); \r
//\r
// Check RemainingDevicePath validation\r
OldTpl = gBS->RaiseTPL (TPL_CALLBACK); \r
//\r
// Check RemainingDevicePath validation\r
ControllerHandle,\r
EFI_OPEN_PROTOCOL_BY_DRIVER\r
);\r
ControllerHandle,\r
EFI_OPEN_PROTOCOL_BY_DRIVER\r
);\r
- if (EFI_ERROR (Status)) {\r
- //\r
- // According to UEFI Spec 2.3.1, if a driver is written for a disk device, \r
- // then the EFI_BLOCK_IO_PROTOCOL and EFI_BLOCK_IO2_PROTOCOAL must be implemented.\r
- // Currently, SCSI disk driver only produce the EFI_BLOCK_IO_PROTOCOL, it will\r
- // not be updated until the non blocking SCSI Pass Thru Protocol is provided.\r
- // If there is no EFI_BLOCK_IO2_PROTOCOL, skip here.\r
- //\r
- }\r
\r
//\r
// Get the Device Path Protocol on ControllerHandle's handle.\r
\r
//\r
// Get the Device Path Protocol on ControllerHandle's handle.\r