From nobody Sun May 19 12:45:48 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58125+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58125+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1587778584; cv=none; d=zohomail.com; s=zohoarc; b=LErkROi5Co8CvXnX8GboOl5+/O6D1Dq1tsKjeULGWb9XTYW6EETfeuUgt4lXlXUepma/ifShm5jyUQaE4kjURvvfdvSWdnBiMv/1BAHf4M0aSgiZ1bZOFbUhFzNXTOHnv4Ga5VnASl2D9Fb/GLCsOn9aGmAMDsLbKXb00Y9JckM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587778584; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=EPlOmUNWrbEngKKFhr/omculxfbeexOxMI+n1WdiQns=; b=kN9h0wVH8ILEJiGhbS20kAxw7x9otMikg1G7Sso/7ZER7fEZh/M7Xi/FHbuuh9f+RZqZX92o0HcbLcgxf/DQRps7mjFXUwPUITimnWPcXiK11u2rAsJ+xCZDCrtnzWcWsVvQrthdx0uTpkDeJm0GitW1KUYFcf7CySgb0rU2dqI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58125+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1587778584474650.6259362580536; Fri, 24 Apr 2020 18:36:24 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id cZ87YY1788612xAUkE7sS4KG; Fri, 24 Apr 2020 18:36:24 -0700 X-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 IronPort-SDR: yS2M5Md24CcFtNqe2HbQUE1vnZ98Jin50Eef3rb1qqlUYmviRQ2CBaorXpqNJMPBZ+hcyFN7Me F0wlQ5x/FpzQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-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" X-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: [edk2-devel] [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> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,guomin.jiang@intel.com X-Gm-Message-State: 7twg6YNRC1im9hipQeqyQBwJx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1587778584; bh=Y40/L+KPSskDwQHEbUU/VjreE/C/0mgFTx2rC2JVXYY=; h=Cc:Date:From:Reply-To:Subject:To; b=rYSjFEjQlgDirRB6xzRk5kGEJhRScP15bcTdeoRkXx9zAH8/uxSs36JBZukN4R2L58q fOt7eMTIh68qzSq+Qky9oC+Ebxf82DbRRLZXCMjrcYWL98qwskEJRzSWE34K+58gXcrqe lQb1vgdYHxX8xK51XlxZUi0kXUpMKw21/YA= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" 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 ( =20 DEBUG (( EFI_D_INFO, "UsbIoPortReset: device is now ADDRESSED at %d\n", = Dev->Address)); =20 + // + // The description will be invalid after reset, should rebuild it as wel= l. + // + UsbBuildDescTable (Dev); + // // Reset the current active configure, after this device // is in CONFIGURED state. --=20 2.25.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 (#58125): https://edk2.groups.io/g/devel/message/58125 Mute This Topic: https://groups.io/mt/73255478/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-