Re: [PATCH 2/7] usb: dwc3: adapt dwc3 core to use Generic PHY Framework

2013-09-16 Thread Roger Quadros
Hi, On 09/16/2013 05:52 AM, Kishon Vijay Abraham I wrote: > On Thursday 12 September 2013 06:49 PM, Roger Quadros wrote: >> On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: >>> Adapted dwc3 core to use the Generic PHY Framework. So for init, exit, >>> power_on and power_off the following APIs

Re: [PATCH 3/7] drivers: phy: usb3/pipe3: Adapt pipe3 driver to Generic PHY Framework

2013-09-16 Thread Roger Quadros
On 09/16/2013 06:01 AM, Kishon Vijay Abraham I wrote: > On Thursday 12 September 2013 04:49 PM, Roger Quadros wrote: >> Hi Kishon, >> >> On 09/02/2013 06:43 PM, Kishon Vijay Abraham I wrote: >>> Adapted omap-usb3 PHY driver to Generic PHY Framework and moved >>> phy-omap-usb3 >>> driver in drivers

Re: [PATCH 2/2] USB : serial : invoke dcd_change ldisc's handler.

2013-09-16 Thread Rodolfo Giometti
On Mon, Sep 16, 2013 at 08:41:00AM +0200, Paul Chavent wrote: > The DCD pin of the serial port can receive a PPS signal. By calling > the port line discipline dcd handle, this patch allow to monitor PPS > through USB serial devices. > > However the performance aren't as good as the uart drivers, s

Re: usbnet transmit path problems

2013-09-16 Thread Oliver Neukum
On Thu, 2013-09-12 at 09:56 +0800, Ming Lei wrote: > On Thu, Sep 12, 2013 at 12:05 AM, David Laight > wrote: > Patches are always welcome, :-) Indeed, I think your patch, if no better alternatives come up soon, should be taken. > > None of this is helping me sort out why netperf udp rr tests w

Re: [PATCH 1/7] usb: dwc3: get "usb_phy" only if the platform indicates the presence of PHY

2013-09-16 Thread Vivek Gautam
Hi, On Thu, Sep 12, 2013 at 6:41 PM, Roger Quadros wrote: > On 09/12/2013 02:26 PM, Vivek Gautam wrote: >> Hi, >> >> >> On Thu, Sep 12, 2013 at 4:34 PM, Roger Quadros wrote: >>> Hi, >>> >>> On 09/12/2013 01:47 PM, Vivek Gautam wrote: On Thu, Sep 12, 2013 at 4:06 PM, Roger Quadros wrote: >

[PATCH] fsl/usb: Resolve PHY_CLK_VLD instability issue for ULPI phy

2013-09-16 Thread Ramneek Mehresh
For controller versions greater than 1.6, setting ULPI_PHY_CLK_SEL bit when USB_EN bit is already set causes instability issues with PHY_CLK_VLD bit. So USB_EN is set only for IP controller version below 1.6 before setting ULPI_PHY_CLK_SEL bit Signed-off-by: Ramneek Mehresh --- drivers/usb/host/

[PATCH v1 1/1] usb: gadget: f_fs: Add support for SuperSpeed Mode

2013-09-16 Thread Manu Gautam
Allow userspace to pass SuperSpeed descriptors and handle them in the driver accordingly. This also requires changing usb_functionfs_descs_head to accommodate ss_count i.e. SuperSpeed Descriptors count. Signed-off-by: Manu Gautam --- drivers/usb/gadget/f_fs.c | 148

[PATCH 0/3] net: usb: cdc_ether: improve telit support and code cleanups

2013-09-16 Thread Fabio Porcedda
Some patches to improve telit modules support and to cleanup the code. Best regards Fabio Porcedda (3): net: usb: cdc_ether: Use wwan interface for Telit modules net: usb: cdc_ether: fix checkpatch errors and warnings net: usb: cdc_ether: use usb.h macros whenever possible drivers/net/usb

[PATCH 3/3] net: usb: cdc_ether: use usb.h macros whenever possible

2013-09-16 Thread Fabio Porcedda
Use USB_DEVICE_AND_INTERFACE_INFO and USB_VENDOR_AND_INTERFACE_INFO macros to reduce boilerplate. Signed-off-by: Fabio Porcedda --- drivers/net/usb/cdc_ether.c | 63 - 1 file changed, 17 insertions(+), 46 deletions(-) diff --git a/drivers/net/usb/cdc_

[PATCH 1/3] net: usb: cdc_ether: Use wwan interface for Telit modules

2013-09-16 Thread Fabio Porcedda
Signed-off-by: Fabio Porcedda Cc: # 3.0+ as far back as it applies cleanly --- drivers/net/usb/cdc_ether.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 03ad4dc..98aef3b 100644 --- a/drivers/net/usb/cdc_ether.c +++ b/driv

[PATCH 2/3] net: usb: cdc_ether: fix checkpatch errors and warnings

2013-09-16 Thread Fabio Porcedda
Signed-off-by: Fabio Porcedda --- drivers/net/usb/cdc_ether.c | 47 +++-- 1 file changed, 20 insertions(+), 27 deletions(-) diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c index 98aef3b..c36b1c3 100644 --- a/drivers/net/usb/cdc_ether

