From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECF39C3F2D2 for ; Thu, 5 Mar 2020 21:23:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BBDDE20848 for ; Thu, 5 Mar 2020 21:23:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=synopsys.com header.i=@synopsys.com header.b="K/jrAcNB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726142AbgCEVXp (ORCPT ); Thu, 5 Mar 2020 16:23:45 -0500 Received: from smtprelay-out1.synopsys.com ([149.117.73.133]:53382 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbgCEVXo (ORCPT ); Thu, 5 Mar 2020 16:23:44 -0500 Received: from mailhost.synopsys.com (sv2-mailhost1.synopsys.com [10.205.2.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 7620A43BE1; Thu, 5 Mar 2020 21:23:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1583443424; bh=/QqK71SMs1vqs9qUfnk8qpjPln6Hhcnj2HtUQngyBXI=; h=Date:From:Subject:To:Cc:From; b=K/jrAcNBhycQ5nazSXuGai34fXp2ZqxLmu7AP05fyfQ9ctHRKa68Ur36iEwLySB2E 5I0o+/fukemOeKGM4BYnW/RKp+BFcZ5rODv+M0aLgGWQpW6BkrkZVvJeR0ziD1RdPK t09KYedcjphomeimbY1GzeaW1IYXk/59/X0miJGjrV78oN3HK1RVqbdY/1fl2ul7lX 5nRU0lR+VxZtq61jVsmUZn/7Ohi8y0aAZzpEqoQzwQ5PdDzu9q//SRsLcNC5wkqnt1 oriHp5aybvqeamTlPiPuKk3s1FqjTUsWjUJRsdTUI5LeayY3z7KGRN7bfztEMBOrL5 r2GUfj4wylsyw== Received: from te-lab16 (nanobot.internal.synopsys.com [10.10.186.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPSA id 07A65A0096; Thu, 5 Mar 2020 21:23:42 +0000 (UTC) Received: by te-lab16 (sSMTP sendmail emulation); Thu, 05 Mar 2020 13:23:42 -0800 Date: Thu, 05 Mar 2020 13:23:42 -0800 Message-Id: From: Thinh Nguyen Subject: [PATCH 0/6] usb: dwc3: gadget: Misc transfer cancellation fixes To: Felipe Balbi , Greg Kroah-Hartman , Thinh Nguyen , linux-usb@vger.kernel.org Cc: John Youn , stable Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org This series contains miscellaneous fixes to dwc3's gadget. Most of them are related to transfer cancellation handling. Thinh Nguyen (6): usb: dwc3: gadget: Don't clear flags before transfer ended usb: dwc3: gadget: Properly handle ClearFeature(halt) usb: dwc3: gadget: Wrap around when skip TRBs usb: dwc3: gadget: Give back staled requests usb: dwc3: gadget: Remove unnecessary checks usb: dwc3: gadget: Refactor dwc3_gadget_ep_dequeue drivers/usb/dwc3/gadget.c | 85 +++++++++++++++++++++++++++++++---------------- 1 file changed, 57 insertions(+), 28 deletions(-) -- 2.11.0