Re: [PATCH] dwc3: dwc3-pci: Use SIMPLE_DEV_PM_OPS

2013-08-13 Thread Peter Chen
On Wed, Aug 7, 2013 at 7:51 PM, Fabio Estevam wrote: > From: Fabio Estevam > > Using SIMPLE_DEV_PM_OPS can make the code simpler and cleaner. > > Signed-off-by: Fabio Estevam > --- > drivers/usb/dwc3/dwc3-pci.c | 15 +-- > 1 file changed, 5 insertions(+), 10 deletions(-) > > diff --

Re: [PATCH] usb: gadget: at91_udc: add usb_clk for transition to common clk framework

2013-08-13 Thread Nicolas Ferre
On 12/08/2013 22:42, boris brezillon : Hello Nicolas, On 12/08/2013 15:52, Nicolas Ferre wrote: On 01/08/2013 08:18, Boris BREZILLON : The AT91 PMC (Power Management Controller) provides an USB clock used by USB Full Speed host (ohci) and USB Full Speed device (udc). The usb drivers (ohci and

Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode

2013-08-13 Thread Sebastian Andrzej Siewior
On 08/09/2013 10:30 PM, Sergei Shtylyov wrote: > Hello. Hi Sergei, >> +if (musb->port_mode == MUSB_PORT_MODE_HOST) { >> +val = USBMODE_IDDIG_A; >> +val |= USBMODE_ID_MUX_REG; > >Why not do the above in one line and save on {} {}? It will look more > aesthetically pleasing

Re: [RFC PATCH v2 1/3] usb: dwc3: msm: Add device tree binding information

2013-08-13 Thread Ivan T. Ivanov
Hi, On Fri, 2013-08-09 at 10:31 -0500, Kumar Gala wrote: > On Aug 9, 2013, at 4:53 AM, Ivan T. Ivanov wrote: > > > From: "Ivan T. Ivanov" > > > > MSM USB3.0 core wrapper consist of USB3.0 IP (SNPS) > > probably good to spell out Synopsys rather than SNPS I could make it look like this? Syn

[PATCH net-next 2/3] net/usb/r8152: enable tx checksum

2013-08-13 Thread Hayes Wang
Enable tx checksum. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 63 + 1 file changed, 58 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index c6c5aa2..5d9d949 100644 --- a/drivers/net/usb/r

[PATCH net-next 1/3] net/usb/r8152: support aggregation

2013-08-13 Thread Hayes Wang
Enable the tx/rx aggregation which could contain one or more packets for each bulk in/out. This could reduce the loading of the host controller by sending less bulk transfer. The rx packets in the bulk in buffer should be 8-byte aligned, and the tx packets in the bulk out buffer should be 4-byte a

[PATCH net-next 3/3] net/usb/r8152: enable interrupt transfer

2013-08-13 Thread Hayes Wang
Use the interrupt transfer to replace polling link status. Delay to update the link down status, because some of them result from the change of speed. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 134 ++-- 1 file changed, 107 insertions(+),

Re: [RFC PATCH v2 1/3] usb: dwc3: msm: Add device tree binding information

2013-08-13 Thread Ivan T. Ivanov
Hi, On Mon, 2013-08-12 at 13:04 -0500, Felipe Balbi wrote: > On Fri, Aug 09, 2013 at 10:31:58AM -0500, Kumar Gala wrote: > > > > On Aug 9, 2013, at 4:53 AM, Ivan T. Ivanov wrote: > > > > > From: "Ivan T. Ivanov" > > > > > > MSM USB3.0 core wrapper consist of USB3.0 IP (SNPS) > > > > probab

[PATCH RFC] ath9k-htc: convert EP3 and EP4 back from bulk to int

2013-08-13 Thread Oleksij Rempel
If usb auto suspend is enabled or system run in to suspend/resume cycle ath9k-htc adapter will stop to response. It is reproducible on xhci HCs. Host part of problem: XHCI do timing calculation based on Transfer Type and bInterval, immediately after device was detected. Ath9k-htc try to overwrite

Re: [PATCH] usb: phy: samsung-usb2: Toggle HSIC GPIO from device tree

2013-08-13 Thread Tushar Behera
On 12 July 2013 12:27, Felipe Balbi wrote: > Hi, > > On Wed, Jul 10, 2013 at 10:42:27AM -0700, Julius Werner wrote: >> Hi Felipe, >> >> This is intended to pull down a reset signal line, not to switch power >> to the device. I could implement that with the regulator framework >> too, but I think t

Re: [PATCH net-next 1/3] net/usb/r8152: support aggregation

2013-08-13 Thread Oliver Neukum
On Tue, 2013-08-13 at 15:28 +0800, Hayes Wang wrote: > + > +static void rx_bottom(struct r8152 *tp) > +{ > + struct net_device_stats *stats; > + struct net_device *netdev; > + struct rx_agg *agg; > + struct rx_desc *rx_desc; > + unsigned long lockflags; > + struc

[PATCH] usb: phy: am335x: include linux/err.h

2013-08-13 Thread Sebastian Andrzej Siewior
Stephen Rothwell reported that this driver does not compile on PowerPC due to this missing include. One could argue why this driver is enabled on PowerPC in the first place but it sure isn't wrong to include headers for used function instead of to rely that they sneak in. Reported-by: Stephen Roth

Undetected Fresco Logic FL1000G USB 3.0 controller in Asus N43SN after replace a motherboard

2013-08-13 Thread Marcin Zajączkowski
Hi, I had no problem with a USB 3.0 port in my Asus N43SN since I bought a laptop (~2 years). Recently I replaced a motherboard to the new one (N43SL.413 looks the same as the first one) due to a problem with a graphical chipset and after that a USB3 controller stopped to be even detected. $ lspc

[PATCH 1/2] usb: musb: convert to devm_* to allocate resources

2013-08-13 Thread Kishon Vijay Abraham I
No functional change. Used devm_kzalloc and devm_clk_get instead of kzalloc and clk_get. Signed-off-by: Kishon Vijay Abraham I --- only *compile* tested. drivers/usb/musb/am35x.c | 40 ++-- drivers/usb/musb/blackfin.c |8 ++-- drivers/usb/musb/

[PATCH 2/2] usb: musb: pass on all the required resources from glue to musb core

2013-08-13 Thread Kishon Vijay Abraham I
musb glue have to pass either 2 resources or 3 resources to the musb core (musb core irq number, dma irq number and a memory resource). So allocated *resource* for musb core in glue (based on the number of resources in glue), copy all the resources from glue to core before creating the musb core de

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-08-13 Thread Kishon Vijay Abraham I
Hi, On Wednesday 31 July 2013 11:45 AM, Felipe Balbi wrote: > Hi, > > On Wed, Jul 31, 2013 at 11:14:32AM +0530, Kishon Vijay Abraham I wrote: >>> IMHO we need a lookup method for PHYs, just like for clocks, >>> regulators, PWMs or even i2c busses because there are complex cases >>> wh

[PATCH] usb: musb: dsps: depend on of_irq

2013-08-13 Thread Sebastian Andrzej Siewior
Fengguang Wu' bot noticed that dsps won't compile without of_irq* available. I limit this to OF_IRQ for that reason. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/musb/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index

[PATCH 1/7] USB: mos7720: fix broken control requests

2013-08-13 Thread Johan Hovold
The parallel-port code of the drivers used a stack allocated control-request buffer for asynchronous (and possibly deferred) control requests. This not only violates the no-DMA-from-stack requirement but could also lead to corrupt control requests being submitted. Cc: sta...@vger.kernel.org Signed

[PATCH 3/7] USB: keyspan: fix serial DMA-buffer allocations

2013-08-13 Thread Johan Hovold
Make sure serial DMA-buffers are allocated separately from containing structure to prevent potential memory corruption on non-cache-coherent systems. Signed-off-by: Johan Hovold --- drivers/usb/serial/keyspan.c | 40 1 file changed, 36 insertions(+), 4 de

[PATCH 2/7] USB: keyspan: fix null-deref at disconnect and release

2013-08-13 Thread Johan Hovold
Make sure to fail properly if the device is not accepted during attach in order to avoid null-pointer derefs (of missing interface private data) at disconnect or release. Cc: sta...@vger.kernel.org Signed-off-by: Johan Hovold --- drivers/usb/serial/keyspan.c | 2 +- 1 file changed, 1 insertion(+

[PATCH 6/7] USB: quatech2: fix port DMA-buffer allocations

2013-08-13 Thread Johan Hovold
Make sure serial DMA-buffers are allocated separately from containing structure to prevent potential memory corruption on non-cache-coherent systems. Signed-off-by: Johan Hovold --- drivers/usb/serial/quatech2.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff -

[PATCH 4/7] USB: keyspan: fix port DMA-buffer allocations

2013-08-13 Thread Johan Hovold
Make sure port DMA-buffers are allocated separately from containing structure to prevent potential memory corruption on non-cache-coherent systems. Signed-off-by: Johan Hovold --- drivers/usb/serial/keyspan.c | 64 ++-- 1 file changed, 56 insertions(+), 8

[PATCH 7/7] USB: uss720: fix DMA-buffer allocation

2013-08-13 Thread Johan Hovold
Make sure the USB control request is allocated separately from containing structure to prevent potential memory corruption on non-cache-coherent systems. Signed-off-by: Johan Hovold --- drivers/usb/misc/uss720.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) dif

[PATCH 0/7] USB: fixes for v3.11 (and v3.12)

2013-08-13 Thread Johan Hovold
Greg, Here's a bunch of fixes for v3.11 and (possibly) v3.12. The first two I think should go into v3.11 whereas the remaining patches could wait for v3.12, unless you think otherwise. I don't have access to these devices so have only done minimal testing of the serial ones using the dynamic-id

[PATCH 5/7] USB: quatech2: fix serial DMA-buffer allocations

2013-08-13 Thread Johan Hovold
Make sure serial DMA-buffers are allocated separately from containing structure to prevent potential memory corruption on non-cache-coherent systems. Signed-off-by: Johan Hovold --- drivers/usb/serial/quatech2.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-08-13 Thread Tomasz Figa
On Tuesday 13 of August 2013 16:14:44 Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 31 July 2013 11:45 AM, Felipe Balbi wrote: > > Hi, > > > > On Wed, Jul 31, 2013 at 11:14:32AM +0530, Kishon Vijay Abraham I wrote: > >>> IMHO we need a lookup method for PHYs, just like for clocks, > >>

Re: [PATCH RFC] ath9k-htc: convert EP3 and EP4 back from bulk to int

2013-08-13 Thread Oleksij Rempel
Am 13.08.2013 10:09, schrieb Oleksij Rempel: If usb auto suspend is enabled or system run in to suspend/resume cycle ath9k-htc adapter will stop to response. It is reproducible on xhci HCs. Host part of problem: XHCI do timing calculation based on Transfer Type and bInterval, immediately after d

Re: [PATCH 01/15] drivers: phy: add generic PHY framework

2013-08-13 Thread Kishon Vijay Abraham I
On Tuesday 13 August 2013 05:07 PM, Tomasz Figa wrote: > On Tuesday 13 of August 2013 16:14:44 Kishon Vijay Abraham I wrote: >> Hi, >> >> On Wednesday 31 July 2013 11:45 AM, Felipe Balbi wrote: >>> Hi, >>> >>> On Wed, Jul 31, 2013 at 11:14:32AM +0530, Kishon Vijay Abraham I wrote: > IMHO we

Re: [PATCH 1/2] Revert "Revert "HID: Fix logitech-dj: missing Unifying device issue""

2013-08-13 Thread Peter Hurley
On 08/12/2013 05:54 PM, Peter Wu wrote: On Thursday 18 July 2013 16:28:01 Peter Hurley wrote: Before we revert to using the workaround, I'd like to suggest that this new "hidden" problem may be an interaction with the xhci_hcd host controller driver only. Looking at the related bug, the OP indi

RE: [PATCH net-next 1/3] net/usb/r8152: support aggregation

2013-08-13 Thread hayeswang
Oliver Neukum [mailto:oneu...@suse.de] > Sent: Tuesday, August 13, 2013 4:49 PM > To: Hayeswang > Cc: net...@vger.kernel.org; linux-ker...@vger.kernel.org; > linux-usb@vger.kernel.org > Subject: Re: [PATCH net-next 1/3] net/usb/r8152: support aggregation > [...] > > + len_used = 0

[PATCH] usb: musb dsps: fix pdev cast in suspend/resume

2013-08-13 Thread Daniel Mack
dsps_suspend() and dsps_resume() are called with the device that has the glue assigned as drvdata. Using dev->parent seems wrong and causes a NULL pointer exception on an AM33xx board. The code was introduced by commit c68bb4c6 ("usb: musb: dsps: control module handling (quirk)") but I wonder whet

Re: [PATCH] dwc3: dwc3-pci: Use SIMPLE_DEV_PM_OPS

2013-08-13 Thread Fabio Estevam
On Tue, Aug 13, 2013 at 3:59 AM, Peter Chen wrote: > It seems .pm is not NULL if CONFIG_PM_SLEEP is not defined > which is not the same with former code. With SIMPLE_DEV_PM_OPS macro we don't need to define the NULL function variants. Take a look at include/linux/pm.h to get a clear picture. --

Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode

2013-08-13 Thread Bin Liu
Sebastian, On Tue, Aug 13, 2013 at 2:14 AM, Sebastian Andrzej Siewior wrote: > On 08/09/2013 10:30 PM, Sergei Shtylyov wrote: >> Hello. > > Hi Sergei, > >>> +if (musb->port_mode == MUSB_PORT_MODE_HOST) { >>> +val = USBMODE_IDDIG_A; >>> +val |= USBMODE_ID_MUX_REG; >> >>Why

Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode

2013-08-13 Thread Sebastian Andrzej Siewior
On 08/13/2013 03:03 PM, Bin Liu wrote: > Sebastian, Hi Bin, +if (musb->port_mode == MUSB_PORT_MODE_HOST) { +val = USBMODE_IDDIG_A; +val |= USBMODE_ID_MUX_REG; >>> > I am going to so some tests today for this. I don't object to use the > mode register, but am won

Re: [PATCH] usb: dwc3: core: clarify usb-phy array binding

2013-08-13 Thread Mark Rutland
On Mon, Aug 12, 2013 at 07:05:53PM +0100, Felipe Balbi wrote: > On Fri, Aug 09, 2013 at 01:42:15PM -0500, Kumar Gala wrote: > > > > On Aug 9, 2013, at 11:28 AM, Mark Rutland wrote: > > > > > On Fri, Aug 09, 2013 at 04:40:32PM +0100, Kumar Gala wrote: > > >> The binding spec wasn't clear that the

Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode

2013-08-13 Thread Sebastian Andrzej Siewior
On 08/13/2013 03:33 PM, Bin Liu wrote: > Sebastian, Hi Bin, >> I've been looking at the wiki page and it did not mention the ID pin >> for the second port. If it is grounded then this piece can be removed > I thought you have already tried that without setting the mode > register the session bit

Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode

2013-08-13 Thread Bin Liu
Sebastian, On Tue, Aug 13, 2013 at 8:17 AM, Sebastian Andrzej Siewior wrote: > On 08/13/2013 03:03 PM, Bin Liu wrote: >> Sebastian, > > Hi Bin, > > +if (musb->port_mode == MUSB_PORT_MODE_HOST) { > +val = USBMODE_IDDIG_A; > +val |= USBMODE_ID_MUX_REG; >> I am g

Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode

2013-08-13 Thread Bin Liu
Sebastian, On Tue, Aug 13, 2013 at 8:44 AM, Sebastian Andrzej Siewior wrote: > This was a misunderstanding then. Sorry. I understood that the bin has > to be unset and then the controller set it once a device there. You meant ID pin? I think it should be set all the time since the driver initiali

Re: [PATCH] dwc3: dwc3-pci: Use SIMPLE_DEV_PM_OPS

2013-08-13 Thread Peter Chen
On Tue, Aug 13, 2013 at 8:59 PM, Fabio Estevam wrote: > On Tue, Aug 13, 2013 at 3:59 AM, Peter Chen wrote: > >> It seems .pm is not NULL if CONFIG_PM_SLEEP is not defined >> which is not the same with former code. > > With SIMPLE_DEV_PM_OPS macro we don't need to define the NULL function > varia

Re: [PATCH] usb: host: add Kconfig option for EHSET

2013-08-13 Thread Alan Stern
On Mon, 12 Aug 2013, Jack Pham wrote: > commit 9841f37a1c ("usb: ehci: Add support for SINGLE_STEP_SET_FEATURE > test of EHSET") added additional code to the EHCI hub driver but it is > anticipated to only have a limited audience (e.g. embedded silicon > vendors and integrators). Avoid subjecting

Re: [PATCH RFC] ath9k-htc: convert EP3 and EP4 back from bulk to int

2013-08-13 Thread Alan Stern
On Tue, 13 Aug 2013, Oleksij Rempel wrote: > If usb auto suspend is enabled or system run in to suspend/resume > cycle ath9k-htc adapter will stop to response. It is reproducible on xhci HCs. > > Host part of problem: > XHCI do timing calculation based on Transfer Type and bInterval, > immediatel

Re: [PATCH] dwc3: dwc3-pci: Use SIMPLE_DEV_PM_OPS

2013-08-13 Thread Fabio Estevam
On Tue, Aug 13, 2013 at 11:05 AM, Peter Chen wrote: > But what I see is the &dwc3_pci_dev_pm_ops is not NULL if CONFIG_PM_SLEEP > is not defined. The point of this macro is that we do not need to provide the .suspend and .resume NULL version when !CONFIG_PM_SLEEP because the macro takes care of

Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode

2013-08-13 Thread Sebastian Andrzej Siewior
On 08/13/2013 04:01 PM, Bin Liu wrote: > Sebastian, Hi Bin, > On Tue, Aug 13, 2013 at 8:44 AM, Sebastian Andrzej Siewior > wrote: >> This was a misunderstanding then. Sorry. I understood that the bin has >> to be unset and then the controller set it once a device there. > You meant ID pin? I thi

Re: [PATCH] usb: musb: am335x: Do not remove the session bin HOST-only mode

2013-08-13 Thread Bin Liu
Sebastian, On Tue, Aug 13, 2013 at 9:23 AM, Sebastian Andrzej Siewior wrote: > Where is my memory going? So now I have a beagle bone in front of me > and I see a micro USB port a standard A connector. My memory was > different. > The micro USB is the UART and standard is most likely the first mus

Re: [PATCH net-next 2/3] net/usb/r8152: enable tx checksum

2013-08-13 Thread Sergei Shtylyov
Hello. On 08/13/2013 11:28 AM, Hayes Wang wrote: Enable tx checksum. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 63 + 1 file changed, 58 insertions(+), 5 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8

Re: [PATCH net-next 1/3] net/usb/r8152: support aggregation

2013-08-13 Thread Oliver Neukum
On Tue, 2013-08-13 at 20:32 +0800, hayeswang wrote: > Oliver Neukum [mailto:oneu...@suse.de] > > Sent: Tuesday, August 13, 2013 4:49 PM > > To: Hayeswang > > Cc: net...@vger.kernel.org; linux-ker...@vger.kernel.org; > > linux-usb@vger.kernel.org > > Subject: Re: [PATCH net-next 1/3] net/usb/r815

Re: [RFC/PATCH 2/2] usb: ehci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET

2013-08-13 Thread Felipe Balbi
On Mon, Aug 12, 2013 at 02:52:33PM -0400, Alan Stern wrote: > On Mon, 12 Aug 2013, Felipe Balbi wrote: > > > > > maybe a single callback for supporting 'testmodes' ? which receives the > > > > test mode as argument ? > > > > > > I don't have a clear picture of how you would apply such an approach

Re: [PATCH] usb: musb: dsps: depend on of_irq

2013-08-13 Thread Felipe Balbi
Hi, On Tue, Aug 13, 2013 at 01:10:59PM +0200, Sebastian Andrzej Siewior wrote: > Fengguang Wu' bot noticed that dsps won't compile without of_irq* > available. I limit this to OF_IRQ for that reason. > > Signed-off-by: Sebastian Andrzej Siewior I sent this patch yesterday. -- balbi signatur

Re: [PATCH] usb: musb dsps: fix pdev cast in suspend/resume

2013-08-13 Thread Felipe Balbi
On Tue, Aug 13, 2013 at 02:40:30PM +0200, Daniel Mack wrote: > dsps_suspend() and dsps_resume() are called with the device that has the > glue assigned as drvdata. Using dev->parent seems wrong and causes a > NULL pointer exception on an AM33xx board. > > The code was introduced by commit c68bb4c6

Re: [PATCH 1/2] Revert "Revert "HID: Fix logitech-dj: missing Unifying device issue""

2013-08-13 Thread Peter Wu
On Tuesday 13 August 2013 08:13:17 Peter Hurley wrote: > On 08/12/2013 05:54 PM, Peter Wu wrote: > > On Thursday 18 July 2013 16:28:01 Peter Hurley wrote: > >> Before we revert to using the workaround, I'd like to suggest that > >> this new "hidden" problem may be an interaction with the xhci_hcd h

Re: [PATCH] usb: musb: dsps: depend on of_irq

2013-08-13 Thread Sebastian Andrzej Siewior
On 08/13/2013 05:36 PM, Felipe Balbi wrote: > Hi, Hi, > I sent this patch yesterday. And how did you know about zhis yesterday? The bot reached me today. > Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org Mo

Re: [PATCH] usb: musb dsps: fix pdev cast in suspend/resume

2013-08-13 Thread Daniel Mack
On 13.08.2013 17:37, Felipe Balbi wrote: > On Tue, Aug 13, 2013 at 02:40:30PM +0200, Daniel Mack wrote: >> diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c >> index 5233804..f20218e 100644 >> --- a/drivers/usb/musb/musb_dsps.c >> +++ b/drivers/usb/musb/musb_dsps.c >> @@ -69

[PATCH v2] usb: musb dsps: fix pdev cast in suspend/resume

2013-08-13 Thread Daniel Mack
dsps_suspend() and dsps_resume() are called with the device that has the glue assigned as drvdata. Using dev->parent seems wrong and causes a NULL pointer exception on an AM33xx board. The code was introduced by commit c68bb4c6 ("usb: musb: dsps: control module handling (quirk)") but I wonder whet

Re: [PATCH 1/2] Revert "Revert "HID: Fix logitech-dj: missing Unifying device issue""

2013-08-13 Thread Peter Hurley
On 08/13/2013 11:42 AM, Peter Wu wrote: On Tuesday 13 August 2013 08:13:17 Peter Hurley wrote: On 08/12/2013 05:54 PM, Peter Wu wrote: On Thursday 18 July 2013 16:28:01 Peter Hurley wrote: Before we revert to using the workaround, I'd like to suggest that this new "hidden" problem may be an in

[PATCH] USB: WUSBCORE: clear RPIPE stall for control endpoints

2013-08-13 Thread Thomas Pugliese
When the HWA encounters a STALL on a control endpoint, it should clear the RPIPE_STALL feature on the RPIPE before processing the next transfer request. Otherwise, all transfer requests on that endpoint after the first STALL will fail because the RPIPE is still in the halted state. Signed-off-

Re: [PATCH] Bug 60699 - Stalled state of endpoint will not be cleared

2013-08-13 Thread Sarah Sharp
On Tue, Aug 13, 2013 at 09:44:26AM +0200, Florian Wolter wrote: > Patch to Fix Problem with not cleared halted endpoint. > > See Bugtracker Bug 60699 Hi Florian, You need to send your patch inline, not as an attachment. Thanks, Sarah Sharp -- To unsubscribe from this list: send the line "unsubs

Re: [RFC/PATCH 2/2] usb: ehci: Add support for SINGLE_STEP_SET_FEATURE test of EHSET

2013-08-13 Thread Alan Stern
On Tue, 13 Aug 2013, Felipe Balbi wrote: > > That's not what I meant. Yes, the test-device driver knows what test > > it wants to run, based on the VID/PID. I was asking how it would > > communicate this knowledge to the HCD. > > > > For example, it doesn't make sense to have a callback that me

Re: [PATCH] Bug 60699 - Stalled state of endpoint will not be cleared

2013-08-13 Thread Florian Wolter
On 13.08.2013 18:45, Sarah Sharp wrote: On Tue, Aug 13, 2013 at 09:44:26AM +0200, Florian Wolter wrote: Patch to Fix Problem with not cleared halted endpoint. See Bugtracker Bug 60699 Hi Florian, You need to send your patch inline, not as an attachment. Thanks, Sarah Sharp Hi Sarah, Sorr

RE: [PATCH v3] usb: rh_call_control tbuf potential future overflow fix

2013-08-13 Thread Stalley, Sean
Good eye, I completely missed the first goto. I'll update the patch and resend it. Thanks Greg! -Sean > -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Monday, August 12, 2013 5:28 PM > To: Stalley, Sean > Cc: linux-usb@vger.kernel.org; Sarah Sha

Re: Bug 60738 - USB 3.0 connection delay seems to be too short for HP USB 3.0 hard drive

2013-08-13 Thread Kumar Gaurav
On Tuesday 13 August 2013 12:01 PM, Alexandre Demers wrote: lsusb gives me the following: sudo lsusb --verbose -t /: Bus 13.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M /: Bus 12.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M /: Bus 11.Port 1: Dev 1, Class=root_hub, Driver=x

[PATCH 00/10] staging: ozwpan: Coding style fixes

2013-08-13 Thread Rupesh Gujare
This patch seriese mostly contains coding style fixes & removes unneeded variable initialization. Dan Carpenter (1): staging: ozwpan: Separate success & failure case for oz_hcd_pd_arrived() Rupesh Gujare (9): staging: ozwpan: Add a blank line between declaraction and code. staging: ozwp

[PATCH 03/10] staging: ozwpan: Simply if condition

2013-08-13 Thread Rupesh Gujare
Making code simpler for readability. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 5a417c8..4b658d4

[PATCH 02/10] staging: ozwpan: Add a blank line between functions & declarations.

2013-08-13 Thread Rupesh Gujare
This patch adds a blank line between global declarations & functions for readability. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c| 17 drivers/staging/ozwpan/ozeltbuf.c | 12 ++ drivers/staging/ozwpan/ozhcd.c | 68 +

[PATCH 04/10] staging: ozwpan: Fix coding style.

2013-08-13 Thread Rupesh Gujare
Put spaces around math operations. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 4b658d4..2be15f4 100644

[PATCH 01/10] staging: ozwpan: Add a blank line between declaraction and code.

2013-08-13 Thread Rupesh Gujare
This patch adds blank line between declaration & code for readability. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozcdev.c|6 ++ drivers/staging/ozwpan/ozeltbuf.c |7 +++ drivers/staging/ozwpan/ozhcd.c | 28 drivers

Re: [PATCH] Bug 60699 - Stalled state of endpoint will not be cleared

2013-08-13 Thread Sergei Shtylyov
Hello. On 08/13/2013 08:52 PM, Florian Wolter wrote: Patch to Fix Problem with not cleared halted endpoint. See Bugtracker Bug 60699 Hi Florian, You need to send your patch inline, not as an attachment. Thanks, Sarah Sharp Hi Sarah, Sorry now the Patch is in-lined. Subject: [

[PATCH 05/10] staging: ozwpan: Remove unnecessary pointer check.

2013-08-13 Thread Rupesh Gujare
We are already checking "ep" earlier in function. Do not need to check again. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan

[PATCH 10/10] staging: ozwpan: Separate success & failure case for oz_hcd_pd_arrived()

2013-08-13 Thread Rupesh Gujare
From: Dan Carpenter This patch separates success & failure block along with fixing following issues:- 1. The way oz_hcd_pd_arrived() looks now it's easy to think we free "ep" but actually we do this spaghetti thing of setting it to NULL on success. 2. It is hard to read it because there are unl

[PATCH 09/10] staging: ozwpan: Swap arguments of oz_ep_alloc() to match kmalloc()

2013-08-13 Thread Rupesh Gujare
Swap arguments of oz_ep_alloc() to match kmalloc() for better readability. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c index 0fd3fea..0

[PATCH 08/10] staging: ozwpan: Remove unneeded initializers

2013-08-13 Thread Rupesh Gujare
Remove variable initialization wherever it is not required. Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozeltbuf.c |2 +- drivers/staging/ozwpan/ozhcd.c| 18 +- drivers/staging/ozwpan/ozpd.c |4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-)

[PATCH 07/10] staging: ozwpan: Make oz_hcd_pd_departed() take a struct pointer.

2013-08-13 Thread Rupesh Gujare
oz_hcd_pd_departed() takes struct oz_port pointer instead of void *, change function declaration to avoid ambiguity. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- drivers/staging/ozwpan/ozhcd.h |2 +- 2 files changed, 3 insertions(+)

[PATCH 06/10] staging: ozwpan: Make oz_hcd_pd_arrived() return a struct pointer

2013-08-13 Thread Rupesh Gujare
oz_hcd_pd_arrived returns struct oz_port *, change function declaration to avoid ambiguity. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- drivers/staging/ozwpan/ozhcd.h |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --

Re: [PATCH 07/10] staging: ozwpan: Make oz_hcd_pd_departed() take a struct pointer.

2013-08-13 Thread Sergei Shtylyov
Hello. On 08/13/2013 09:29 PM, Rupesh Gujare wrote: oz_hcd_pd_departed() takes struct oz_port pointer instead of void *, change function declaration to avoid ambiguity. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- drivers/stagin

Re: [PATCH 09/10] staging: ozwpan: Swap arguments of oz_ep_alloc() to match kmalloc()

2013-08-13 Thread Joe Perches
On Tue, 2013-08-13 at 18:29 +0100, Rupesh Gujare wrote: > Swap arguments of oz_ep_alloc() to match kmalloc() for better readability. [] > diff --git a/drivers/staging/ozwpan/ozhcd.c b/drivers/staging/ozwpan/ozhcd.c [] > -static struct oz_endpoint *oz_ep_alloc(gfp_t mem_flags, int buffer_size) > +st

[PATCH] usb: musb: honour the return value of dma_map_single()

2013-08-13 Thread Sebastian Andrzej Siewior
Since dma_map_single() may fail it is good to actually check the return code to see if it succeeded. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/musb/musb_gadget.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/

[PATCH v4] usb: rh_call_control tbuf overflow fix

2013-08-13 Thread Sean O. Stalley
rh_call_control() contains a buffer, tbuf, which it uses to hold USB descriptors. These discriptors are eventually copied into the transfer_buffer in the URB. The buffer in the URB is dynamically defined and is always large enough to hold the amount of data it requests. tbuf is currently staticall

enable device mode for cppi41

2013-08-13 Thread Sebastian Andrzej Siewior
Hi, tested a little with g_ncm on amm35x-evm. Sebastian -- 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

[PATCH 2/2] usb: musb: cppi41: Enable in device-TX mode

2013-08-13 Thread Sebastian Andrzej Siewior
Since the musb-gadget code now calls the dma engine properly it is possible to enable it for the TX path in device mode. AM335x Advisory 1.0.13 says that we may lose the toggle bit on multiple RX transfers. There is a workaround in host mode but none in device mode and therefore RX transfers are di

[PATCH 1/2] usb: musb: Use is_cppi_enabled() and tusb_dma_omap() instead of the ifdef

2013-08-13 Thread Sebastian Andrzej Siewior
This patch makes use of the two function is_cppi_enabled() and tusb_dma_omap() instead of the ifdef for the proper DMA implementation setup code. It basically shifts the code right by one indention level and adds a few line breaks once the chars are crossed. Signed-off-by: Sebastian Andrzej Siewio

Re: [PATCH 07/10] staging: ozwpan: Make oz_hcd_pd_departed() take a struct pointer.

2013-08-13 Thread Rupesh Gujare
On 13/08/13 18:35, Sergei Shtylyov wrote: Hello. On 08/13/2013 09:29 PM, Rupesh Gujare wrote: oz_hcd_pd_departed() takes struct oz_port pointer instead of void *, change function declaration to avoid ambiguity. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/

Re: [RFC v3] xhci-hub: Roothub USB2.0 descriptor for BESL DBESL

2013-08-13 Thread Sarah Sharp
On Sat, Aug 10, 2013 at 04:04:02AM +, Paul Zimmerman wrote: > > From: linux-usb-ow...@vger.kernel.org > > [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Alexandra Yates > > Sent: Friday, August 09, 2013 12:21 PM > > Hi Alexandra, > > > > > > > +/* USB 2.0 BOS descriptor and a capab

Re: [PATCH 07/10] staging: ozwpan: Make oz_hcd_pd_departed() take a struct pointer.

2013-08-13 Thread Sergei Shtylyov
On 08/13/2013 09:40 PM, Rupesh Gujare wrote: oz_hcd_pd_departed() takes struct oz_port pointer instead of void *, change function declaration to avoid ambiguity. Reported-by: Dan Carpenter Signed-off-by: Rupesh Gujare --- drivers/staging/ozwpan/ozhcd.c |4 ++-- drivers/staging/ozwpan

[PATCH 3/4] usb: musb: dma: use check macros with a type

2013-08-13 Thread Sebastian Andrzej Siewior
Now pass the dma_controller to the macro that checks if a given dma engine is available. For consistency the all the macros start if is_dma_. The mentor and TUSB is added and will be used later. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/musb/davinci.c | 2 +- drivers/usb/musb

[PATCH 1/4] usb: musb: gadget: move the use_dma to the upper if

2013-08-13 Thread Sebastian Andrzej Siewior
If we check the use_dma before calling ->channel_program() then in case of use_dma is 0 we don't have to remove the MUSB_TXCSR_DMAENAB bit because we never set it. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/musb/musb_gadget.c | 8 1 file changed, 4 insertions(+), 4 deletio

[RFC] try to detetmine musb dma engine at runtime

2013-08-13 Thread Sebastian Andrzej Siewior
Hi, the musb dma engine abstraction is basically hidden behind ifdefs and set at compile time. This little incomplete series tries to push this check to runtime time so we could enable more than one at compile time. Any comments? Sebastian -- To unsubscribe from this list: send the line "unsubs

[PATCH 4/4] usb: musb: dma: use is_dma_inventra() and is_dma_ux500() in more places

2013-08-13 Thread Sebastian Andrzej Siewior
Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/musb/musb_gadget.c | 76 -- 1 file changed, 36 insertions(+), 40 deletions(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index c685905..05a59d0 100644 --- a/drivers/

[PATCH 2/4] usb: musb: add a type to each dma engine

2013-08-13 Thread Sebastian Andrzej Siewior
This patch defines four types of current supported DMA engines and assignes them to each dma engine. This should get rid of a few ifdefs later on. Signed-off-by: Sebastian Andrzej Siewior --- drivers/usb/musb/cppi_dma.c | 1 + drivers/usb/musb/musb_cppi41.c | 1 + drivers/usb/musb/musb_dm

Re: [PATCH 2/2] usb: musb: cppi41: Enable in device-TX mode

2013-08-13 Thread Bin Liu
Sebastian, On Tue, Aug 13, 2013 at 12:38 PM, Sebastian Andrzej Siewior wrote: > Since the musb-gadget code now calls the dma engine properly it is > possible to enable it for the TX path in device mode. > AM335x Advisory 1.0.13 says that we may lose the toggle bit on multiple > RX transfers. Ther

Re: [PATCH] usb: host: add Kconfig option for EHSET

2013-08-13 Thread Greg Kroah-Hartman
On Tue, Aug 13, 2013 at 10:07:58AM -0400, Alan Stern wrote: > On Mon, 12 Aug 2013, Jack Pham wrote: > > > commit 9841f37a1c ("usb: ehci: Add support for SINGLE_STEP_SET_FEATURE > > test of EHSET") added additional code to the EHCI hub driver but it is > > anticipated to only have a limited audienc

Re: [PATCH] Bug 60699 - Stalled state of endpoint will not be cleared

2013-08-13 Thread Florian Wolter
On Tuesday 13 August 2013 19:27:52 Sergei Shtylyov wrote: > Hello. > > On 08/13/2013 08:52 PM, Florian Wolter wrote: > >>> Patch to Fix Problem with not cleared halted endpoint. > >>> > >>> See Bugtracker Bug 60699 > >> > >> Hi Florian, > >> > >> You need to send your patch inline, not as an at

Re: Undetected Fresco Logic FL1000G USB 3.0 controller in Asus N43SN after replace a motherboard

2013-08-13 Thread Greg KH
On Tue, Aug 13, 2013 at 11:18:24AM +0200, Marcin Zajączkowski wrote: > Hi, > > I had no problem with a USB 3.0 port in my Asus N43SN since I bought a > laptop (~2 years). Recently I replaced a motherboard to the new one > (N43SL.413 looks the same as the first one) due to a problem with a > graphi

Re: kernel Oops: 0003 on usbhid_submit_report

2013-08-13 Thread Greg KH
On Mon, Aug 12, 2013 at 01:56:40PM +0200, Andreas Lillebø Holm wrote: > When communicating with AT90USB1287, at random intervals (1/25 boots) > the linux hid_output_field Oopses and kills the communicating thread. > The AT90USB1287 microcontroller uses LUFA library for usb/hid > communication. It

Re: [PATCH v2 0/2] Device tree changes for Tegra30 and Tegra114 USB Host support

2013-08-13 Thread Stephen Warren
On 08/01/2013 09:00 AM, Tuomas Tynkkynen wrote: > Hi all, > > Here's the device tree changes required for USB Host support on Tegra30 and > Tegra114. This enables USB Host on the Cardhu's dock connector port and on the > single built-in A-ports on Dalmore and Beaver. I've applied this series to T

Re: [PATCH] usb: host: add Kconfig option for EHSET

2013-08-13 Thread Alan Stern
On Tue, 13 Aug 2013, Greg Kroah-Hartman wrote: > On Tue, Aug 13, 2013 at 10:07:58AM -0400, Alan Stern wrote: > > On Mon, 12 Aug 2013, Jack Pham wrote: > > > > > commit 9841f37a1c ("usb: ehci: Add support for SINGLE_STEP_SET_FEATURE > > > test of EHSET") added additional code to the EHCI hub drive

URBs active during clear endpoint halt?

2013-08-13 Thread Sarah Sharp
Hi Alan, Do you know if there's a chance that any USB drivers (or userspace) would try to clear an endpoint halt when there are active URBs that have not completed on for the endpoint? I ask because in order to handle the case where userspace wants to reset the toggles with a clear halt control t

Re: About the hibernation feature implementation in dwc3 driver

2013-08-13 Thread Felipe Balbi
Hi, On Mon, Aug 05, 2013 at 03:41:57PM +, Wang, Yu Y wrote: > Hi Balbi, > > Please check the attached logs. The kernel base one kernel3.10. you didn't take the regdump after xHCI :-( I need to check if erst_base is being mirrored to DEPCMDPAR* -- balbi signature.asc Description: Digital

Re: [PATCH 2/2] usb: musb: cppi41: Enable in device-TX mode

2013-08-13 Thread Felipe Balbi
On Tue, Aug 13, 2013 at 01:11:47PM -0500, Bin Liu wrote: > Sebastian, > > On Tue, Aug 13, 2013 at 12:38 PM, Sebastian Andrzej Siewior > wrote: > > Since the musb-gadget code now calls the dma engine properly it is > > possible to enable it for the TX path in device mode. > > AM335x Advisory 1.0.1

Re: [PATCH v2] usb-gadget-audio-file-wake-up-sleep-thread

2013-08-13 Thread Felipe Balbi
Hi, On Mon, Aug 12, 2013 at 09:43:24AM +0800, Qiao Zhou wrote: > On 08/02/2013 03:31 PM, Felipe Balbi wrote: > >Hi, > > > >On Fri, Aug 02, 2013 at 01:15:33PM +0800, Qiao Zhou wrote: > >>On 08/01/2013 06:21 PM, Qiao Zhou wrote: > >>>v2->v1: > >>>stop pcm stream instead of wake up the sleep thread,

[GIT PULL] USB patches for v3.12 merge window

2013-08-13 Thread Felipe Balbi
Hi Greg, Here's my pull request for v3.12 merge window. I know there are a bunch of patches pending in the mailing list but I won't have time to fully review them before merging so I decided that it's best to delay a merge window than it is to cause a bunch of regressions. Oh yeah, the patches un

Re: [GIT PULL] USB patches for v3.12 merge window

2013-08-13 Thread Felipe Balbi
On Tue, Aug 13, 2013 at 02:41:25PM -0500, Felipe Balbi wrote: > Hi Greg, > > Here's my pull request for v3.12 merge window. I know there are a bunch > of patches pending in the mailing list but I won't have time to fully > review them before merging so I decided that it's best to delay a merge > w

  1   2   >