[PATCH V5 1/9] USB: OHCI: make ohci-exynos a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the Samsung OHCI EXYNOS host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar Signed-off-by: Deepak Saxena Acked-by: Alan Stern Acked-by: Jingoo H

[PATCH V5 2/9] USB: OHCI: make ohci-omap a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the TI OHCI OMAP1/2 host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar Signed-off-by: Deepak Saxena Acked-by: Alan Stern Cc: Felipe Balbi Cc:

[PATCH V5 8/9] USB: OHCI: make ohci-ep93xx a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the OHCI EP93XX host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar Signed-off-by: Deepak Saxena Acked-by: Alan Stern Cc: Arnd Bergmann Cc: Greg

[PATCH V5 9/9] USB: OHCI: make ohci-pxa27x a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the OHCI pxa27x/pxa3xx host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar Signed-off-by: Deepak Saxena Acked-by: Alan Stern Cc: Arnd Bergmann

[PATCH V5 4/9] USB: OHCI: make ohci-spear a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the ST OHCI SPEAr host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar Signed-off-by: Deepak Saxena Acked-by: Alan Stern Cc: Viresh Kumar Cc: Arn

[PATCH V5 6/9] USB: OHCI: make ohci-s3c2410 a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the Samsung OHCI S3C24xx/S3C64xx host controller driver from ohci-hcd host code so that it can be built as a separate driver module.This work is part of enabling multi-platform. Signed-off-by: Manjunath Goudar Signed-off-by: Deepak Saxena Acked-by: Alan Stern Reviewed-by: Tomasz Figa

[PATCH V5 5/9] USB: OHCI: make ohci-at91 a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the TI OHCI Atmel host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar Signed-off-by: Deepak Saxena Acked-by: Alan Stern Cc: Arnd Bergmann Cc: G

[PATCH V5 7/9] USB: OHCI: make ohci-nxp a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the OHCI NXP host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Many place function name and struct name started with usb, current scenario replaced usb with ohci for proper namin

[PATCH V5 3/9] USB: OHCI: make ohci-omap3 a separate driver

2013-09-16 Thread Manjunath Goudar
Separate the TI OHCI OMAP3 host controller driver from ohci-hcd host code so that it can be built as a separate driver module. This work is part of enabling multi-platform kernels on ARM. Signed-off-by: Manjunath Goudar Signed-off-by: Deepak Saxena Acked-by: Alan Stern Cc: Anand Gadiyar Cc: F

Re: [PATCH 1/3] net: usb: cdc_ether: Use wwan interface for Telit modules

2013-09-16 Thread Oliver Neukum
On Mon, 2013-09-16 at 11:47 +0200, Fabio Porcedda wrote: > Signed-off-by: Fabio Porcedda > Cc: # 3.0+ as far back as it applies cleanly Acked-by: Oliver Neukum -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majo

Re: [PATCH 2/3] net: usb: cdc_ether: fix checkpatch errors and warnings

2013-09-16 Thread Oliver Neukum
On Mon, 2013-09-16 at 11:47 +0200, Fabio Porcedda wrote: > Signed-off-by: Fabio Porcedda Acked-by: Oliver Neukum -- 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-

[PATCH 1/1] usb: host: fsl-mph-dr-of: Staticize local symbols

2013-09-16 Thread Sachin Kamat
Local symbols used in this file are made static. Signed-off-by: Sachin Kamat Cc: Anatolij Gustschin --- drivers/usb/host/fsl-mph-dr-of.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c index 9e0020d

Re: [PATCH 3/3] net: usb: cdc_ether: use usb.h macros whenever possible

2013-09-16 Thread Oliver Neukum
On Mon, 2013-09-16 at 11:47 +0200, Fabio Porcedda wrote: > Use USB_DEVICE_AND_INTERFACE_INFO and USB_VENDOR_AND_INTERFACE_INFO > macros to reduce boilerplate. > > Signed-off-by: Fabio Porcedda Acked-by: Oliver Neukum -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in t

Re: usbnet transmit path problems

2013-09-16 Thread Ming Lei
On Mon, Sep 16, 2013 at 4:13 PM, Oliver Neukum wrote: > On Thu, 2013-09-12 at 09:56 +0800, Ming Lei wrote: >> On Thu, Sep 12, 2013 at 12:05 AM, David Laight >> wrote: > >> Patches are always welcome, :-) > > Indeed, I think your patch, if no better alternatives come up soon, > should be taken.

[PATCH v4 0/2] usb: implement AMD remote wakeup quirk

2013-09-16 Thread Huang Rui
Hi Greg, Sarah, Alan, The following patches are required to resolve remote wake issues with certain devices. Issue description: If the remote wake is issued from the device in a specific timing condition while the system is entering sleep state then it may cause system to auto wake on subsequent

[PATCH v4 2/2] usb: core: implement AMD remote wakeup quirk

2013-09-16 Thread Huang Rui
The following patch is required to resolve remote wake issues with certain devices. Issue description: If the remote wake is issued from the device in a specific timing condition while the system is entering sleep state then it may cause system to auto wake on subsequent sleep cycle. Root cause:

