Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942626AbcJZMuz (ORCPT ); Wed, 26 Oct 2016 08:50:55 -0400 Received: from mail-db5eur01on0043.outbound.protection.outlook.com ([104.47.2.43]:47936 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S942410AbcJZMur (ORCPT ); Wed, 26 Oct 2016 08:50:47 -0400 From: Sriram Dash To: Mathias Nyman , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" CC: "mathias.nyman@intel.com" , "gregkh@linuxfoundation.org" , Suresh Gupta , "felipe.balbi@linux.intel.com" , "stern@rowland.harvard.edu" , Rajat Srivastava , Rajesh Bhagat Subject: RE: [PATCH v2] usb: xhci: Don't drive port 2.0 reset while resuming Thread-Topic: [PATCH v2] usb: xhci: Don't drive port 2.0 reset while resuming Thread-Index: AQHSLqz4EbKPqEpUbUCtv7wEAa4DfaC5Ia4AgAGI2oA= Date: Wed, 26 Oct 2016 12:34:48 +0000 Message-ID: References: <1477392341-5942-1-git-send-email-sriram.dash@nxp.com> <580F5704.7030605@linux.intel.com> In-Reply-To: <580F5704.7030605@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=sriram.dash@nxp.com; x-originating-ip: [192.88.169.1] x-ms-office365-filtering-correlation-id: 81be74ac-6f25-460d-3ae0-08d3fd9c79a1 x-microsoft-exchange-diagnostics: 1;DB6PR0401MB2455;7:0WS1WfyusZEEvwE9XrmcAdtaaqRwCAQuPUgIwR3dwDh6xYeGyp4DBVYcSx0pGtH4dyJWUn01n61FfJi1gDSFABOcvzYl++Kz+xt6hM6MqmJsUIbJaJzbL8KE1/dj/C4qsygrEaXDNafohHcDA7eviIJcm0r299sFpx+Ta7+2HlUG/ue/JSNeqWX+nPzZUTHQUxN0Sv52e1+/5Qx1pWDRpHydM9nJQN//oA2Iy7S6wgSTxLTgNIgE39OqS+geT9VouLJtGEVh6xZmaH8wr9+cNr9FC9skMgdjlNQUwViLYAre9yiyWaMxJupKtqzz8+KKrBMsZ71D9I07+/J4AB+mlj2hQb57qK1TFpzfioHhM4w= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0401MB2455; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(6045068)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6046068)(6072074);SRVR:DB6PR0401MB2455;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0401MB2455; x-forefront-prvs: 0107098B6C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(24454002)(189002)(199003)(305945005)(7846002)(10400500002)(189998001)(3660700001)(2900100001)(33656002)(77096005)(122556002)(2501003)(3280700002)(54356999)(76176999)(5001770100001)(5002640100001)(86362001)(101416001)(7696004)(68736007)(97736004)(50986999)(5660300001)(8936002)(19580405001)(81166006)(106116001)(586003)(2906002)(92566002)(9686002)(74316002)(2950100002)(19580395003)(106356001)(105586002)(2201001)(87936001)(81156014)(4326007)(6116002)(3846002)(102836003)(8676002)(66066001)(7736002)(76576001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0401MB2455;H:DB5PR0401MB1925.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2016 12:34:48.5365 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2455 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id u9QCowZM031447 Content-Length: 1323 Lines: 41 >From: Mathias Nyman [mailto:mathias.nyman@linux.intel.com] >On 25.10.2016 13:45, Sriram Dash wrote: >> For the USB3.0 controller, USB 2.0 reset not driven while port is in >> Resume state. So, do not program the USB 2.0 reset >> (PORTSC[PR]=1) while in Resume state. >> >> Signed-off-by: Rajat Srivastava >> Signed-off-by: Sriram Dash >> Signed-off-by: Rajesh Bhagat >> --- > >What is the actual issue that you are fixing here? This was an erratum from Synopsis STAR: 9000962562 >Is there some device that is in resume (PLS==XDEV_RESUME) while driving reset? > We have not reproduced this as such. >I just sent a pach for increasing the resume time signaling to 40ms when clearing >the PORT_FEAT_SUSPEND. >Does that work for you? > >If not, then we should look closer at why clearing the suspend does not work >properly. >One issue could be that ClearPortFeature PORT_FEAT_SUSPEND does not really >read or wait for for changes in port status. It blindly sets the states based on time >passed. > >Or if it's after system suspend there might be something in bus_resume that is not >working. > >I don't think usb core tries to drive reset while port is still resuming > I am skeptical about it and hope somebody may help us on this. >-Mathias >