From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 6CB99AC1590 for ; Sat, 30 Dec 2023 11:30:02 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=dM3aGYmN0ppYVoZc8I9XbPKi87IaNEIRqoaWOs/nK5E=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1703935801; v=1; b=nDuHFPa2GpL2j+Sc6uODuLzLXQ0PxOxWMD8IkF2uJZm2vTpeoWjfKI6yIkkn09qSyJAI+2ve rWjTP7Nfz1xV9U9UZ7ztsOIS3YJrRWu0h5Uy9lDHOC4p/Yrs0h0rJwiY6lTdcw/awKPa8WljQgB dvgK8PtTsOy4aO6S79qHR83c= X-Received: by 127.0.0.2 with SMTP id E62ZYY7687511xmaZzVqz0wy; Sat, 30 Dec 2023 03:30:01 -0800 X-Received: from NAM02-BN1-obe.outbound.protection.outlook.com (NAM02-BN1-obe.outbound.protection.outlook.com [40.107.212.60]) by mx.groups.io with SMTP id smtpd.web11.182763.1703935800400251051 for ; Sat, 30 Dec 2023 03:30:00 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ujy61GDbofTZD6nddr1CPlKiBB3E1+pES7Dfzq0GflMoqhuWN7eYS7eRYzhXTPHmtzWqqM4z003dB8OFtp8k19wAqSwvamo5zLhs3DnQoRzL1L/c/oEyJky+vHIx7okUWNIikR0JAnqwS4YE2cyyfUGyAI5+YqE540aXjlrKaZ9EpTbM/FBXnKpob7FjOVWJrjeaxib07Z2pTE/yPuEZcwzh8n+xkrdGAr9dFK9wp/y6Ed0udUnYxCWEF+ozMHUKL6RPIfYcWRiaLX23i8xSkjBDZ8L2ERFiQO4IEkksOkNO732xjr4bIzwWm/630IJ+x26hBJyiNUCzHXdpggFq2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LcXoc9gP+1TPkgSqRw1qywkO8X5zOmr8Bz9chekjE+Q=; b=mnK4LEX0P5wJRQkILD7WrJJ7fJWXJC3NkjwIsZwMMWLzPwmf2HRgv41mXMiV59AgCjEyK0e8GRr7nFCL58Tc+3AF+2b3Fjc6W49dBTPKWIAfRo+oBnJStCg3UVOeNFpcmVduR7rCUTPfMjsWgOGzfi+4uF2GDsB/qgdXxo5dZeEa3o1OU44gJLPUW1kse1vR2obTYBIO85yLqpismi1OllO5mraHO76WYrUjsSo4kxbgLeVEt0jR2N8P8dLXAJcsEHSgbVDHGlxE30VlVYrEPSk1Ewr2athuqdCjIfeot+RQY8jAJrKHRR0tyV4LC7JDO1yBbjoQpCPoX1rFIJiVPQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) X-Received: from DM6PR04CA0028.namprd04.prod.outlook.com (2603:10b6:5:334::33) by MW6PR12MB8735.namprd12.prod.outlook.com (2603:10b6:303:245::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.22; Sat, 30 Dec 2023 11:29:55 +0000 X-Received: from DS1PEPF00017091.namprd03.prod.outlook.com (2603:10b6:5:334:cafe::d3) by DM6PR04CA0028.outlook.office365.com (2603:10b6:5:334::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.21 via Frontend Transport; Sat, 30 Dec 2023 11:29:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by DS1PEPF00017091.mail.protection.outlook.com (10.167.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7159.9 via Frontend Transport; Sat, 30 Dec 2023 11:29:54 +0000 X-Received: from TPE-L1-ABNCHANG.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Sat, 30 Dec 2023 05:29:53 -0600 From: "Chang, Abner via groups.io" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [edk2-devel] [PATCH 5/5] RedfishPkg/RedfishRestExDxe: Update the Supported function Date: Sat, 30 Dec 2023 19:29:29 +0800 Message-ID: <20231230112929.1711-6-abner.chang@amd.com> In-Reply-To: <20231230112929.1711-1-abner.chang@amd.com> References: <20231230112929.1711-1-abner.chang@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017091:EE_|MW6PR12MB8735:EE_ X-MS-Office365-Filtering-Correlation-Id: b255e797-e3e9-4726-4daf-08dc092aa55a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: b8zvduvGfoR4+IsCeAXq0LaJpsIyuMmmPPjIKO10sKtVBjMKUAZ0qvt80aezsZQZHKT8oqVv2lik+/W+ioCZwrV20k+0AIMqRfF72YaynrnOqZ2diYOViK0xY9x/RttxNKsfs3UIxG8adDFijN+mXirpQPjuvcjkfnl+isiylzZ9fl9KR01P0CmRGBUm8wnWCM4F3yp4quCRKLbDfCJhOk7zb2P1GwRFij6HX3SdLmaj8D3KZyprICBTWWEa2UuIyrwIRAslw8o0jWChzJQ+YQ9+h4dR64v9Nzry8LKf9aghcLRJlJQSpBhyfXtxQVHUirLNUaY/+DXVwxkkAARvkh1NEI30cN/e8fo7/PtorLeL28cPVwPXUtyTN+K4LdDWdXvwcD4kU/KzO6H2CxJP2yrCVdlyk4GOqJZ/9IO0DIWQh7CAfZ7xptPeOV+0C6KwxqFe3iqSjBJSFQ8N0JfjMM89jcxMSXNM4eSIABvALM9Zc8AoMJoPoj1xDUtSmjIfcCO8EJOSx9aW5VLMu85FB6FVkl3H65eg9oBsGEoot/EluwO7+pCt6BItGalnUFp+HP4egpJjZGQmbPzST6UhfSUCgkX5HRpM3PdPT72afDW/Fw5PX+7ftNy2bd0dayXgyDyDp+kwSvYPwL4t/zgaaM3HbSuv3XhKN131rWA9rPZxg2S3lKdSJJzX+ARc8sPFhrTq2E1ak+ugmkORpPAGATxdST/JhzQrvvh1sMxyGuiezCBomkwWdQIR81E52fem/YJjmtlLWeXC14gzvjII4Q== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Dec 2023 11:29:54.6421 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b255e797-e3e9-4726-4daf-08dc092aa55a X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF00017091.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8735 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Ar68nZpXjSJr1IJmD0Cnt8Wkx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=nDuHFPa2; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Abner Chang Update the Supported function to check if the given controller handle is already started. Signed-off-by: Abner Chang Cc: Nickle Wang Cc: Igor Kulchytskyy --- RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c b/RedfishPkg= /RedfishRestExDxe/RedfishRestExDriver.c index f897248fc44..1ac2ea6bcd3 100644 --- a/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c +++ b/RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c @@ -422,6 +422,21 @@ RedfishRestExDriverBindingSupported ( IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL ) { + EFI_STATUS Status; + UINT32 *Id; + + Status =3D 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. // --=20 2.37.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113009): https://edk2.groups.io/g/devel/message/113009 Mute This Topic: https://groups.io/mt/103430434/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-