This is a series of fixes and cleanups for the dwc2 driver. It
fixes some occasional crashes I had been seeing, and also makes
the driver work on the Raspberry Pi with the mainline kernel,
once some additional DT support is added (not upstream yet).
I think this should make the driver pretty close
The driver was lacking calls to usb_hcd_link_urb_to_ep(),
usb_hcd_unlink_urb_from_ep(), and usb_hcd_check_unlink_urb(). Add
those now.
Signed-off-by: Paul Zimmerman
---
drivers/staging/dwc2/hcd.c | 52 +-
1 file changed, 37 insertions(+), 15 deletions(
The parameters to dwc2_host_complete() didn't make much sense.
The 'context' parameter always came from the ->priv member of the
'dwc2_urb' parameter, and both of those always came from a struct
dwc2_qtd. So just pass in the struct dwc2_qtd instead.
This also allows us to null out the dwc2_qtd->ur
The logic in dwc2_hcd_qtd_add() was a bit messy, and one of the
error exit paths was broken. Fix it up.
Signed-off-by: Paul Zimmerman
---
drivers/staging/dwc2/hcd_queue.c | 20
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/dwc2/hcd_queue.c b/
Make dwc2_hc_handle_tt_clear() return early if the device is
hi-speed.
Signed-off-by: Paul Zimmerman
---
drivers/staging/dwc2/hcd_intr.c | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/dwc2/hcd_intr.c b/drivers/staging/dwc2/hcd_intr.c
index 22836
Change the non-aligned buffer debug messages to dev_vdbg(). Also
remove some duplicated debug output when the driver is loaded.
Signed-off-by: Paul Zimmerman
---
drivers/staging/dwc2/hcd.c | 2 --
drivers/staging/dwc2/hcd_intr.c | 14 +++---
2 files changed, 7 insertions(+), 9 dele
Remove the use of bus_to_virt() and just fail the transfer if an
unaligned buffer with no virtual address is found. AFAIK that
can't happen anyway.
Also change setting of coherent DMA mask to the normal 32 bits.
31 bits was only needed when calling bus_to_virt() AFAICR.
Signed-off-by: Paul Zimmer
> -Original Message-
> From: Ben Hutchings [mailto:b...@decadent.org.uk]
> Sent: Friday, July 12, 2013 5:13 PM
> To: KY Srinivasan
> Cc: gre...@linuxfoundation.org; linux-ker...@vger.kernel.org;
> de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com;
> jasow...@redhat.com; Sta
On 07/13/2013 03:53 PM, Paul Zimmerman wrote:
> This is a series of fixes and cleanups for the dwc2 driver. It
> fixes some occasional crashes I had been seeing, and also makes
> the driver work on the Raspberry Pi with the mainline kernel,
> once some additional DT support is added (not upstream y