Commit d8c39d3f authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: octeon-usb: don't retry on data toggle error

On data toggle error, we don't know if and how many bytes were
successfully transferred by DMA. We should just fail the transaction
instead of trying a retry.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e5b90898
...@@ -2840,8 +2840,9 @@ static int __cvmx_usb_poll_channel(struct cvmx_usb_state *usb, int channel) ...@@ -2840,8 +2840,9 @@ static int __cvmx_usb_poll_channel(struct cvmx_usb_state *usb, int channel)
__cvmx_usb_perform_complete(usb, pipe, transaction, __cvmx_usb_perform_complete(usb, pipe, transaction,
CVMX_USB_COMPLETE_BABBLEERR); CVMX_USB_COMPLETE_BABBLEERR);
} else if (usbc_hcint.s.datatglerr) { } else if (usbc_hcint.s.datatglerr) {
/* We'll retry the exact same transaction again */ /* Data toggle error */
transaction->retries++; __cvmx_usb_perform_complete(usb, pipe, transaction,
CVMX_USB_COMPLETE_DATATGLERR);
} else if (usbc_hcint.s.nyet) { } else if (usbc_hcint.s.nyet) {
/* /*
* NYET as a response is only allowed in three cases: as a * NYET as a response is only allowed in three cases: as a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment