On 02/03/2014 01:51 PM, Paul Zimmerman wrote:
...
> Stephen, Andre,
> 
> Can you test the attached patch, please? It works for my on the Synopsys
> PCIe-based FPGA board. Unfortunately my RPI board is currently broken,
> so I am unable to test it there to verify it actually fixes the problem
> you are seeing.
> 
> The dwc2 driver doesn't use the usb_device toggle bits anywhere else,
> so the quickest fix is to just remove the problematic code from
> _dwc2_hcd_endpoint_reset().
> 
> If you give me your tested-bys, I will submit this as a proper patch
> to Greg.

I've tested a basically equivalent patch (link below), so I feel
comfortable saying:

Tested-by: Stephen Warren <swar...@wwwdotorg.org>

https://github.com/swarren/linux-rpi/commit/f7b9c896153cc0501acecb58053db978ec00a5bf

> @@ -2579,9 +2579,11 @@ static void _dwc2_hcd_endpoint_reset(struct usb_hcd 
> *hcd,
> 
>       spin_lock_irqsave(&hsotg->lock, flags);
> 
> +#if 0
>       usb_settoggle(udev, epnum, is_out, 0);
>       if (is_control)
>               usb_settoggle(udev, epnum, !is_out, 0);
> +#endif
>       dwc2_hcd_endpoint_reset(hsotg, ep);
> 
>       spin_unlock_irqrestore(&hsotg->lock, flags);

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to