From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.1182.1587778583449669008 for ; Fri, 24 Apr 2020 18:36:23 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: guomin.jiang@intel.com) IronPort-SDR: yS2M5Md24CcFtNqe2HbQUE1vnZ98Jin50Eef3rb1qqlUYmviRQ2CBaorXpqNJMPBZ+hcyFN7Me F0wlQ5x/FpzQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2020 18:36:22 -0700 IronPort-SDR: 0hIzF5xcH2X8RB5n2/zcCfPnPROMLqk70zMGimOiF/oCh+y2z4kmKm88krMmwi/zAagbLZiOMI A6CBkj/thDVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,314,1583222400"; d="scan'208";a="260044155" Received: from guominji-mobl.ccr.corp.intel.com ([10.254.210.190]) by orsmga006.jf.intel.com with ESMTP; 24 Apr 2020 18:36:21 -0700 From: "Guomin Jiang" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Ray Ni Subject: [PATCH] MdeModulePkg/UsbBusDxe: Rebuild the description table after Reset Device Date: Sat, 25 Apr 2020 09:36:20 +0800 Message-Id: <20200425013620.1159-1-guomin.jiang@intel.com> X-Mailer: git-send-email 2.25.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2694 When the USB fail and then Reset Device, it should rebuild description. Signed-off-by: Guomin Jiang Cc: Jian J Wang Cc: Hao A Wu Cc: Ray Ni --- MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c b/MdeModulePkg/Bus/Usb= /UsbBusDxe/UsbBus.c index 4b4915c019..9f2d2cc87f 100644 --- a/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c +++ b/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c @@ -869,6 +869,11 @@ UsbIoPortReset ( =0D DEBUG (( EFI_D_INFO, "UsbIoPortReset: device is now ADDRESSED at %d\n", = Dev->Address));=0D =0D + //=0D + // The description will be invalid after reset, should rebuild it as wel= l.=0D + //=0D + UsbBuildDescTable (Dev);=0D +=0D //=0D // Reset the current active configure, after this device=0D // is in CONFIGURED state.=0D --=20 2.25.1.windows.1