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 3F751D81113 for ; Mon, 8 Jan 2024 14:03:51 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=AqiLPDCyZin4nfzMGFlo/IuH9lS5m6NFSkEJKqxW3lY=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1704722629; v=1; b=SvIyA0+mmS9na0CcHqQJPMTvtnOUTG3WJFLGay1nha4y7B3XC4n8dvwqxi5ewXsmn0Wg4G6Z HJrX6g1TyJQuhQ8B7e2lHAcSUkz/ORGUIxJpFgByRyjSIDSPeZeRBFHkXTV7ulRdPlfdfVNnZ9y p1YvQ/+ufVWYkoxVnhPu1DMc= X-Received: by 127.0.0.2 with SMTP id esMDYY7687511xzQj1R7Zzox; Mon, 08 Jan 2024 06:03:49 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (NAM10-DM6-obe.outbound.protection.outlook.com [40.107.93.56]) by mx.groups.io with SMTP id smtpd.web10.7329.1704722629193388546 for ; Mon, 08 Jan 2024 06:03:49 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kK26iwBwPWAL9jFHGRCsTuf74QTk1V0ucnqZBgJKFLedHA2Iti+Wen7v+uZap7xk7+tLjZm5kYYIvJbO0mnxVBMavmQvnf+ldnMy7O2sIXznjEqSO6OfCV/0Uqtq1dHIihymrGXDKKyz7sF4tTNke7bBqMLrZUbriKFLwi5kYwKKtp9kmrFVvhoL3kS6PDSkrXIbbRPAATwrjtye4RAhkyc3OFK+kfhvJZbviJgCkhdtInYDsydFvZ7RQ99gZB23Bdc0nPIxVssAw72vYZ/g06c0CEz2m8Hn83gbxutzrzHEoktOO27EbDeHfv5JoK/uNZhEFYy0Pm8OvV3+K26vXQ== 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=PcaWOZPp3ykEO17+SiRSot4U+sLowQBjNNYVugUhEZM=; b=dB4G3bTipObABRePD7BLL9kljFfOtNs4TpkATzyzrhvjiyrHNeCvSzSmyjwBGKPwDZf99QxoWMfW5jH/jDpsoesjd12pX4LNx4EgVYo8TzjKeaJz8IP5EwPhHMAu6gc1As5AHlNdd9q5p1WaBu/GHgHTN5pP2hMwxeW/vL1fx7c7OcxIXIv+bsUia2LAdgEUi95RHZvL6cPJSWR9YGBNxTeTV71nBiZYkIK6tjmugv7aJuEpEJcKCgBURsOJGabnmt0lboAd06m8jIGAHEnQhAtHBuAlTqCdaIcKNCzTuPO1FhPjayfTiRCl6fJahu6OQrQ6QGGf7P45MYmzcWr/0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none X-Received: from MW4PR12MB7031.namprd12.prod.outlook.com (2603:10b6:303:1ef::6) by MW3PR12MB4523.namprd12.prod.outlook.com (2603:10b6:303:5b::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Mon, 8 Jan 2024 14:03:46 +0000 X-Received: from MW4PR12MB7031.namprd12.prod.outlook.com ([fe80::a78e:602e:415c:4cb4]) by MW4PR12MB7031.namprd12.prod.outlook.com ([fe80::a78e:602e:415c:4cb4%3]) with mapi id 15.20.7159.020; Mon, 8 Jan 2024 14:03:46 +0000 From: "Nickle Wang via groups.io" To: "abner.chang@amd.com" , "devel@edk2.groups.io" CC: Igor Kulchytskyy Subject: Re: [edk2-devel] [PATCH V2 6/6] RedfishPkg/RedfishRestExDxe: Update Supported function Thread-Topic: [PATCH V2 6/6] RedfishPkg/RedfishRestExDxe: Update Supported function Thread-Index: AQHaQW1Sp5j9VOEaokK0vl51Rm++hLDP9B2A Date: Mon, 8 Jan 2024 14:03:46 +0000 Message-ID: References: <20240107132701.302-1-abner.chang@amd.com> <20240107132701.302-7-abner.chang@amd.com> In-Reply-To: <20240107132701.302-7-abner.chang@amd.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR12MB7031:EE_|MW3PR12MB4523:EE_ x-ms-office365-filtering-correlation-id: 2858130d-db9c-40ab-affc-08dc1052a196 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: o+hdL94PLSxbrRZXdHmfpbqLzL+pgYl1lRbgwcUX7Ol2tJ4mYpEX8/hGSC+SEuTFR3F0b5WEzRz2bAwjW/u4GfI5LzhjDnonCl31ABUmLFhIzt589Gp8Q5tfQ0qY+WfxcJsvJR+7nzZCmA25HNsuVfbVh0M1kYlT32ljT3JzMlrnvs+bqxMTQyN8q2TNaXMPJGDN0plRVe85NQ4KGXHaAbKeC7SdIiJHsaPYRAyXIny+XVB5WhWZiBdAh2oHRNT0XSsLMPIB9+uu1jhaupsH6PtsJER31EJgD9iR5ipzKrhIHPMkovnwk4wE/j6xOCuYiYMRkqiTo/CgjGtDwxV075glI/S5DFlDCgbrbmwPcIazECc2L7KJrBAB4Uf7WK3mhOQCTB/m6/m+ysve7S7bu6K+lPYkdRPsJqyLF72XVN9bJ2o5buoaHOx0SDFbL6qxm6zSwuZoyHxlxtmgXM4H93S9lAQVpWJo/92qu7orF8EIvHMxYoVIs39wti5OmqnsoGvJflm455tAsOithti0QRrrcXliqFyQ/dHZrLLUaDHjSK2dS3kYZwE9BXgGQz3GHaFfEqmttqH/SjXb7jB8CapD6TeSLtFyFSaya2Ep3H68fhmCAw/MQOKYvZ+Ur/PMAIcEJ4tc4vcWQhrFHKNLgA/TsUN/5B8bDRbE11vLS+U= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?m21Ey6rinqj2K1coRWRb/sRIlrRRQw15xGI7B2504lFE7evRgdghWCN2gDWs?= =?us-ascii?Q?Gp1ZOo+3hSVG5/42ch22EUhyAsRx4hI7QvwUgnkJoj0JTyeitGVW1TN6YvHt?= =?us-ascii?Q?tng+cXsgJF3e7Tu1t2OynyK13ucHyFeZy3vfGOVNox9C1g6aXtkA8Bq/2r9+?= =?us-ascii?Q?lH+PprWdaxYLUn5sJgG8zy3uYTIzEurvH4Fp+u8bwXS/IU7t9+kIf80S6qnJ?= =?us-ascii?Q?/sPUgLXEWbWNHz8TYS++rTTgobzepk9z/8gPt66d2O3F/QfU0DMpwpZtNyGK?= =?us-ascii?Q?GU+jC4CerNQSg1pQy+n2teyocvcm/ZKG4M3ggEQVyGloTtYqVVjRH4m9g2HZ?= =?us-ascii?Q?VX6eae33gXDE6ch8KOaaFn1zxvkwHKQjF7+yLamQrHalZyh/WnAGJ45H82Br?= =?us-ascii?Q?u71+Bpi756LpSrdmAWakYbyL8CP+srUhyXDXk+bFrxxARvJvqzUWgSdXg+kt?= =?us-ascii?Q?uWYDBIHyVgD8ABut9ZAvvJmIP5imO1AQGVrNs5tk/0h9VHYlHrh58V8H0EPR?= =?us-ascii?Q?yxK8mu8G7rhuoO1WnmjagaEASafMV+jCbHI8DuSd4IknaUmuytd7mpFS7hjB?= =?us-ascii?Q?Jdou9qng9R/3+Zwyz5Vf7qqX/ZQsxm5qS0x6MvD0IEwficbS1T5NJz+9nWoH?= =?us-ascii?Q?SxTLD5eYghjbfAwqjs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?= =?us-ascii?Q?N3QzXkyvE/HjddEUsJNqBBdx4vpe6DRT+uVK3lc+pbhQUH4xLk3Hufoy196s?= =?us-ascii?Q?a2xPfVNMv7r2fWMrx9iclVJJ3WLQj9/OPcj9D38NvrXQ?= MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR12MB7031.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2858130d-db9c-40ab-affc-08dc1052a196 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jan 2024 14:03:46.3899 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PsLj4C5PxXECU8Ql2h5/2NWg+RiYZ7VxegeQn0lVZ//Hvx8//qrIV3Tw+umrDHvEvNRfvR98ZyAyhNNHbOympA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR12MB4523 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,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Yw4W0el8q2CopPvKjvv8yIdPx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=SvIyA0+m; 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}") Reviewed-by: Nickle Wang Regards, Nickle > -----Original Message----- > From: abner.chang@amd.com > Sent: Sunday, January 7, 2024 9:27 PM > To: devel@edk2.groups.io > Cc: Nickle Wang ; Igor Kulchytskyy > Subject: [PATCH V2 6/6] RedfishPkg/RedfishRestExDxe: Update Supported > function >=20 > External email: Use caution opening links or attachments >=20 >=20 > From: Abner Chang >=20 > Update Supported function to check it the given > controller handle is already started. >=20 > Signed-off-by: Abner Chang > Cc: Nickle Wang > Cc: Igor Kulchytskyy > --- > RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) >=20 > 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. > // > -- > 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 (#113397): https://edk2.groups.io/g/devel/message/113397 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-