Re: Gadget regression with enabling of MUSB babble interrupt handling

2014-06-20 Thread Tony Lindgren
* George Cherian george.cher...@ti.com [140619 20:43]: On 6/19/2014 4:54 PM, Tony Lindgren wrote: * Daniel Mack dan...@zonque.org [140619 03:51]: On 06/19/2014 12:43 PM, Tony Lindgren wrote: * Daniel Mack dan...@zonque.org [140619 03:38]: On 06/19/2014 12:31 PM, Tony Lindgren wrote: * Daniel

move ZTE CDMA device pid from zte_ev.c back to option.c and modify a parameter in zte_ev.ko

2014-06-20 Thread 刘磊
dear linuxfoundation:     I'm very sorry has some problems in before's submit. now i divided the problems in two patches.     patch1:move ZTE CDMA device pid from zte_ev.c back to option.c.     reason: the pid of 0xfffe device can't re-connect succusfull when driven by zte_ev, but work fine

[GIT PULL] USB fixes for v3.16-rc2

2014-06-20 Thread Felipe Balbi
Hi Greg, Here's my first set of fixes for this -rc cycle. Please consider merging to your usb-linus branch. cheers The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f: Linux 3.16-rc1 (2014-06-15 17:45:28 -1000) are available in the git repository at:

Re: [usb resume regression] in 3.16-rc1

2014-06-20 Thread Alan Stern
On Fri, 20 Jun 2014, Jörg Otte wrote: 2014-06-19 19:35 GMT+02:00 Alan Stern st...@rowland.harvard.edu: On Thu, 19 Jun 2014, Jörg Otte wrote: I don't know how to do this. To enable dynamic debugging (as root): echo 'module usbcore =p' /sys/kernel/debug/dynamic_debug/control

[PATCH 02/15] usb: dwc2: add necessary function declares for dual role

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com There are functions in gadget driver that needs to get exported so that the common interrupt handler can call. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/core.h | 52 +++

[PATCH 00/15] usb: dwc2: Add support for dual-role

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Hi, This patch series combines the dwc2 host and gadget driver into a single dual-role driver. I have tested this on the SOCFPGA platform. I compile tested for bcm2835_defconfig and a PCI platform. I split up the patches to make the review a bit easier, but

[PATCH 01/15] usb: dwc2: Moves s3c_hsotg gadget data structure into dwc2_hsotg

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Adds the gadget data structure and appropriate data structure pointers to the common dwc2_hsotg data structure. This is needed so that the dwc2_hsotg data structure can be used by the hcd and gadget drivers. Signed-off-by: Dinh Nguyen dingu...@altera.com ---

[PATCH 04/15] usb: dwc2: gadget: Change the gadget probe function into gadget_init

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com gadget_init() will get called from the platform probe function. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/gadget.c | 144 + 1 file changed, 55 insertions(+), 89 deletions(-) diff --git

[PATCH 07/15] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Since the dwc2 hcd driver is currently not looking for a clock node during init, we should not completely fail if there isn't a clock provided. Add a check for a valid clock before calling clock functions. Signed-off-by: Dinh Nguyen dingu...@altera.com ---

[PATCH 13/15] usb: dwc2: check that the host work queue is valid

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com The Host workqueue will not get initialized if the driver is configured for peripheral mode only. Thus we need to check for wq_otg before calling queue_work(). Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/core_intr.c |3 ++- 1

[PATCH 15/15] usb: dwc2: Update Kconfig to support dual-role

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Update DWC2 kconfig and makefile to support dual-role mode. The platform file will always get compiled for the case where the controller is directly connected to the CPU. So for loadable modules, only dwc2.ko is needed. Signed-off-by: Dinh Nguyen

[PATCH 11/15] usb: dwc2: Add suspend/resume for gadget

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Move suspend/resume code to common platform code. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/gadget.c |4 ++-- drivers/usb/dwc2/platform.c | 23 +++ 2 files changed, 25 insertions(+), 2 deletions(-) diff

[PATCH 14/15] usb: dwc2: pci: Update pci portion of the dwc2 driver

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Update pci portion of the dwc2 driver to call the appropriate init functions for host, gadget, and dual-role. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/pci.c | 28 ++-- 1 file changed, 26 insertions(+), 2

[PATCH 05/15] usb: dwc2: Move gadget interrupts to common interrupt handler

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Update dwc2_handle_common_intr() to handle both hcd and gadget interrupts. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/core_intr.c | 116 +- drivers/usb/dwc2/gadget.c| 188

