Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7646615ybl; Thu, 16 Jan 2020 03:16:01 -0800 (PST) X-Google-Smtp-Source: APXvYqwsusIwxB/1B71mOtkxqnGDKP65srbHGLDMlYG8z14uIewCK/MTIArruqkKm1P7VKXoGxOW X-Received: by 2002:a05:6808:150:: with SMTP id h16mr3546921oie.130.1579173361460; Thu, 16 Jan 2020 03:16:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579173361; cv=pass; d=google.com; s=arc-20160816; b=SrKw6RQaHDpbCcObSwXaVPDv/KQvsambAJ7969B3sKeenvFN0nJr81XYDpHKyT+mTf Qm9IGmYddRmKX1gMH2TgjBhZluXIU49mxhvrgr05ISP1/xUj/0NWQTYJ7T0iww4Ye1Km BnBggtOKsuPs/BXMQJUDoZZDF0jeUGw4NmqYEP9Em8lGcTZZulA6lmNzSPXZlvU5VvzD VKoQL1x0/wgceoD/RBsDSkZCY2HTHvwAnRCYwyXvtKkk9K6vsMcRcLhiir60MdTx/T3Y yFEcpsVmWVC7u++UMBVt7VIHzDArL60DHWWqmnkbQRbDOjm7Gs7Ez46kn3eQYmZP/dq+ TqjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=v5/H9RQHl64Q4IC0xcAKx+jV3yYixtQvDjtUijn9U0Q=; b=cA+jlK948EBON2qHYp02Gm24P4fr0YGTup8TV61iKF7pkHmSAsBIdOq+azplqxnmL2 +PJgf3oHzXUrs6ySaNuKdY5qzihxFxcWIgzjXg4IJFgdy6r1y4lI6epSaMDSrnW5T2xs OzuvZLBKJ8DJbX6qVy3w5wp9orkw8BNWBWxaDR6yvXOW4Din7SM/WOcWzmatCa5FIY0M uQJtoWA+wrwnrxjwB/C5G6ChlSr7felK5SM7HXIcA2JlhH6Wog5s88x5f4LRT/8H/j0z SkxkONCsIcAWgbWvd0OPuxtPSwaWQTQWWG7nreTW3n8maAseUIWtiZQBE8t26Im8/wBN P/UA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector2-analog-onmicrosoft-com header.b=xxtyZlTC; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p83si11321819oih.198.2020.01.16.03.15.49; Thu, 16 Jan 2020 03:16:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@analog.onmicrosoft.com header.s=selector2-analog-onmicrosoft-com header.b=xxtyZlTC; arc=pass (i=1 spf=pass spfdomain=analog.com dkim=pass dkdomain=analog.com dmarc=pass fromdomain=analog.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726187AbgAPLNa (ORCPT + 99 others); Thu, 16 Jan 2020 06:13:30 -0500 Received: from mx0b-00128a01.pphosted.com ([148.163.139.77]:52772 "EHLO mx0b-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbgAPLNa (ORCPT ); Thu, 16 Jan 2020 06:13:30 -0500 Received: from pps.filterd (m0167091.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 00GBAllv020809; Thu, 16 Jan 2020 06:12:59 -0500 Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by mx0b-00128a01.pphosted.com with ESMTP id 2xhb7tefw8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 Jan 2020 06:12:59 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mOyDgI/nWqtvFPWZNvqUaD7sKNxD8jD4fNa9CbUbffJHfTHZM6LtiT7M+cIMK+DZIWxvZ8pjaio27cavCSHMbBKiH7KTSAYCpinw4O1L2lKV2vlUacpirztI9LBU9OiD8H1AnO+E1dP3fHR/Cna58skXlr8CylLlZ7MynmMSriuByQqG1YnzBCrXVpzQD4xxn3rPdgHTiZw6/G314VdW8wcjjIbtojKeRKzRn712gw0zEBZ6syGwH3BULjIAmbsjo63bn/KwHYZdmDUisXG4QgUtbvAVnw8IZAqUzOqLWptHJxukl9qCae7hoiq4lpnL8fohMGpX74tOhM0etB1HUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v5/H9RQHl64Q4IC0xcAKx+jV3yYixtQvDjtUijn9U0Q=; b=HwVwcjEUpAEFzn46Y5uS1fk8x3JbOMMTUmRHoLKFnl7pU8r3r81GJSEoZGi8ubuaXkkPAnQ0YRaZTiWXcI04c1Inqd7iZ22lQAo8Ciyi53rJaEGlGYHWEMGtNDX3VLXuPuO3T+R1fcX0oYkVPMMAQHZexfFDLXAZqRv2I4QT17imkrH3xoHnUnDQ7F4cCH4WCJAlYtzn6nmrEHh2fbHE+IzYrrQ/SX+ScrObvcDLNUAg6QMDJYQphZHzwMmtNfNuDR9LzjnL1/lvwpRaIglFQNlx10r/nfZnUAam4mvPo5Q5xS9WQ2GjYwypwbAFQvydD5GXTW946fq32urwJTmQnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analog.com; dmarc=pass action=none header.from=analog.com; dkim=pass header.d=analog.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector2-analog-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v5/H9RQHl64Q4IC0xcAKx+jV3yYixtQvDjtUijn9U0Q=; b=xxtyZlTC6pc773KjkZ7ojlZ0YpWTl7Iyq0MYeM30UGzX3BcT+kE2cIPofQqrpFmJR5NqsvtV+s/fJxA/BRj5S9caZlSfSc9wrjsEsrHJ+PLg1U92KMCOlZ4sWr/CrCslEghc16bGBF3PbU2Ru/1WeK4dKQwHfZa28w6ObyIgHTg= Received: from CH2PR03MB5192.namprd03.prod.outlook.com (20.180.12.152) by CH2PR03MB5301.namprd03.prod.outlook.com (20.180.15.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.20; Thu, 16 Jan 2020 11:12:58 +0000 Received: from CH2PR03MB5192.namprd03.prod.outlook.com ([fe80::dce7:7fec:f33f:ad39]) by CH2PR03MB5192.namprd03.prod.outlook.com ([fe80::dce7:7fec:f33f:ad39%7]) with mapi id 15.20.2644.021; Thu, 16 Jan 2020 11:12:58 +0000 From: "Ardelean, Alexandru" To: "m.olbrich@pengutronix.de" CC: "gregkh@linuxfoundation.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bigeasy@linutronix.de" , "balbi@kernel.org" , "lars@metafoo.de" Subject: Re: [PATCH] usb: dwc3: gadget: Handle dequeuing of non queued URB gracefully Thread-Topic: [PATCH] usb: dwc3: gadget: Handle dequeuing of non queued URB gracefully Thread-Index: AQHVlLDojXL384lpc0mH5s1psXELpaeHpQ4AgGXt+oA= Date: Thu, 16 Jan 2020 11:12:58 +0000 Message-ID: <9d6ec804e3f1f462e5c6a43d19c83ff3493e3727.camel@analog.com> References: <20191106144553.16956-1-alexandru.ardelean@analog.com> <20191112144108.GA1859@pengutronix.de> In-Reply-To: <20191112144108.GA1859@pengutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [137.71.226.54] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 4118e08d-d18e-436c-7450-08d79a750b1f x-ms-traffictypediagnostic: CH2PR03MB5301: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 02843AA9E0 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(396003)(39860400002)(346002)(366004)(136003)(189003)(199004)(6506007)(86362001)(6486002)(6916009)(6512007)(71200400001)(5660300002)(8936002)(8676002)(2616005)(81156014)(54906003)(316002)(81166006)(4001150100001)(186003)(26005)(66446008)(64756008)(66556008)(66476007)(66946007)(76116006)(478600001)(4326008)(2906002)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:CH2PR03MB5301;H:CH2PR03MB5192.namprd03.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: analog.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Nx0MCiDWWYtEqAqAZqruQX3d+wKxtEzTiv2ijRJ4VOWUsp2kNGpnfj9iwW33WbihvnqvF6i/V+w2JscSN8KrVT7pIRMLW9SvsFFvDcMl+zOIqE+rYBN4S58PwQl5ztRMjP1JJD74Hvvcbxd4U/0hPhfDp6tDLgPBHzTVpO+kcQVutt+w4KqrAUBkZp9UmPv9BcquPh4o/pJ8zT/wkPwhbbl68WLuJgvHoZsrQvAKI9UUvYrj0hLW6WCbS7Q9WEtA9+FmkAQAxVkeBaX6nqBOQmwx5q1/C2fD0iT70IMVPGbCaFse+3lkoY2gsc2sATimsF/Si+th6qHEde/M495wqgPi9DLuYXj7aZ4YUJu4ikNy9VfRA8kRCFXJPUAO3ykLPMXxPlPnqRFuR0PXWy2LQ6hkt9vZ893dAXY7qKzMDShT5tJH5+3YvmXvUqFZrZhj x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4118e08d-d18e-436c-7450-08d79a750b1f X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2020 11:12:58.2555 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: v/yhTIFiyUCW4m6wF3+y3UP2LBXJeIegIdVVhE99Wh0TZkrDrfuDKWI8/MjpnsFkweu2hj1Q1s4HCr2kG2Eg3SvQTHxwd0BE7JKrd3jWZns= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR03MB5301 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-01-16_03:2020-01-16,2020-01-15 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=972 malwarescore=0 lowpriorityscore=0 mlxscore=0 clxscore=1011 adultscore=0 phishscore=0 spamscore=0 priorityscore=1501 bulkscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1910280000 definitions=main-2001160095 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE5LTExLTEyIGF0IDE1OjQxICswMTAwLCBNaWNoYWVsIE9sYnJpY2ggd3JvdGU6 DQo+IFtFeHRlcm5hbF0NCj4gDQo+IE9uIFdlZCwgTm92ID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