Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934225AbbGHJvC (ORCPT ); Wed, 8 Jul 2015 05:51:02 -0400 Received: from mail-bn1on0076.outbound.protection.outlook.com ([157.56.110.76]:59840 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933271AbbGHJuz convert rfc822-to-8bit (ORCPT ); Wed, 8 Jul 2015 05:50:55 -0400 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none; From: Subbaraya Sundeep Bhatta To: "balbi@ti.com" CC: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: RE: [PATCH v2 3/3] usb: dwc3: gadget: return error if command sent to DEPCMD register fails Thread-Topic: [PATCH v2 3/3] usb: dwc3: gadget: return error if command sent to DEPCMD register fails Thread-Index: AQHQk69GvvpKmr7PaEKjPX967XYJ0J3DvMeAgAK66JCAB/dkAIABTIyAgAHgKZA= Date: Wed, 8 Jul 2015 09:50:47 +0000 Message-ID: References: <1432203408-5482-1-git-send-email-sbhatta@xilinx.com> <1432203408-5482-3-git-send-email-sbhatta@xilinx.com> <20150629214701.GK1019@saruman.tx.rr.com> <20150706170746.GA8021@saruman.tx.rr.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.23.19.222] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21660.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11OLC003;1:4LbNRa1x3vQwt4rfad5r5z+rPN3thiJo+NiEFSxLZk6Eae6Q7YgrH6MyLvOIJ3n7qaujnrzgYcKzIcF3qsvTwDnljECR822fR+BW1Oub7cXGZklerlXZ4VuQ0TrTGMLnPSkqteFjctpBFxEVZOXH7DiW+SpvOtS9flZglb7IE6m3FTmciP5iplzBX2CU2YKPvOvz7EB+kuOSUUDlx4vY/caFUo56YkjYE9NDL5zFjbsSQj7W1lhC4/ZSuHAKoWEylI8Ru1e0r1QGf0xwJFZbfNtGuBe7xcbeX8pH8FRIVhC9DlaJSjqN0upi8clJdgrDKC5dpI7Fvk0+tQ0DtOO1HgQ2tr+hw8lsUSjcvaIWGM2mqxml3d3JjvzwrXpeO/blSjQNm0WKes4HaNE5QcFQuO0p5fmzMn/X8dRf98P0xLw= X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(24454002)(199003)(13464003)(51704005)(164054003)(189002)(46034005)(377454003)(106466001)(54356999)(97756001)(76176999)(50986999)(77156002)(110136002)(55846006)(62966003)(189998001)(5001960100002)(63266004)(33656002)(2351001)(46102003)(106116001)(2900100001)(23726002)(6806004)(50466002)(19580405001)(19580395003)(102836002)(2656002)(87936001)(93886004)(92566002)(2501003)(2920100001)(5890100001)(5250100002)(86362001)(5003600100002)(46406003)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1AFFO11HUB014;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11HUB014;2:23GqYyOaEuPjRWoKd8sJsqh/fFVCd0yzecm8PsJHCMrP96l8BeeRIZhe+SfywkKs;3:2Bt5LdIUUCPzZ/YLwM3p0zPsoLqSZH4bXEkm/jZo0Hz4DDlZkeBTMyFIP2CJdjpSj1DMDYiLAf4M8+7yPVDlreGru52TzsSxkps0uF1CV8GyCX93tXqnKjdDEMaiR8zJYPMw1xOJCjuttaq/RoavjJlEYKDckVR5Ymgqo1GRYCrvtX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F/ALcay01eBOp5NpALTgV+noX36n0Hbx0nA1V+1yLBRps/FokRme8K85k9la7wc0E/aX48x/9/5ZadEZwE215+5TehDkcCDcAQ988LM7uxdyXFzZ5bRKshwNpA26BseiKHaCwVPziVGb5vGR7alYB6T+mv7LK4IClwx+9wcAz2DU9rER6DnQgSnl//4= BN1AFFO11HUB014: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BN1AFFO11HUB014;BCL:0;PCL:0;RULEID:;SRVR:BN1AFFO11HUB014; X-Forefront-PRVS: 0631F0BC3D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1AFFO11HUB014;23:Im1NVVE+Enpk9/0WCdPBh5Eqi7ZlYyAZxqt3C/1?= =?us-ascii?Q?riJ363eYqqtpHMA/TqEqW/zFSbXhPpvrmbYqzwNKaoVCepc9GZvkeERCibrj?= =?us-ascii?Q?XVPVHAZHrh9Po+syEauidGBO4A7U6IBwOqPWzMDAb6m/xVcwRdFiA+Q5WKp1?= =?us-ascii?Q?WaKM8EDnrRVOJ6R7OP3CCEvsSnA9YVrr5ktXsLVaIbCNXt3q5KJU+UKN3S9h?= =?us-ascii?Q?PTilPGhb3XgoIXAmMVSU/TpVDeBfOPFNi9AlwJ7LhMxg6RLLCC5fCUDGnBSy?= =?us-ascii?Q?+vHwR3g6cFXR+XEfOcak80gfVGhbpqFv8hsJUVfY7nEihW18GRWsYryCVvWx?= =?us-ascii?Q?w/DlAy9cJuZzkEiDzIXkAMlKV3Iar0+cFMiyBCc8b+ZwJec81joOXLM8LHc2?= =?us-ascii?Q?b7/aHz63NwNqbTwZVLuDE33XVDg9kR7h4pZ1tkMP+ldIC2Vq5k1nq5ZuBPVO?= =?us-ascii?Q?pDTJgyL/plzvWcoFD5ESHlX+qPzJzvIx3+xFtJFydgE8ey5u7dAeCdjwphtB?= =?us-ascii?Q?uasKDh8AP482u/hKVE854VFxjfqwKh2dcX7W5Bwz1wTiPlreWZ+1JH5AGuQs?= =?us-ascii?Q?RsrgjLcANXIxeiO5Nl0kmWi325Xmr/vKKj1vhichNXtq1nui2ZJ0h/6JkSpt?= =?us-ascii?Q?sd2iE6wLphic36PQYCluanQzq7nU6DL8sao8oZ0YvUm8BGXi1/8TWsyr7O2j?= =?us-ascii?Q?veUXbHKv5Vz8lFf3zn4Zvh9spstK341/DJxU3lLEGnNhyQjnHzLy03/K8as7?= =?us-ascii?Q?R59AyRSA/+sslHvnE9GBne0dhQ4xuht44pEzTZ5AHLtY9yGlL5UpGJL9zrSn?= =?us-ascii?Q?5CVfyzvz+MtgqMl6UeWFI1lF8ZWqx1jSj6B97wRij4lv00fpHnCDSQ9yrtBt?= =?us-ascii?Q?eprZusJiUTHQejU7npw5HkvTp27iNAy3aWTGs0Tbs4v8qpSvbR5rK+W5DPNL?= =?us-ascii?Q?/FJuPEV949fQ2F4VErExRYbl2OI/pRRpn2h2GQ9WL0g3J2VGIUgVTkUBjTi1?= =?us-ascii?Q?Lj5z4OFXKZge9f4TSofb68gtZWxDS1XlsOC8KnsONKREAt2v+WQ1qkzHcZL3?= =?us-ascii?Q?OYHYEanTjOKWAGZoivLCm67HAD1bgJdOZeRod+IVdKyZXdQXQ0t6rWLc+rNS?= =?us-ascii?Q?IpGmbgJCKk9tZIqeAR7e+puwHdj6qA6hJYVB72MOvYfb0yqFFzS0J4g=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11HUB014;5:qyLhEN20HZoXW73ftXlU5FypU4OKCk0gkyB/R0zJQIiJ4p0lmvlKrsIUVQ2e8jd0+YcCwn+epRinfLEg8XBStLv4gzj3uBDQfRnazfpaRBr/wQU63oNzVwH3exSPuj4H7mUCmeg2rK/x2Goemthw0A==;24:m89XaP5yCAQy6W+SJTepZ3lbkftNjHM+sREilwYHD5GQGTBXMrRRTTsQpS/xDWFxVR31oEwmhc+1QV2QIH4KJD1Pet8uqhc6VP2+0e4WzqU= X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2015 09:50:51.3051 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1AFFO11HUB014 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3409 Lines: 89 Hi Felipe, > -----Original Message----- > From: Subbaraya Sundeep Bhatta > Sent: Tuesday, July 07, 2015 10:32 AM > To: 'balbi@ti.com' > Cc: gregkh@linuxfoundation.org; linux-usb@vger.kernel.org; linux- > kernel@vger.kernel.org; stable@vger.kernel.org > Subject: RE: [PATCH v2 3/3] usb: dwc3: gadget: return error if command > sent to DEPCMD register fails > > Hi Felipe, > > > -----Original Message----- > > From: Felipe Balbi [mailto:balbi@ti.com] > > Sent: Monday, July 06, 2015 10:38 PM > > To: Subbaraya Sundeep Bhatta > > Cc: balbi@ti.com; gregkh@linuxfoundation.org; > > linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org; > > stable@vger.kernel.org > > Subject: Re: [PATCH v2 3/3] usb: dwc3: gadget: return error if command > > sent to DEPCMD register fails > > > > On Wed, Jul 01, 2015 at 07:29:28AM +0000, Subbaraya Sundeep Bhatta > > wrote: > > > Hi Felipe, > > > > > > > -----Original Message----- > > > > From: Felipe Balbi [mailto:balbi@ti.com] > > > > Sent: Tuesday, June 30, 2015 3:17 AM > > > > To: Subbaraya Sundeep Bhatta > > > > Cc: balbi@ti.com; gregkh@linuxfoundation.org; > > > > linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org; > > > > stable@vger.kernel.org; Subbaraya Sundeep Bhatta > > > > Subject: Re: [PATCH v2 3/3] usb: dwc3: gadget: return error if > > > > command sent to DEPCMD register fails > > > > > > > > Hi, > > > > > > > > On Thu, May 21, 2015 at 03:46:48PM +0530, Subbaraya Sundeep > > Bhatta > > > > wrote: > > > > > We need to return error to caller if command is not sent to > > > > > controller succesfully. > > > > > > > > > > Signed-off-by: Subbaraya Sundeep Bhatta > > > > > Fixes: 72246da40f37 (usb: Introduce DesignWare USB3 DRD Driver) > > > > > Cc: > > > > > --- > > > > > v2 changes: > > > > > Added Fixes and Cc in commit message. > > > > > > > > I noticed that this breaks at least my AM437x silicon with DWC3 > > > > 2.40a when used with g_zero and testusb. As of now, it could be > > > > that silicon is mis-behaving because I got a Transfer Complete > > > > before the failing Set Endpoint Transfer Resource command. > > > > > > > > In any case, can you run on your setup with g_zero and > > > > test.sh/testusb [1]/[2] just to verify that it really works for you ? Can you please send test.sh and testusb.c in attachment. I guess am not able to access gitorious because of its migration. Thanks, Sundeep > > > > > > Ok I will do that. > > > > Did you manage to run the test I asked ? If we don't get down to this, > > I'll have to revert your patch as it regresses my platforms. > > Sorry I caught up with some other customer reported issue on Zynq > (Chipidea). I will do it by this weekend at any cost. Please wait. > > Thanks, > Sundeep.B.S. > > > > > -- > > balbi This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/