From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (NAM04-MW2-obe.outbound.protection.outlook.com [40.107.101.127]) by mx.groups.io with SMTP id smtpd.web11.5389.1622023874884622934 for ; Wed, 26 May 2021 03:11:15 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=g0IjVP8w; spf=pass (domain: os.amperecomputing.com, ip: 40.107.101.127, mailfrom: nhi@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HeMONoWAcVMHvwvYC3PJDfgq/kMTLI/W8RkwtWQtcdel5E4T8SXFwQdFifE3nvQ7ziZd7i+ToIVR/NgaGrqk54gvHCOOA+w4b37kKIVhWhJRI+t6xINBPTJXwVxSpyU9lIpx6X98j1lbxIIIpb1BTll5jcrBYAP+2r69P+cY7sJh7bbWp3T3mVdb3gIa+Z9qA9Df6fb+EALNGAU1ibOeh6Ouhtdd44eeHhXDP2PeWezZkKOdhxYhIwAAmQa1iptoGH3ZxEAAF5+CIzNge2EaW63Sbm5iykVzs3nJTIyHnSYS8IujmbGwTTyXo48cSikBqbrjLLgJ8J13h19NoYQqvA== 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-SenderADCheck; bh=DdPPkAOYT4bVDLlOUxzuxiQWBH8q7wiZGCewmK9zb14=; b=XW/0aOvFJKxVNIkvQYYOduyvxGLPh/JxFdfSvrYIOxg9cfo5e8YqqNMKXxBdZgK8omvtvTFb1B2ZGzn17ZyZqI8HRqpxLlDVNINUw3V98TpuFcrTV0yI+oECtKWdzTxQRmBWLD+MVplHgMwj62vvwb+zstjf0EpgQhTOXAkRCFvvBOZeW7XxdY68vMQ7CanwLDR7IJ90NXXXe1+F9RGwqWzLzQwXf/eMcbwDI+4Iyh4R6nLE7rFworBgYOdDsPfjzaj4FV/KOedojvQ5b4EwC7jbwN0cznkuVSzpTVuf06hxqlAhFs/U5+Ujsg/uXWtkurzpVCT5KbPVYzjtRZHZ9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DdPPkAOYT4bVDLlOUxzuxiQWBH8q7wiZGCewmK9zb14=; b=g0IjVP8wca0kJ0A40GDkfw3FSo5M1i107OfoqVrkk2qPTCm3bUtQFBF4T5gy4L4www8GsDSmhWPjqOQ3S0PXKWXdyIMz868E3zewN1HmL4fMFCkUA/iMvdPQS5wFXaQvbDnJHjPnJzHIjS0SOcIG03hWQnsKv8NrzyJusdE1Tns= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=os.amperecomputing.com; Received: from DM6PR01MB5849.prod.exchangelabs.com (2603:10b6:5:205::20) by DM8PR01MB6808.prod.exchangelabs.com (2603:10b6:8:23::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.21; Wed, 26 May 2021 10:11:14 +0000 Received: from DM6PR01MB5849.prod.exchangelabs.com ([fe80::60d2:86dd:1f1c:51dd]) by DM6PR01MB5849.prod.exchangelabs.com ([fe80::60d2:86dd:1f1c:51dd%7]) with mapi id 15.20.4173.020; Wed, 26 May 2021 10:11:14 +0000 From: "Nhi Pham" To: devel@edk2.groups.io CC: Nhi Pham Subject: [PATCH 1/1] UsbCdcNetDxe: Remove reading connection status in SNP GetStatus Date: Wed, 26 May 2021 17:06:53 +0700 Message-ID: <20210526100724.5359-3-nhi@os.amperecomputing.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210526100724.5359-1-nhi@os.amperecomputing.com> References: <20210526100724.5359-1-nhi@os.amperecomputing.com> X-Originating-IP: [118.69.219.201] X-ClientProxiedBy: HKAPR04CA0008.apcprd04.prod.outlook.com (2603:1096:203:d0::18) To DM6PR01MB5849.prod.exchangelabs.com (2603:10b6:5:205::20) Return-Path: nhi@os.amperecomputing.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (118.69.219.201) by HKAPR04CA0008.apcprd04.prod.outlook.com (2603:1096:203:d0::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Wed, 26 May 2021 10:11:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 676cd82d-6e0f-4819-dc9e-08d9202e97e7 X-MS-TrafficTypeDiagnostic: DM8PR01MB6808: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: i3fMb3b3vy3/6rRdCPKFeAOfS+iaWjsD+yThzlYZBFOaKRvsXhePxPsWzsxquLHTkqVLUoCrUGTnpvVnksneU8JlpFH9JYy2K/M97Yw72O4jfZ+SKaPWUI6eDrc1Rcg5OH+AfTDpwBcT3ivadVQ8YoZnRkx/y7F6BWfd4IUgJBTNkpWayIFsxCUCGjT9FHyVAxoT6SBz7R90UmsUlcFVKiTQXGibBdRGHdCkww2d+/QDuwnt2OwmJYv+GbIiKU/GuCJV2F21QuVB0UxzgMGJA6+FmUAxp5vVCwKp9Wxh/dRAIFxDuUGU98iq+ESrh7BhFWLsCKQLYMFEA3N1uY3EA7msw8hp4l2mX07uHadF/0ug2A6EjpKbdH+O0w7QUrSt/Yicw33+jI/GmA2llC22p6e2GevLAqS7NDxaNy3Gdi74qD3ahhFnt7ADlOgTlECH3GWoX28Ystk9R6ieHGWQW2inZu2Z9CUm/tGlOYFPz78+v9Q8zpBq4qM5xT+2VTLYuWKWB4Y+xSazVroe646bTjWMoPZnHk8nYZSpX2AzfJrLig8cLpRkD522moPLxHSHRcYd8mWbZ06YL37riGDGNOIVZvNm8V9s/2+TMha/HjvZrOfcaxytgHswbR+RI8xHnGWw+63jW7RfYc8leVwCUW6jv6Q0WGpz0Fzi1IZ13fPu/ShEwDq7ne8jPeIM0457 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR01MB5849.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(396003)(346002)(136003)(376002)(39850400004)(6666004)(4326008)(8676002)(52116002)(8936002)(1076003)(86362001)(66476007)(66946007)(66556008)(186003)(6486002)(6916009)(107886003)(6506007)(2906002)(6512007)(2616005)(316002)(478600001)(956004)(26005)(38100700002)(38350700002)(5660300002)(16526019)(83380400001)(69590400013);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?JcPdpjeycgXEh/K0JfMYp93M05boh6wv2vauPaE1l4Pmc3f6jCHwd4V8e0I6?= =?us-ascii?Q?brWF3Gkt0xdaOOzoAz5cd3kt/J+ZCSCg7m/HQYqgLeUa60mlRtV0OyH2JfBg?= =?us-ascii?Q?mSDoh4FGVuh7FGHaQsWSkyvPADVd4Qtx5kTbnhyCh1VcgC4eY3QkzkKKQ9KF?= =?us-ascii?Q?0TnYtVBapcalMzjQArDJxi39GiWdasIxRL1+t1136gWOUMRIxSM4AkDHtL61?= =?us-ascii?Q?9KXf77zimF0I7gtQEOsx9Q1Z2ZMpEco4tYnejwTTswSQ6JywCcTJKbI1me7o?= =?us-ascii?Q?R5A7LqJsjpJi21EWk75ypWLuCHnK2XUrH1F/xLultCwVsG02rmKgPcQXa8Ss?= =?us-asc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Z0v+239o200nC8dt5oFtuSoEyTL?= =?us-ascii?Q?36YJWZozqDh3zW5Sp8n2/lyG3JurqWE6/SwZzPku++wW9DqDfUtzvUehPQqK?= =?us-ascii?Q?qfTpRSmPUgNze0PFnUc6x1xk?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 676cd82d-6e0f-4819-dc9e-08d9202e97e7 X-MS-Exchange-CrossTenant-AuthSource: DM6PR01MB5849.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2021 10:11:14.0124 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: eAjwdrR8d/fGUVj6UaHThYIJcOljXv8Nbjt9S8O2bH7wB/6ehjk0GpIrGr8x5GvDfM5+ji6M9+5K8h570mlFNhG1dTFlUCbduMEe41xHJZk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR01MB6808 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Only read the Ethernet connection status at the initialization of SNP. Signed-off-by: Nhi Pham --- .../Drivers/UsbCdcNetDxe/SimpleNetwork.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Platform/Ampere/AmperePlatformPkg/Drivers/UsbCdcNetDxe/SimpleN= etwork.c b/Platform/Ampere/AmperePlatformPkg/Drivers/UsbCdcNetDxe/SimpleNet= work.c index 05c31f4bad9e..e44898cbda47 100644 --- a/Platform/Ampere/AmperePlatformPkg/Drivers/UsbCdcNetDxe/SimpleNetwork.= c +++ b/Platform/Ampere/AmperePlatformPkg/Drivers/UsbCdcNetDxe/SimpleNetwork.= c @@ -116,8 +116,6 @@ SnpGetStatus ( EFI_STATUS Status; EFI_TPL OldTpl; =20 - DEBUG ((DEBUG_ERROR, "%a %d Entry \n", __FUNCTION__, __LINE__)); - if (SimpleNetwork =3D=3D NULL || SimpleNetwork->Mode =3D=3D NULL) { return EFI_INVALID_PARAMETER; } @@ -154,16 +152,6 @@ SnpGetStatus ( *InterruptStatus =3D 0; } =20 - Status =3D UsbCdcGetLinkStatus (PrivateData); - if (EFI_ERROR (Status)) { - Mode->MediaPresent =3D FALSE; - } else { - Mode->MediaPresent =3D PrivateData->LinkUp; - DEBUG ((EFI_D_INFO, "%a %d Mode->MediaPresent =3D %d \n", __FUNCTION__= , __LINE__, (UINT8)Mode->MediaPresent)); - } - - DEBUG ((DEBUG_ERROR, "%a %d End - %r \n", __FUNCTION__, __LINE__, Status= )); - // // Restore TPL and return the operation status // --=20 2.17.1