[PATCH 08/15] usb: dwc2: Add the appropriate init calls in platform code

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Add the proper init calls for either host, gadget or both in platform.c Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/gadget.c |6 ++ drivers/usb/dwc2/hcd.c |1 + drivers/usb/dwc2/platform.c | 29

[PATCH 12/15] usb: dwc2: move dwc2_set_all_params to platform code

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Moves dwc2_set_all_params() to core.c so that it's shared between host and gadget. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/core.c | 15 +++ drivers/usb/dwc2/hcd.c | 16 2 files changed, 15

[PATCH 10/15] usb: dwc2: initialize the spin_lock for both host and gadget

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Move spin_lock_init to common location for both host and gadget. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/hcd.c |1 - drivers/usb/dwc2/platform.c |1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 09/15] usb: dwc2: move allocation of core_params

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Move the allocation of the core_params to a share place for use by both host and gadget. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/hcd.c |5 - drivers/usb/dwc2/platform.c |4 2 files changed, 4 insertions(+),

[PATCH 06/15] usb: dwc2: gadget: remove gadget module defines

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Delete module defines in gadget.c. Most of this should be handled in the dwc2 platform code. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/gadget.c | 28 drivers/usb/dwc2/platform.c |1 + 2 files

[RESEND PATCH 01/15] usb: dwc2: Moves s3c_hsotg gadget data structure into dwc2_hsotg

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Adds the gadget data structure and appropriate data structure pointers to the common dwc2_hsotg data structure. This is needed so that the dwc2_hsotg data structure can be used by the hcd and gadget drivers. Signed-off-by: Dinh Nguyen dingu...@altera.com ---

[RESEND PATCH 05/15] usb: dwc2: Move gadget interrupts to common interrupt handler

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Update dwc2_handle_common_intr() to handle both hcd and gadget interrupts. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/core_intr.c | 116 +- drivers/usb/dwc2/gadget.c| 188

[RESEND PATCH 04/15] usb: dwc2: gadget: Change the gadget probe function into gadget_init

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com gadget_init() will get called from the platform probe function. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/gadget.c | 144 + 1 file changed, 55 insertions(+), 89 deletions(-) diff --git

[RESEND PATCH 02/15] usb: dwc2: add necessary function declares for dual role

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com There are functions in gadget driver that needs to get exported so that the common interrupt handler can call. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/core.h | 52 +++

[RESEND PATCH 06/15] usb: dwc2: gadget: remove gadget module defines

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Delete module defines in gadget.c. Most of this should be handled in the dwc2 platform code. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/gadget.c | 28 drivers/usb/dwc2/platform.c |1 + 2 files

[RESEND PATCH 11/15] usb: dwc2: Add suspend/resume for gadget

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Move suspend/resume code to common platform code. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/gadget.c |4 ++-- drivers/usb/dwc2/platform.c | 23 +++ 2 files changed, 25 insertions(+), 2 deletions(-) diff

[RESEND PATCH 08/15] usb: dwc2: Add the appropriate init calls in platform code

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Add the proper init calls for either host, gadget or both in platform.c Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/gadget.c |6 ++ drivers/usb/dwc2/hcd.c |1 + drivers/usb/dwc2/platform.c | 29

[RESEND PATCH 07/15] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Since the dwc2 hcd driver is currently not looking for a clock node during init, we should not completely fail if there isn't a clock provided. Add a check for a valid clock before calling clock functions. Signed-off-by: Dinh Nguyen dingu...@altera.com ---

[RESEND PATCH 13/15] usb: dwc2: check that the host work queue is valid

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com The Host workqueue will not get initialized if the driver is configured for peripheral mode only. Thus we need to check for wq_otg before calling queue_work(). Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/core_intr.c |3 ++- 1

[RESEND PATCH 09/15] usb: dwc2: move allocation of core_params

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Move the allocation of the core_params to a share place for use by both host and gadget. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/hcd.c |5 - drivers/usb/dwc2/platform.c |4 2 files changed, 4 insertions(+),

[RESEND PATCH 15/15] usb: dwc2: Update Kconfig to support dual-role

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Update DWC2 kconfig and makefile to support dual-role mode. The platform file will always get compiled for the case where the controller is directly connected to the CPU. So for loadable modules, only dwc2.ko is needed. Signed-off-by: Dinh Nguyen

[RESEND PATCH 12/15] usb: dwc2: move dwc2_set_all_params to platform code

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Moves dwc2_set_all_params() to core.c so that it's shared between host and gadget. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/core.c | 15 +++ drivers/usb/dwc2/hcd.c | 16 2 files changed, 15

[RESEND PATCH 14/15] usb: dwc2: pci: Update pci portion of the dwc2 driver

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Update pci portion of the dwc2 driver to call the appropriate init functions for host, gadget, and dual-role. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/pci.c | 28 ++-- 1 file changed, 26 insertions(+), 2

[RESEND PATCH 00/15] usb: dwc2: Add support for dual-role

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Apologies for the noise, but I got Paul Zimmerman's address wrong on the first send. Hi, This patch series combines the dwc2 host and gadget driver into a single dual-role driver. I have tested this on the SOCFPGA platform. I compile tested for

[RESEND PATCH 10/15] usb: dwc2: initialize the spin_lock for both host and gadget

2014-06-20 Thread dinguyen
From: Dinh Nguyen dingu...@altera.com Move spin_lock_init to common location for both host and gadget. Signed-off-by: Dinh Nguyen dingu...@altera.com --- drivers/usb/dwc2/hcd.c |1 - drivers/usb/dwc2/platform.c |1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [usb resume regression] in 3.16-rc1

2014-06-20 Thread Jörg Otte
2014-06-20 16:57 GMT+02:00 Alan Stern st...@rowland.harvard.edu: On Fri, 20 Jun 2014, Jörg Otte wrote: 2014-06-19 19:35 GMT+02:00 Alan Stern st...@rowland.harvard.edu: On Thu, 19 Jun 2014, Jörg Otte wrote: I don't know how to do this. To enable dynamic debugging (as root):

[PATCH] usb: host: xhci-plat: use devm_functions

2014-06-20 Thread Himangi Saraogi
This patch introduces the use of managed interface devm_ioremap_resource for ioremap_nocache and request_mem_region and removes the corresponding free functions in the probe and remove functions. Signed-off-by: Himangi Saraogi himangi...@gmail.com --- drivers/usb/host/xhci-plat.c | 25

Re: [PATCH] usb: host: xhci-plat: use devm_functions

2014-06-20 Thread Felipe Balbi
Hi, On Fri, Jun 20, 2014 at 10:18:53PM +0530, Himangi Saraogi wrote: This patch introduces the use of managed interface devm_ioremap_resource for ioremap_nocache and request_mem_region and removes the corresponding free functions in the probe and remove functions. Signed-off-by: Himangi

Re: [PATCH v1 6/9] usb: xhci: Add NVIDIA Tegra XHCI host-controller driver

2014-06-20 Thread Julius Werner
+static const struct hc_driver tegra_xhci_hc_driver = { + .description = tegra-xhci-hcd, + .product_desc = Tegra xHCI Host Controller, + .hcd_priv_size =sizeof(struct xhci_hcd *), + + /* +* generic hardware linkage +*/ +

[PATCH] usb: host: xhci-plat: use devm_functions

2014-06-20 Thread Himangi Saraogi
This patch introduces the use of managed interface devm_ioremap_resource for ioremap_nocache and request_mem_region and removes the corresponding free functions in the probe and remove functions. Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr ---

Re: [PATCH] usb: host: xhci-plat: use devm_functions

2014-06-20 Thread Felipe Balbi
On Fri, Jun 20, 2014 at 11:11:23PM +0530, Himangi Saraogi wrote: This patch introduces the use of managed interface devm_ioremap_resource for ioremap_nocache and request_mem_region and removes the corresponding free functions in the probe and remove functions. Signed-off-by: Himangi Saraogi

Re: [PATCH] usb: host: xhci-plat: use devm_functions

2014-06-20 Thread Sergei Shtylyov
Hello. On 06/20/2014 08:48 PM, Himangi Saraogi wrote: This patch introduces the use of managed interface devm_ioremap_resource for ioremap_nocache and request_mem_region and removes the corresponding free functions in the probe and remove functions. Signed-off-by: Himangi Saraogi

[GIT PULL] USB driver fixes for 3.16-rc2

2014-06-20 Thread Greg KH
The following changes since commit 7171511eaec5bf23fb06078f59784a3a0626b38f: Linux 3.16-rc1 (2014-06-15 17:45:28 -1000) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.16-rc2 for you to fetch changes up to

Re: [GIT PULL] USB fixes for v3.16-rc2

2014-06-20 Thread Greg KH
On Fri, Jun 20, 2014 at 09:44:37AM -0500, Felipe Balbi wrote: Hi Greg, Here's my first set of fixes for this -rc cycle. Please consider merging to your usb-linus branch. I'll do it after Linus picks up my last round of changes I sent him. thanks, greg k-h -- To unsubscribe from this list:

[PATCH] usb: musb: ux500: use devm_ functions

2014-06-20 Thread Himangi Saraogi
This patch introduces the use of managed interfaces for clk_get and kzalloc and removes the corresponding free function calls in the probe and remove functions. Signed-off-by: Himangi Saraogi himangi...@gmail.com Acked-by: Julia Lawall julia.law...@lip6.fr --- drivers/usb/musb/ux500.c | 28

[PATCH 2/2] drivers/net/usb/asix_devices.c: inline ax88772_unbind

2014-06-20 Thread Fabian Frederick
inline this one line function used in driver_info structure Cc: David S. Miller da...@davemloft.net Cc: Emil Goode emilgo...@gmail.com Cc: linux-usb@vger.kernel.org Signed-off-by: Fabian Frederick f...@skynet.be --- drivers/net/usb/asix_devices.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 1/2] drivers/net/usb/asix_devices.c: remove null test before kfree

