[PATCH 0/6] staging: dwc2: fixes and cleanups for dwc2

2013-07-13 Thread Paul Zimmerman
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

[PATCH 2/6] staging: dwc2: add calls to usb_hcd_link_urb_to_ep() and friends

2013-07-13 Thread Paul Zimmerman
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(

[PATCH 1/6] staging: dwc2: refactor dwc2_host_complete()

2013-07-13 Thread Paul Zimmerman
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

[PATCH 4/6] staging: dwc2: fix dwc2_hcd_qtd_add()

2013-07-13 Thread Paul Zimmerman
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/

[PATCH 3/6] staging: dwc2: optimize dwc2_hc_handle_tt_clear() a bit

2013-07-13 Thread Paul Zimmerman
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

[PATCH 5/6] staging: dwc2: reduce noisy debug messages

2013-07-13 Thread Paul Zimmerman
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

[PATCH 6/6] staging: dwc2: remove use of bus_to_virt()

2013-07-13 Thread Paul Zimmerman
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

RE: [PATCH 1/2] Drivers: hv: balloon: Fix a bug in the hot-add code

2013-07-13 Thread KY Srinivasan
> -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

Re: [PATCH 0/6] staging: dwc2: fixes and cleanups for dwc2

2013-07-13 Thread Stephen Warren
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