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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 C6CFBC2D0EF for ; Sat, 18 Apr 2020 10:23:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A61C321D7E for ; Sat, 18 Apr 2020 10:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587205432; bh=ZYWxxOf0AUun1SC4zDeYsRN3o0ohMU6TEdy9FB58UKM=; h=Subject:To:Cc:From:Date:List-ID:From; b=tIrwgnh7JjuvSjHJWOLjZAtEJ7lQwFePWA8R8Baf4+B3Hy+yCpvI8Tkjqj1s77Qke hA/s+RIs0Y0uonNnNPwmcRjpgcQp4JSRNzhd42LjtCEVb+KiB+Pf+eW+pBrZfPw85c vqXutpPugTSGUpKjRJx04V44aebM41DMtA8+Tiog= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726069AbgDRKXr (ORCPT ); Sat, 18 Apr 2020 06:23:47 -0400 Received: from wforward5-smtp.messagingengine.com ([64.147.123.35]:58471 "EHLO wforward5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbgDRKXc (ORCPT ); Sat, 18 Apr 2020 06:23:32 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id 9D7B6634; Sat, 18 Apr 2020 06:23:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 18 Apr 2020 06:23:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=me0AnX amg00zwhjfdFz1wk/KyuFkz2LcJ5gGhb06rR8=; b=gd8ogTpjlUC2Qo2v99wF7K q7Ny+gh1yZRevN9jiz6Zr+H6zAITPXIXzAw8JcvrIBLLhTI5PLqI6Dh3noaI+6KO ohqLmNP1kFLvKMWNCzgxsT59m+/0tznuGSpsI2y5Lcyex8FKY+Y4DnOxdi1ZGHtw b2q5a82QqETLVVgAKOu3wlFZohdc/nwgwpUJyit1fQme4STKzonHw0LlJrGWxqYM k1eVPdRGneqc+GIxkePxkwnoToYN/+qrbqogAosfwpPbl/oGwq9EZnUx54kzEyVQ 8YP6Ei09Jw8gM7Ihbixps7opsGywaF7R379RAjhI1xKQ2LKwgpxl0vuhmMqaf+Wg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrfeelgdeftdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucfkphepkeefrdekiedrkeelrddutdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 9838B3060062; Sat, 18 Apr 2020 06:23:03 -0400 (EDT) Subject: FAILED: patch "[PATCH] usb: dwc3: gadget: Don't clear flags before transfer ended" failed to apply to 4.19-stable tree To: Thinh.Nguyen@synopsys.com, balbi@kernel.org, thinhn@synopsys.com Cc: From: Date: Sat, 18 Apr 2020 12:23:02 +0200 Message-ID: <158720538210062@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.19-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From a114c4ca64bd522aec1790c7e5c60c882f699d8f Mon Sep 17 00:00:00 2001 From: Thinh Nguyen Date: Thu, 5 Mar 2020 13:23:49 -0800 Subject: [PATCH] usb: dwc3: gadget: Don't clear flags before transfer ended We track END_TRANSFER command completion. Don't clear transfer started/ended flag prematurely. Otherwise, we'd run into the problem with restarting transfer before END_TRANSFER command finishes. Fixes: 6d8a019614f3 ("usb: dwc3: gadget: check for Missed Isoc from event status") Signed-off-by: Thinh Nguyen Signed-off-by: Felipe Balbi diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 1e00bf2d65a2..b032e62fff0f 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2570,10 +2570,8 @@ static void dwc3_gadget_endpoint_transfer_in_progress(struct dwc3_ep *dep, dwc3_gadget_ep_cleanup_completed_requests(dep, event, status); - if (stop) { + if (stop) dwc3_stop_active_transfer(dep, true, true); - dep->flags = DWC3_EP_ENABLED; - } /* * WORKAROUND: This is the 2nd half of U1/U2 -> U0 workaround.