2014-06-20 Thread Fabian Frederick
Fix checkpatch warning: WARNING: kfree(NULL) is safe this check is probably not required Cc: David S. Miller da...@davemloft.net Cc: Emil Goode emilgo...@gmail.com Cc: linux-usb@vger.kernel.org Signed-off-by: Fabian Frederick f...@skynet.be --- drivers/net/usb/asix_devices.c | 3 +-- 1 file

Re: Hardware bug in Intel USB-2 hub?

2014-06-20 Thread Alan Stern
On Sun, 15 Jun 2014, Toralf Förster wrote: Toralf and Adam: Does this patch (for 3.14 or 3.15) fix the problems you observed? No, neither for 3.14.7 nor for 3.15. USB wakeup signals from hibernation don't work, the power button does. Wakeup from suspend still works (unlike the

Re: usb audio breaks ohci-pci

2014-06-20 Thread Dennis New
On Thu, 19 Jun 2014 17:44:39 -0400 (EDT), Alan Stern wrote: On Thu, 19 Jun 2014, Dennis New wrote: On Thu, 19 Jun 2014 17:03:55 -0400 (EDT), Alan Stern wrote: On Tue, 17 Jun 2014, Dennis New wrote: On Thu, 12 Jun 2014 10:20:54 -0400 (EDT), Alan Stern wrote: Dennis and Matteo:

Re: usb audio breaks ohci-pci

2014-06-20 Thread Dennis New
On Fri, 20 Jun 2014 17:33:14 -0400, Dennis New wrote: On Thu, 19 Jun 2014 17:44:39 -0400 (EDT), Alan Stern wrote: On Thu, 19 Jun 2014, Dennis New wrote: On Thu, 19 Jun 2014 17:03:55 -0400 (EDT), Alan Stern wrote: On Tue, 17 Jun 2014, Dennis New wrote: On Thu, 12 Jun 2014

usb: musb: Ensure that cppi41 timer gets armed on premature DMA TX irq

2014-06-20 Thread Thomas Gleixner
Some TI chips raise the DMA complete interrupt before the actual transfer has been completed. The code tries to busy wait for a few microseconds and if that fails it arms an hrtimer to recheck. So far so good, but that has the following issue: CPU 0 CPU1

RE: [RESEND PATCH 00/15] usb: dwc2: Add support for dual-role

2014-06-20 Thread Paul Zimmerman
From: dingu...@altera.com [mailto:dingu...@altera.com] Sent: Friday, June 20, 2014 8:35 AM From: Dinh Nguyen dingu...@altera.com Apologies for the noise, but I got Paul Zimmerman's address wrong on the first send. Hi, This patch series combines the dwc2 host and gadget driver into a

Re: [PATCH 2/2] drivers/net/usb/asix_devices.c: inline ax88772_unbind

2014-06-20 Thread Sergei Shtylyov
Hello. On 06/21/2014 12:40 AM, Fabian Frederick wrote: inline this one line function used in driver_info structure Cc: David S. Miller da...@davemloft.net Cc: Emil Goode emilgo...@gmail.com Cc: linux-usb@vger.kernel.org Signed-off-by: Fabian Frederick f...@skynet.be ---

move ZTE CDMA device pid from zte_ev.c back to option.c

2014-06-20 Thread 刘磊
dear linuxfoundation: I'm very sorry, i think i had been according to the Documentation/SubmittingPatches to submit. The pid of 0xfffe device re-connect network failed when driven by zte_ev, but work fine when driven by option if we move the pid 0xfffe to option. in order to

uas regression in 3.15 with ASMedia 2105 SATA bridge / ASMT1051

2014-06-20 Thread Jonathan
After upgrading to kernel 3.15 my USB 3.0 HDD dock no longer works. In fact, as soon as I connect and power up a drive with the uas module loaded, I get a hard lockup and have to restart the system. Without the uas module loaded, the dock is detected but the drive is not, rendering it unusable.