Skip to content

Commit

Permalink
Rk356x: OhciDxe: Halt controller when exiting boot services
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmcneill committed May 4, 2023
1 parent d473485 commit 874dc23
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions edk2-rockchip/Silicon/Rockchip/Rk356x/Drivers/OhciDxe/Ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2246,6 +2246,17 @@ OhciInitialiseController (
}
DEBUG ((EFI_D_ERROR, "OHCI started for controller @ %p\n", Ohc->Controller));
Bus++;

Status = gBS->CreateEventEx (
EVT_NOTIFY_SIGNAL,
TPL_NOTIFY,
OhcExitBootService,
Ohc,
&gEfiEventExitBootServicesGuid,
&Ohc->ExitBootServiceEvent
);
ASSERT_EFI_ERROR (Status);

return EFI_SUCCESS;

FREE_OHC:
Expand Down

0 comments on commit 874dc23

Please sign in to comment.