MdeModulePkg/SdMmcPciHcDxe: Add an optional parameter in NotifyPhase
In order to ensure bigger flexibility in the NotifyPhase routine of the SdMmcOverride protocol, enable using an optional phase-specific data. This will allow to exchange more information between the protocol producer driver and SdMmcPciHcDxe in the newly added callbacks. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@@ -444,7 +444,8 @@ SdMmcHcReset (
|
||||
Status = mOverride->NotifyPhase (
|
||||
Private->ControllerHandle,
|
||||
Slot,
|
||||
EdkiiSdMmcResetPre);
|
||||
EdkiiSdMmcResetPre,
|
||||
NULL);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_WARN,
|
||||
"%a: SD/MMC pre reset notifier callback failed - %r\n",
|
||||
@@ -494,7 +495,8 @@ SdMmcHcReset (
|
||||
Status = mOverride->NotifyPhase (
|
||||
Private->ControllerHandle,
|
||||
Slot,
|
||||
EdkiiSdMmcResetPost);
|
||||
EdkiiSdMmcResetPost,
|
||||
NULL);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_WARN,
|
||||
"%a: SD/MMC post reset notifier callback failed - %r\n",
|
||||
@@ -1088,7 +1090,8 @@ SdMmcHcInitHost (
|
||||
Status = mOverride->NotifyPhase (
|
||||
Private->ControllerHandle,
|
||||
Slot,
|
||||
EdkiiSdMmcInitHostPre);
|
||||
EdkiiSdMmcInitHostPre,
|
||||
NULL);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_WARN,
|
||||
"%a: SD/MMC pre init notifier callback failed - %r\n",
|
||||
@@ -1123,7 +1126,8 @@ SdMmcHcInitHost (
|
||||
Status = mOverride->NotifyPhase (
|
||||
Private->ControllerHandle,
|
||||
Slot,
|
||||
EdkiiSdMmcInitHostPost);
|
||||
EdkiiSdMmcInitHostPost,
|
||||
NULL);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_WARN,
|
||||
"%a: SD/MMC post init notifier callback failed - %r\n",
|
||||
|
Reference in New Issue
Block a user