Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1387517
| From | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] musb_host: fix lockup on rxcsr_h_error |
| Date | 2016-04-26 16:10 +0200 |
| Message-ID | <rsbQD-Gm-27@gated-at.bofh.it> (permalink) |
| References | <rs4YO-2UO-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hello.
On 4/26/2016 9:45 AM, Max Uvarov wrote:
> Fix soft lockup when resetting remote device attached
> to usb host. Configuration:
> pppd -> musb hub -> usb-serial -> gms modem
> When gsm modem resets, musb rolls in incoming rx interrupts
> which does not give any time to other application as result
> it totally lock ups. Solution is to keep original logic for RXCSR_H_ERROR
> and merge RXCSR_DATAERROR and RXCSR_H_ERROR branches to call same code
> for setting rx stall with MUSB_RXCSR_H_WZC_BITS.
>
> Signed-off-by: Max Uvarov <muvarov@gmail.com>
> ---
> drivers/usb/musb/musb_host.c | 13 ++++++-------
> 1 file changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c
> index c3d5fc9..f82d0ae 100644
> --- a/drivers/usb/musb/musb_host.c
> +++ b/drivers/usb/musb/musb_host.c
> @@ -1592,14 +1592,13 @@ void musb_host_rx(struct musb *musb, u8 epnum)
>
> /* stall; record URB status */
> status = -EPIPE;
> + } else if (rx_csr & MUSB_RXCSR_DATAERROR ||
> + rx_csr & MUSB_RXCSR_H_ERROR) {
} else if (rx_csr & (MUSB_RXCSR_DATAERROR | MUSB_RXCSR_H_ERROR)) {
[...]
MBR, Sergei
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] musb_host: fix lockup on rxcsr_h_error Max Uvarov <muvarov@gmail.com> - 2016-04-26 08:50 +0200 Re: [PATCH] musb_host: fix lockup on rxcsr_h_error Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-04-26 16:10 +0200
csiph-web