From: Torokhov <dmitry.torokhov@gmail.com>
To: Felipe Balbi <felipe.balbi@linux.intel.com>,
Minas Harutyunyan <hminas@synopsys.com>
Cc: Douglas Anderson <dianders@chromium.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [2/3] usb: dwc2: host: do not delay retries after successful transfer
Date: Fri, 15 Jun 2018 15:01:30 -0700 [thread overview]
Message-ID: <20180615220131.65402-2-dmitry.torokhov@gmail.com> (raw)
When handling split transactions we should not be delaying retrying
SSPLIT/CSPLIT after we successfully communicate with the device, so
let's reset dtd->num_naks counter when handling XFERCOMPL.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
drivers/usb/dwc2/hcd_intr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/dwc2/hcd_intr.c b/drivers/usb/dwc2/hcd_intr.c
index d423b6a49f96c..b9879de6230d0 100644
--- a/drivers/usb/dwc2/hcd_intr.c
+++ b/drivers/usb/dwc2/hcd_intr.c
@@ -1092,6 +1092,7 @@ static void dwc2_hc_xfercomp_intr(struct dwc2_hsotg *hsotg,
}
handle_xfercomp_done:
+ qtd->num_naks = 0;
disable_hc_int(hsotg, chnum, HCINTMSK_XFERCOMPL);
}
next reply other threads:[~2018-06-15 22:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-15 22:01 Torokhov [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-06-15 23:49 [2/3] usb: dwc2: host: do not delay retries after successful transfer Doug Anderson
2018-07-17 19:58 Doug Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180615220131.65402-2-dmitry.torokhov@gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=dianders@chromium.org \
--cc=felipe.balbi@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=hminas@synopsys.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).