diff options
author | Abner Chang <abner.chang@amd.com> | 2023-12-30 14:33:16 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-01-10 03:19:31 +0000 |
commit | 265b4ab91b8a31d6d1760ad1eaa1e16f9244cba7 (patch) | |
tree | dc9abb65d78d7c100c1e234b08afd30418829d61 /RedfishPkg | |
parent | b0e892d8a953feb66b05d44baa54eb177a555acc (diff) | |
download | edk2-265b4ab91b8a31d6d1760ad1eaa1e16f9244cba7.tar.gz edk2-265b4ab91b8a31d6d1760ad1eaa1e16f9244cba7.tar.bz2 edk2-265b4ab91b8a31d6d1760ad1eaa1e16f9244cba7.zip |
RedfishPkg/RedfishRestExDxe: Update Supported function
Update Supported function to check it the given
controller handle is already started.
Signed-off-by: Abner Chang <abner.chang@amd.com>
Cc: Nickle Wang <nicklew@nvidia.com>
Cc: Igor Kulchytskyy <igork@ami.com>
Reviewed-by: Nickle Wang <nicklew@nvidia.com>
Diffstat (limited to 'RedfishPkg')
-rw-r--r-- | RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c b/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c index 39221989c4..741a8c1e93 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.
//
|