diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c index ae593ff03a..a7dbeff23b 100644 --- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c +++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThru.c @@ -984,6 +984,15 @@ UfsPassThruDriverBindingStart ( } } + // MU_CHANGE [BEGIN] - Install UFS Device Config Protocol before caching the device config + Status = gBS->InstallMultipleProtocolInterfaces ( + &Controller, + &gEfiUfsDeviceConfigProtocolGuid, + &(Private->UfsDevConfig), + NULL + ); + // MU_CHANGE [END] + // // Check if 8 common luns are active and set corresponding bit mask. // @@ -1040,14 +1049,14 @@ UfsPassThruDriverBindingStart ( goto Error; } + // MU_CHANGE [BEGIN] - Install UFS Device Config Protocol before caching the device config Status = gBS->InstallMultipleProtocolInterfaces ( &Controller, &gEfiExtScsiPassThruProtocolGuid, &(Private->ExtScsiPassThru), - &gEfiUfsDeviceConfigProtocolGuid, - &(Private->UfsDevConfig), NULL ); + // MU_CHANGE [END] ASSERT_EFI_ERROR (Status); return EFI_SUCCESS;