Received: by 10.223.185.116 with SMTP id b49csp4176181wrg; Mon, 26 Feb 2018 12:35:37 -0800 (PST) X-Google-Smtp-Source: AH8x224klxi7Zp3LHeXAiPR4Qhoci15L52txwi/lixHscwhr1Jb37AjWxiTGpNXuTQDjQ1KFWO+i X-Received: by 10.101.100.213 with SMTP id t21mr9396216pgv.19.1519677337242; Mon, 26 Feb 2018 12:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519677337; cv=none; d=google.com; s=arc-20160816; b=Kj+gqtmoe6fguQspgvGxwm+4qBphPCjy74piWThAN5Hs94TDCgZYOnan3pm2KEDxAS l863pnVPSzstbvqSgt7YfQ6oPMCTAwJ+SvTUnClr2gRYUST6epvV6Na8IlxIEV0uf0jc B6RXPgm97HPSGpaLnuo1rWMVGbz5SnHcwp++TSOnOTExMviW2vdfDJEJF0P2R9FpExCQ tpiFtYoLzLZvzELTQahYJieECZ5ZwfXTT9+0SVghPBi8C8Deuc/73Wtjl3BgpGe4sTON Yuq6fHsDaz+MhfDec+TIP+N+cdIn12yxcc9yG2BkmKgpjHv+1Q7WenX6JkxcRI/mP7Rc AciA== 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=0/0Vs3uoxJDogdASkWPvyHlvHfpnaAnhN0I/uGhhWgY=; b=LavWYJmPzFchxh8psYF96RVOXrxZcBTM6xLsWVWKcYwUzikpEuoWcxQDd+DTDVKReP fTe0FemdtHViG84x5b0atr/buFX2MZ7XxjceZGLXxTSUZk29XfALqVvjz0Y/rjKnxkk7 qgEIbTCTfa6bLQiM0TnYbtU6cRJoU97mjGU4ViXcmvkmSfSSbGq2e4XuZzKfF27leacH NzIuEzCx3uIBSW+XErC7famA5onprkSh/Oc1VIpGTLij+vAlRAdEOdcBxVZj1gmaAqRy I+Inv40p94/FPRO9qlLeh4yGolKYzAgMqdoM9Ne30FYVbeI6v4YYQrwLQQSvmVoi10qm 8TnQ== 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 q9si5979262pgc.623.2018.02.26.12.35.20; Mon, 26 Feb 2018 12:35:37 -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 S1753905AbeBZU2P (ORCPT + 99 others); Mon, 26 Feb 2018 15:28:15 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:37098 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752442AbeBZU2O (ORCPT ); Mon, 26 Feb 2018 15:28:14 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 519B8E64; Mon, 26 Feb 2018 20:28:13 +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.15 49/64] Revert "usb: musb: host: dont start next rx urb if current one failed" Date: Mon, 26 Feb 2018 21:22:26 +0100 Message-Id: <20180226202155.548768959@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226202153.453363333@linuxfoundation.org> References: <20180226202153.453363333@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.15-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 @@ -393,13 +393,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);