[PATCH v4 1/2] usb: pci-quirks: refactor AMD quirk to abstract AMD chipset types

2013-09-16 Thread Huang Rui
This patch abstracts out a AMD chipset type which includes southbridge generation and its revision. When os excutes usb_amd_find_chipset_info routine to initialize AMD chipset type, driver will know which kind of chipset is used. This update has below benifits: - Driver is able to confirm which so

[PATCH] usb: reset endpoint driver data when disabled

2013-09-16 Thread Peter Oh
Gadgets endpoint driver data is a criteria to judge that whether the endpoints are in use or not. When gadget gets assigned an endpoint from endpoint list, they check its driver data if the driver data is NULL. If the driver data is not NULL then they regard it as in use. Therefore all of gadgets s

Re: [PATCH v1 1/1] usb: gadget: f_fs: Add support for SuperSpeed Mode

2013-09-16 Thread Jack Pham
Hi Manu, An intern working with us here (thanks Peter!) found a bug. On Mon, Sep 16, 2013 at 03:10:14PM +0530, Manu Gautam wrote: > @@ -1569,7 +1573,20 @@ static int ffs_func_eps_enable(struct ffs_function > *func) > spin_lock_irqsave(&func->ffs->eps_lock, flags); > do { >

Re: [PATCH 0/3] net: usb: cdc_ether: improve telit support and code cleanups

2013-09-16 Thread David Miller
From: Fabio Porcedda Date: Mon, 16 Sep 2013 11:47:49 +0200 > Some patches to improve telit modules support and to cleanup the code. Applied. -- 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:

[PATCH 2/8] usb: chipidea: udc: Consolidate the call of disconnect

2013-09-16 Thread Peter Chen
The udc-core will call gadget's driver->disconnect, so we should avoid calling gadget's disconnect again at ci_udc_stop in case the gadget's unbind free some structs which is still used at gadget's disconnect. Tested-by: Marek Vasut Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c | 1

[PATCH 1/8] usb: host: delete chipidea dependency

2013-09-16 Thread Peter Chen
Now, chipidea host has already depended on USB_EHCI_HCD Acked-by: Alan Stern Signed-off-by: Peter Chen --- drivers/usb/host/Kconfig |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 5be0326..3ebe9ef 100644 --- a

[PATCH 3/8] usb: chipidea: udc: fix the oops after rmmod gadget

2013-09-16 Thread Peter Chen
When we rmmod gadget, the ci->driver needs to be cleared. Otherwise, when we plug in usb cable again, the driver will consider gadget is there, and go to enumeration procedure, but in fact, it was removed. ci_hdrc ci_hdrc.0: Connected to host Unable to handle kernel paging request at virtual addre

[PATCH 4/8] usb: chipidea: Fix memleak for ci->hw_bank.regmap when removal

2013-09-16 Thread Peter Chen
It needs to free ci->hw_bank.regmap explicitly since it is not managed resource. Signed-off-by: Peter Chen --- drivers/usb/chipidea/core.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 9462640..23763dc 100

[PATCH 5/8] usb: chipidea: move platform related things to ci_get_platdata

2013-09-16 Thread Peter Chen
Like vbus, the dr_mode and phy_mode are also got from glue layer's platform data or device node. Signed-off-by: Peter Chen --- drivers/usb/chipidea/core.c | 19 +-- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipide

[PATCH 8/8] usb: chipidea: USB_CHIPIDEA should depend on HAS_DMA

2013-09-16 Thread Peter Chen
From: Geert Uytterhoeven If NO_DMA=y: drivers/built-in.o: In function `dma_set_coherent_mask': include/linux/dma-mapping.h:93: undefined reference to `dma_supported' Reviewed-and-tested-by: Peter Chen Signed-off-by: Geert Uytterhoeven --- drivers/usb/chipidea/Kconfig |2 +- 1 files chang

[PATCH 0/8] Misc peding chipidea patches

2013-09-16 Thread Peter Chen
Hi Greg, Below are pending misc chipidea patches, some of them have already reviewed. The similiar Geert's patch for gadget has already at usb-next. For mine, the 1,3,4 are acked by Alex. http://marc.info/?l=linux-usb&m=137776283824866&w=2 The 7 is acked by Michael Grzeschik . Geert Uytterhoeven

[PATCH 7/8] usb: chipidea: udc: free pending TD at removal procedure

2013-09-16 Thread Peter Chen
There is a pending TD which is not freed after request finishes, we do this due to a controller bug. This TD needs to be freed when the driver is removed. It prints below error message when unload chipidea driver at current code: "ci_hdrc ci_hdrc.0: dma_pool_destroy ci_hw_td, b0001000 busy" It indi

[PATCH 6/8] usb: chipidea: imx: Add usb_phy_shutdown at probe's error path

2013-09-16 Thread Peter Chen
If not, the PHY will be active even the controller is not in use. We find this issue due to the PHY's clock refcount is not correct due to -EPROBE_DEFER return after phy's init. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci_hdrc_imx.c |7 +-- 1 files changed, 5 insertions(+), 2 d