Reviewed-by: Nickle Wang <[email protected]>

Regards,
Nickle

> -----Original Message-----
> From: [email protected] <[email protected]>
> Sent: Sunday, January 7, 2024 9:27 PM
> To: [email protected]
> Cc: Nickle Wang <[email protected]>; Igor Kulchytskyy <[email protected]>
> Subject: [PATCH V2 6/6] RedfishPkg/RedfishRestExDxe: Update Supported
> function
> 
> External email: Use caution opening links or attachments
> 
> 
> From: Abner Chang <[email protected]>
> 
> Update Supported function to check it the given
> controller handle is already started.
> 
> Signed-off-by: Abner Chang <[email protected]>
> Cc: Nickle Wang <[email protected]>
> Cc: Igor Kulchytskyy <[email protected]>
> ---
>  RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c
> b/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c
> index 39221989c49..741a8c1e938 100644
> --- a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c
> +++ b/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c
> @@ -357,6 +357,21 @@ RedfishRestExDriverBindingSupported (
>    IN EFI_DEVICE_PATH_PROTOCOL     *RemainingDevicePath OPTIONAL
>    )
>  {
> +  EFI_STATUS  Status;
> +  UINT32      *Id;
> +
> +  Status = gBS->OpenProtocol (
> +                  ControllerHandle,
> +                  &gEfiCallerIdGuid,
> +                  (VOID **)&Id,
> +                  This->DriverBindingHandle,
> +                  ControllerHandle,
> +                  EFI_OPEN_PROTOCOL_GET_PROTOCOL
> +                  );
> +  if (!EFI_ERROR (Status)) {
> +    return EFI_ALREADY_STARTED;
> +  }
> +
>    //
>    // Test for the HttpServiceBinding Protocol.
>    //
> --
> 2.37.1.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#113397): https://edk2.groups.io/g/devel/message/113397
Mute This Topic: https://groups.io/mt/103577253/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to