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 153C0D801B4 for ; Sun, 7 Jan 2024 13:27:53 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qrc3Uenm4gi516XErP9Lsnc8++roij3/tn2HFAAyG1I=; 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=1704634072; v=1; b=pU0kUgUytGv1j9cytM0760nCviTs/pBa3+02G13V9C7ZNaKM4jca4sJHbo/WkKyO/OwGj2gY VxZY2KlRR4EWzokgWUwP5zk6hD1zpfWcP6PECJtAERcmlBKPGgWU5ZI1HDx/Yt7eUkO4dyWH3mf S+lG2C3kBKoNt1uj5a7E4iC0= X-Received: by 127.0.0.2 with SMTP id BB3cYY7687511xkCIXzgjAka; Sun, 07 Jan 2024 05:27:52 -0800 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.107.220.70]) by mx.groups.io with SMTP id smtpd.web10.14908.1704634072084947781 for ; Sun, 07 Jan 2024 05:27:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cW0WMmcWaq9rNNCE6Lb3F0ONygcfgjc9H/jLiqzZv0SheBkBtOuYL1n+uQImwvm+3feLeGt1OzS1WVzOqO6uN+/qLvu7VU/LHbUwB6HQQv0SiEYjTuFy4voaZUBK3Xs+H8Ac1vs1aOBxO7pQ0r5qV27jFoBlcFNheZVkc8b8SbsBhdbB4YOGgK30ycLyWMy7lmn/9XzEtJhdHMuu9FlLnDw9EMF/NeA4VjqXnGXmarfa1jC+zF63hZ+dK8HdEQIQzuQfFvJGcn5sk39xLK2UNY0H663FLmu5B/fHKz9s2GfK9VM/2MGcoailggLtTpwJj28CXkBy8HNS7oYLJU0bAQ== 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=mrisJvPCI9U23bLyEyg+PVGOxrKJIJiKBH/grHW1+0Y=; b=cox+jwMNLxYHuEW9hO4kgV0/NzRchSsqjgH6BlscJCiuVDfGpwGuCVc+cJtTUukhvo/iXod5tloEWp5ud8r3S/+yWLwPcjoy8lTEEP72Bfea4Jrmj11k4CT3ihu5bicSg4AZ76y8fS1wD2Q5L0W3zUMNht+KE+sxWbOZnfkHRvhHNsgEobVMLVyYKWgYHJdyTgdKnjScjTxSGDHFByoxPXSq7Ru3HgBNAszUt/LiwmKtS8cjjFjy4usnK8fSExmRxLlJxqRoe2wpQZbtRCqxlei2uFXuvGGJ+Qil/ghYvl8d0AUm4gibQIfLpchvN1TgrDBaonPT9CBHw0DMkAPVPA== 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 BL1PR13CA0139.namprd13.prod.outlook.com (2603:10b6:208:2bb::24) by SJ1PR12MB6171.namprd12.prod.outlook.com (2603:10b6:a03:45a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.21; Sun, 7 Jan 2024 13:27:45 +0000 X-Received: from BL6PEPF0001AB4B.namprd04.prod.outlook.com (2603:10b6:208:2bb:cafe::e1) by BL1PR13CA0139.outlook.office365.com (2603:10b6:208:2bb::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.14 via Frontend Transport; Sun, 7 Jan 2024 13:27:44 +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 BL6PEPF0001AB4B.mail.protection.outlook.com (10.167.242.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7181.13 via Frontend Transport; Sun, 7 Jan 2024 13:27:44 +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; Sun, 7 Jan 2024 07:27:43 -0600 From: "Chang, Abner via groups.io" To: CC: Nickle Wang , Igor Kulchytskyy Subject: [edk2-devel] [PATCH V2 6/6] RedfishPkg/RedfishRestExDxe: Update Supported function Date: Sun, 7 Jan 2024 21:27:01 +0800 Message-ID: <20240107132701.302-7-abner.chang@amd.com> In-Reply-To: <20240107132701.302-1-abner.chang@amd.com> References: <20240107132701.302-1-abner.chang@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4B:EE_|SJ1PR12MB6171:EE_ X-MS-Office365-Filtering-Correlation-Id: 9bbb1b28-bbeb-4a1e-8ea3-08dc0f846eb1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: unxHV03KaaVKVCELFyjPWbAWkeS9qS35Nuil8yp9dLGHCISQbMV4fKM8aOEsIFVHdPCpqy7ugmkTn4SOhWHfoH60QpFJPdkblJCS7chrs2Wth+Kl3VTKQc6iRN3706FCqzrGOE3/yp5qt8UgCW2toFgA98Fbt/31ZAR93ilked0bd7HZ8hLt1bsglJXNl4TPm4k0qz57kJuY434lPBwaXohIx3FU2apXHOLk88z0hsUIMXBkvGo3+rUXRHMjjXgtajhSv9UdeB81L0H8zpAZxnWAjVQlPHDeN0jxyFubV9OnUeWgLjYMZEtgIkHREh9cnay58ZdJ1JkeBMzNPob9VKGomWjspExKri7quzdQhE62REeuGoU6mnOSpmNwsTLecVY03xsTCiNS2JuFN/MOGi1OO3uWsL1/KpNkxpqNv5wcl24Wuwgni0XYu3G7GD4oxb5/3oDU9vkJYhzl3emrKhvl0h8x15UgIfVy5JoIZ79D7kpyX4jBC7ozYI7C9zFVSn1kBRyJTwn+TxINf1YCDmnnx4nqoA1eegaLPCPpwdfj1pVZjeeiWyUTTNgDE9bD1DhX4NHjAIvfG0a5EzcxuhCo09tO93b1I9t4L4wuYHjtPZ4mSMvNmtDnpx1frKUmMNELa33qyWmUDdEqApwOeNqAQN3zLOnsaVe8bSFfVf+P2Kw2O+fb9fXDCVdnrSpDlCDZ69j/AJgNXoHVHn/B/vkHG8WCY9ElBirgdte59vs/wx45T0vX8JSMnmWaqr79FIrW3w85eNNRRDkDQpNs+g== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2024 13:27:44.6528 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9bbb1b28-bbeb-4a1e-8ea3-08dc0f846eb1 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: BL6PEPF0001AB4B.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6171 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: RX8rNrKjNm4DpOHfZLYu5gDTx7686176AA= 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=pU0kUgUy; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") From: Abner Chang Update Supported function to check it 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 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 =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 (#113333): https://edk2.groups.io/g/devel/message/113333 Mute This Topic: https://groups.io/mt/103577253/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-