Received: by 10.223.185.116 with SMTP id b49csp4185930wrg; Mon, 26 Feb 2018 12:47:29 -0800 (PST) X-Google-Smtp-Source: AH8x226h+9Ou/UYVGufQBqqIyMq5+DUD7h0qB69tM/MLIklWQbPNeZc5RmEKkmEd9NaJdxEsYKTB X-Received: by 2002:a17:902:bc85:: with SMTP id bb5-v6mr12132139plb.425.1519678049091; Mon, 26 Feb 2018 12:47:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519678049; cv=none; d=google.com; s=arc-20160816; b=midOIcpzyCbCsXT3K7HvaNZS4uZLEgbMLmD9rNXc/RzvhrPWZ9AgHV/ZgbdwQYfmbA 9GdgzkU99KBHfKSav8x1y6YL8S55HiTgYmEl/6m6PtcaMHT0MbtEOtU/LxLabjs2TTNp iQDHUKdhIncl7mPoJ4Dvyy3EwsBG+9sud7KorOZg1vOaq6uUQyKb1+1CTOKdNYqdN+Vx EqQ7NQz/lefpESTbQXTvF6NYsB9VqSBQxZCvPSpyhkMPwMNsSojpS4oX1Kdkne294PzQ RV7vOOGWexixh6+IYSgFUOD8v0D3WVBWQzd+11eHXHYtXRILGuXx7iycDL0PyV5XQG1U /+9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ac+3pa5OSHajOyyjXsyeCyS5LX6++1G3mPTrmMww4ao=; b=DZZS+BWOCj7fQIPBDebrYUxZWGF7FVMMovKeTmtpwTS5T1llQGlEtjAGykRS4MUDtZ N9fWcSklD0BzBxzuDamWB2my8T9MdsjW7oXSF379Az8MbAnpL90bH4dRx78eYekS3U94 TKMCNtElBwJrApZ5KjzrEt1kPqALb3NawSgLKzLo3dySl/oLKqQbXvTdnf3upo/p7cqo j+rdIviutg6QIstLZl+ZnUUr7jWmdItjv4jyRrSEypGr1CXZAjHsEL1l5FWZHm/HnbqD c4s+UH3PKy5tQduZrisEmEPrcsSFjhFcHclMvT9xGKj8dHdIyy1HdZaTQdukna0hNYA4 fZ7Q== ARC-Authentication-Results: i=1; mx.google.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 e18si7259458pfi.130.2018.02.26.12.47.12; Mon, 26 Feb 2018 12:47:29 -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; 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 S1753303AbeBZUZz (ORCPT + 99 others); Mon, 26 Feb 2018 15:25:55 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35594 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753210AbeBZUZx (ORCPT ); Mon, 26 Feb 2018 15:25:53 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1F242FE5; Mon, 26 Feb 2018 20:25:52 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bin Liu Subject: [PATCH 4.14 42/54] Revert "usb: musb: host: dont start next rx urb if current one failed" Date: Mon, 26 Feb 2018 21:22:19 +0100 Message-Id: <20180226202146.470724007@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202144.375869933@linuxfoundation.org> References: <20180226202144.375869933@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bin Liu commit 44eb5e12b845cc8a0634f21b70ef07d774eb4b25 upstream. This reverts commit dbac5d07d13e330e6706813c9fde477140fb5d80. commit dbac5d07d13e ("usb: musb: host: don't start next rx urb if current one failed") along with commit b5801212229f ("usb: musb: host: clear rxcsr error bit if set") try to solve the issue described in [1], but the latter alone is sufficient, and the former causes the issue as in [2], so now revert it. [1] https://marc.info/?l=linux-usb&m=146173995117456&w=2 [2] https://marc.info/?l=linux-usb&m=151689238420622&w=2 Cc: stable@vger.kernel.org # v4.7+ Signed-off-by: Bin Liu Signed-off-by: Greg Kroah-Hartman --- drivers/usb/musb/musb_host.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -418,13 +418,7 @@ static void musb_advance_schedule(struct } } - /* - * The pipe must be broken if current urb->status is set, so don't - * start next urb. - * TODO: to minimize the risk of regression, only check urb->status - * for RX, until we have a test case to understand the behavior of TX. - */ - if ((!status || !is_in) && qh && qh->is_ready) { + if (qh != NULL && qh->is_ready) { musb_dbg(musb, "... next ep%d %cX urb %p", hw_ep->epnum, is_in ? 'R' : 'T', next_urb(qh)); musb_start_urb(musb, is_in, qh);