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 whe

[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: git://git.kern

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 : > > 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 > > echo

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

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

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen 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 each individual pat

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen 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 --- drivers/usb/dwc2/core.h | 10 ++

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

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

[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 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 --- drivers/usb/dwc2/gadget.c | 15 ++

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen 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 --- drivers/usb/dwc2/core_intr.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen 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 --- drivers/usb/dwc2/Kconfig

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

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

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

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

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen Update dwc2_handle_common_intr() to handle both hcd and gadget interrupts. Signed-off-by: Dinh Nguyen --- drivers/usb/dwc2/core_intr.c | 116 +- drivers/usb/dwc2/gadget.c| 188 -- 2 files changed, 114 inser

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

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

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

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

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

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

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

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

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen Delete module defines in gadget.c. Most of this should be handled in the dwc2 platform code. Signed-off-by: Dinh Nguyen --- drivers/usb/dwc2/gadget.c | 28 drivers/usb/dwc2/platform.c |1 + 2 files changed, 1 insertion(+), 28 deletions(-)

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen 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 --- drivers/usb/dwc2/core.h | 10 ++

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen Update dwc2_handle_common_intr() to handle both hcd and gadget interrupts. Signed-off-by: Dinh Nguyen --- drivers/usb/dwc2/core_intr.c | 116 +- drivers/usb/dwc2/gadget.c| 188 -- 2 files changed, 114 inser

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

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

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

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

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen Delete module defines in gadget.c. Most of this should be handled in the dwc2 platform code. Signed-off-by: Dinh Nguyen --- drivers/usb/dwc2/gadget.c | 28 drivers/usb/dwc2/platform.c |1 + 2 files changed, 1 insertion(+), 28 deletions(-)

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

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

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

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

[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 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 --- drivers/usb/dwc2/gadget.c | 15 ++

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen 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 --- drivers/usb/dwc2/core_intr.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(

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

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

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen 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 --- drivers/usb/dwc2/Kconfig

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

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

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

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

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

2014-06-20 Thread dinguyen
From: Dinh Nguyen 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 bcm2835_defconfig and a PCI plat

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

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

Re: 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 Dan Williams
On Fri, 2014-06-20 at 18:30 +0800, 刘磊 wrote: > 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-conn

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 : > On Fri, 20 Jun 2014, Jörg Otte wrote: > >> 2014-06-19 19:35 GMT+02:00 Alan Stern : >> > 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' >/s

[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 --- drivers/usb/host/xhci-plat.c | 25 + 1 fi

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 Acked-by: Julia Lawall --- drivers/usb/host/xhci-plat.c | 24 ---

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 Sara

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 --- driv

[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 32b36eeae6a859670d2

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 lis

[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 Acked-by: Julia Lawall --- drivers/usb/musb/ux500.c | 28 ++-- 1 file changed,

[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" Cc: Emil Goode Cc: linux-usb@vger.kernel.org Signed-off-by: Fabian Frederick --- drivers/net/usb/asix_devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/asix_devices.c b

[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" Cc: Emil Goode Cc: linux-usb@vger.kernel.org Signed-off-by: Fabian Frederick --- drivers/net/usb/asix_devices.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d

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 s

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: > > > > > D

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

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 start_ne

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 > > 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 >

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" Cc: Emil Goode Cc: linux-usb@vger.kernel.org Signed-off-by: Fabian Frederick --- drivers/net/usb/asix_devices.c | 2 +- 1 file changed, 1 insertion(+

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 re-connect

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.