<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
My fault, please ignore this patch.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Nhi<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> devel@edk2.groups.io <devel@edk2.groups.io> on behalf of Nhi Pham via groups.io <nhi=os.amperecomputing.com@groups.io><br>
<b>Sent:</b> Wednesday, May 26, 2021 5:06 PM<br>
<b>To:</b> devel@edk2.groups.io <devel@edk2.groups.io><br>
<b>Cc:</b> Nhi Pham OS <nhi@os.amperecomputing.com><br>
<b>Subject:</b> [edk2-devel] [PATCH 1/1] UsbCdcNetDxe: Remove reading connection status in SNP GetStatus</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Only read the Ethernet connection status at the initialization of SNP.<br>
<br>
Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com><br>
---<br>
 .../Drivers/UsbCdcNetDxe/SimpleNetwork.c             | 12 ------------<br>
 1 file changed, 12 deletions(-)<br>
<br>
diff --git a/Platform/Ampere/AmperePlatformPkg/Drivers/UsbCdcNetDxe/SimpleNetwork.c b/Platform/Ampere/AmperePlatformPkg/Drivers/UsbCdcNetDxe/SimpleNetwork.c<br>
index 05c31f4bad9e..e44898cbda47 100644<br>
--- a/Platform/Ampere/AmperePlatformPkg/Drivers/UsbCdcNetDxe/SimpleNetwork.c<br>
+++ b/Platform/Ampere/AmperePlatformPkg/Drivers/UsbCdcNetDxe/SimpleNetwork.c<br>
@@ -116,8 +116,6 @@ SnpGetStatus (<br>
   EFI_STATUS              Status;<br>
   EFI_TPL                 OldTpl;<br>
 <br>
-  DEBUG ((DEBUG_ERROR, "%a %d Entry \n", __FUNCTION__, __LINE__));<br>
-<br>
   if (SimpleNetwork == NULL || SimpleNetwork->Mode == NULL) {<br>
     return EFI_INVALID_PARAMETER;<br>
   }<br>
@@ -154,16 +152,6 @@ SnpGetStatus (<br>
     *InterruptStatus = 0;<br>
   }<br>
 <br>
-  Status = UsbCdcGetLinkStatus (PrivateData);<br>
-  if (EFI_ERROR (Status)) {<br>
-    Mode->MediaPresent = FALSE;<br>
-  } else {<br>
-    Mode->MediaPresent = PrivateData->LinkUp;<br>
-    DEBUG ((EFI_D_INFO, "%a %d Mode->MediaPresent = %d \n", __FUNCTION__, __LINE__, (UINT8)Mode->MediaPresent));<br>
-  }<br>
-<br>
-  DEBUG ((DEBUG_ERROR, "%a %d End - %r \n", __FUNCTION__, __LINE__, Status));<br>
-<br>
   //<br>
   // Restore TPL and return the operation status<br>
   //<br>
-- <br>
2.17.1<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
</span></font></div>
</body>
</html>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr>   Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/75657">View/Reply Online (#75657)</a> |    |  <a target="_blank" href="https://groups.io/mt/83097092/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>