[PATCH v4 02/20] usb: dwc3: add a flag to check if it is FPGA board

2014-10-30 Thread Huang Rui
Some chip vendor is on pre-silicon phase, which needs to use the simulation board. It should have the same product and vendor id with the true SoC, but might have some minor different configurations. Below thread discussion proposes to find a method to distinguish between simulation board and SoC.

[PATCH v3 0/4] usb: renesas_usbhs: fixes this driver in gadget mode (part2)

2014-10-30 Thread Yoshihiro Shimoda
If we tested this driver as gadget, some issues below happened: - Oops happened if g_audio. - A usb enumeration may fail if we do insmod during connected the usb cable. - A transaction will not finish if g_zero. - A usb enumeration may fail after we re-connected the usb cable. This patch seria

[PATCH v3 2/4] usb: renesas_usbhs: gadget: fix the behavior of pullup

2014-10-30 Thread Yoshihiro Shimoda
From: Takeshi Kihara This patch fixes an issue that this driver always enable the D+ pullup after it detected the VBUS connection even though this usb controller can control the D+ pullup timing by software. So, this driver should enable the D+ pullup after a gadget driver called usb_gadget_conne

[PATCH v3 1/4] usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable()

2014-10-30 Thread Yoshihiro Shimoda
From: Kazuya Mizuguchi This patch fixes an issue that the NULL pointer dereference happens when we uses g_audio driver. Since the g_audio driver will call usb_ep_disable() in afunc_set_alt() before it calls usb_ep_enable(), the uep->pipe of renesas usbhs driver will be NULL. So, this patch adds a

[PATCH v3 3/4] usb: renesas_usbhs: fix the timing of dcp_control_transfer_done

2014-10-30 Thread Yoshihiro Shimoda
According to the datasheet, this driver should clear the INTSTS0.CTRT bit before this controller detects the next stage transition. Otherwise, the driver may not be able to clear the bit after the controller went to the next stage transition. After that, the driver will not be able to clear the INT

[PATCH v3 4/4] usb: renesas_usbhs: fix usbhs_pipe_clear() for DCP PIPE

2014-10-30 Thread Yoshihiro Shimoda
Since the DCPCTR doesn't have the ACLRM bit, the usbus_pipe_clear() should not call the usbhsp_pipectrl_set() with ACLRM. So, this patch fixes this issue to add the usbhs_fifo_clear_dcp() in fifo.c because the controller needs the CFIFO to clear the the DCP PIPE. Signed-off-by: Yoshihiro Shimoda

Re: [PATCH v4 01/20] usb: dwc3: enable hibernation if to be supported

2014-10-30 Thread Arnd Bergmann
On Thursday 30 October 2014 18:08:26 Huang Rui wrote: > It enables hibernation if the function is set in coreConsultant. > > Suggested-by: Felipe Balbi > Signed-off-by: Huang Rui > Signed-off-by: Felipe Balbi > Something went wrong with the Signed-off-by lines here. You should never add some

[PATCH 1/6] usb: chipidea: setup ci_hdrc_platform_data in core driver

2014-10-30 Thread Antoine Tenart
Hello, This series introduce the ci_hdrc_get_platdata function to help setting up the ChipIdea internal ci_hdrc_platform_data structure. This helps avoiding duplicating code. This series comes from a duscission on Berlin's USB pacthes where it was asked to move the PHY phandle handling in the Chi

[PATCH 5/6] usb: chipidea: use ci_hdrc_get_platdata in ci_hdrc_zevio

2014-10-30 Thread Antoine Tenart
Use the newly introduced ci_hdrc_get_platdata function to help setup the chipidea internal ci_hdrc_platform_data structure. Signed-off-by: Antoine Tenart --- drivers/usb/chipidea/ci_hdrc_zevio.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/usb/chipidea/ci_h

[PATCH 4/6] usb: chipidea: use ci_hdrc_get_platdata in ci_hdrc_pci

2014-10-30 Thread Antoine Tenart
Use the newly introduced ci_hdrc_get_platdata function to help setup the chipidea internal ci_hdrc_platform_data structure. Signed-off-by: Antoine Tenart --- drivers/usb/chipidea/ci_hdrc_pci.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/c

[PATCH 1/6] usb: chipidea: add a core function to setup ci_hdrc_platform_data

2014-10-30 Thread Antoine Tenart
Add a function into the chipidea core to help drivers setup the internal ci_hdrc_platform_data structure. This helps not duplicating common code. The ci_hdrc_get_platdata function only setup non filled members of the structure so that is is possible to give an already filled one. This is what the

[PATCH 6/6] usb: chipidea: remove obsolete ci_get_platdata function

2014-10-30 Thread Antoine Tenart
The addition of the ci_hdrc_get_platdata function makes the use of ci_get_platdata obsolete. Remove it. Signed-off-by: Antoine Tenart --- drivers/usb/chipidea/core.c | 41 - 1 file changed, 41 deletions(-) diff --git a/drivers/usb/chipidea/core.c b/driver

[PATCH 2/6] usb: chipidea: use ci_hdrc_get_platdata in ci_hdrc_imx

2014-10-30 Thread Antoine Tenart
Use the newly introduced ci_hdrc_get_platdata function to help setup the chipidea internal ci_hdrc_platform_data structure. Signed-off-by: Antoine Tenart --- drivers/usb/chipidea/ci_hdrc_imx.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/usb/chipidea

[PATCH 3/6] usb: chipidea: use ci_hdrc_get_platdata in ci_hdrc_msm

2014-10-30 Thread Antoine Tenart
Use the newly introduced ci_hdrc_get_platdata function to help setup the chipidea internal ci_hdrc_platform_data structure. Signed-off-by: Antoine Tenart --- drivers/usb/chipidea/ci_hdrc_msm.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/usb/chipidea/ci_

Re: [PATCH v4 01/20] usb: dwc3: enable hibernation if to be supported

2014-10-30 Thread Huang Rui
On Thu, Oct 30, 2014 at 12:35:56PM +0100, Arnd Bergmann wrote: > On Thursday 30 October 2014 18:08:26 Huang Rui wrote: > > It enables hibernation if the function is set in coreConsultant. > > > > Suggested-by: Felipe Balbi > > Signed-off-by: Huang Rui > > Signed-off-by: Felipe Balbi > > > > S

Re: [PATCH 1/6] usb: chipidea: setup ci_hdrc_platform_data in core driver

2014-10-30 Thread Antoine Tenart
On Thu, Oct 30, 2014 at 12:36:41PM +0100, Antoine Tenart wrote: > Hello, > > This series introduce the ci_hdrc_get_platdata function to help setting up the > ChipIdea internal ci_hdrc_platform_data structure. This helps avoiding > duplicating code. > > This series comes from a duscission on Berli

Re: [PATCH] USB: kobil_sct: Remove unused transfer buffer allocs

2014-10-30 Thread Johan Hovold
Hi Peter, Forgot to reply to this one. On Wed, Oct 22, 2014 at 07:40:20AM -0400, Peter Hurley wrote: > On 10/19/2014 01:12 PM, Johan Hovold wrote: > > [ +CC: Jiri, Alan, linux-serial ] > > > > On Thu, Oct 16, 2014 at 02:09:29PM -0400, Peter Hurley wrote: > >> On 10/16/2014 01:59 PM, Peter Hurley

Re: [PATCH] USB: kobil_sct: Remove unused transfer buffer allocs

2014-10-30 Thread Peter Hurley
On 10/30/2014 08:08 AM, Johan Hovold wrote: > Hi Peter, > > Forgot to reply to this one. > > On Wed, Oct 22, 2014 at 07:40:20AM -0400, Peter Hurley wrote: >> On 10/19/2014 01:12 PM, Johan Hovold wrote: >>> [ +CC: Jiri, Alan, linux-serial ] >>> >>> On Thu, Oct 16, 2014 at 02:09:29PM -0400, Peter H

Re: [PATCH RESEND V4 2/9] mailbox: Add NVIDIA Tegra XUSB mailbox driver

2014-10-30 Thread Thierry Reding
On Wed, Oct 29, 2014 at 11:02:36AM -0700, Andrew Bresticker wrote: [...] > > Maybe something like this patch would be more correct in handling > > this: > > > > diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c > > index afcb430508ec..85691a7d8ca6 100644 > > --- a/drivers/mailbox/m

Re: [PATCH usb 00/32] cleanup on resource check

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 09:08:45AM +0530, Varka Bhadram wrote: > On 10/30/2014 09:05 AM, Varka Bhadram wrote: > >Hi Balbi, > > > >On 10/30/2014 08:13 AM, Felipe Balbi wrote: > > > >>Hi, > >> > >>On Thu, Oct 30, 2014 at 06:42:08AM +0530, Varka Bhadram wrote: > >>>On Thursday 30 October 2014 02:43 AM

Re: [PATCH RESEND V4 4/9] pinctrl: tegra-xusb: Add USB PHY support

2014-10-30 Thread Thierry Reding
On Wed, Oct 29, 2014 at 12:43:36PM -0700, Andrew Bresticker wrote: > >> diff --git a/drivers/pinctrl/pinctrl-tegra-xusb.c > >> b/drivers/pinctrl/pinctrl-tegra-xusb.c [...] > >> + > >> + for (i = 0; i < TEGRA_XUSB_USB3_PHYS; i++) { > >> + if (phy == padctl->phys[TEGRA_XUSB_PADCTL_US

Re: [PATCH RESEND V4 5/9] of: Add NVIDIA Tegra xHCI controller binding

2014-10-30 Thread Thierry Reding
On Wed, Oct 29, 2014 at 09:37:14AM -0700, Andrew Bresticker wrote: > On Wed, Oct 29, 2014 at 2:43 AM, Thierry Reding > wrote: > > On Tue, Oct 28, 2014 at 03:27:50PM -0700, Andrew Bresticker wrote: > > [...] > >> diff --git > >> a/Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-xusb-padc

Re: [PATCHv6 1/8] usb: dwc2: Update the gadget driver to use common dwc2_hsotg structure

2014-10-30 Thread Felipe Balbi
On Tue, Oct 28, 2014 at 06:25:42PM -0500, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Adds the gadget data structure and appropriate data structure pointers > to the common dwc2_hsotg data structure. To keep the driver data > dereference code looking clean, the gadget variable d

Re: [PATCHv6 2/8] usb: dwc2: Move gadget probe function into platform code

2014-10-30 Thread Felipe Balbi
On Tue, Oct 28, 2014 at 06:25:43PM -0500, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > This patch will aggregate the probing of gadget/hcd driver into platform.c. > The gadget probe funtion is converted into gadget_init that is now only > responsible for gadget only initializatio

Re: [PATCHv6 4/8] usb: dwc2: Update common interrupt handler to call gadget interrupt handler

2014-10-30 Thread Felipe Balbi
Hi, On Tue, Oct 28, 2014 at 06:25:45PM -0500, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Make dwc2_handle_common_intr call the gadget interrupt function when operating > in peripheral mode. Remove the spinlock functions in s3c_hsotg_irq as > dwc2_handle_common_intr() already h

Re: [PATCHv6 5/8] usb: dwc2: Add call_gadget functions for perpheral mode interrupts

2014-10-30 Thread Felipe Balbi
On Tue, Oct 28, 2014 at 06:25:46PM -0500, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > Update the dwc2 wakeup and suspend interrupt functions to use call_gadget > when the IP is in peripheral mode. it seems like you're actually fixing a bug here. Those calls weren't there before

Re: [PATCHv6 6/8] usb: dwc2: gadget: Do not fail probe if there isn't a clock node

2014-10-30 Thread Felipe Balbi
Hi, On Tue, Oct 28, 2014 at 06:25:47PM -0500, dingu...@opensource.altera.com wrote: > 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. > For dual-role mode, we will only fail in

Re: [PATCH v4 01/20] usb: dwc3: enable hibernation if to be supported

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 12:35:56PM +0100, Arnd Bergmann wrote: > On Thursday 30 October 2014 18:08:26 Huang Rui wrote: > > It enables hibernation if the function is set in coreConsultant. > > > > Suggested-by: Felipe Balbi > > Signed-off-by: Huang Rui > > Signed-off-by: Felipe Balbi > > > > S

Re: [PATCH v3 1/4] usb: renesas_usbhs: gadget: fix NULL pointer dereference in ep_disable()

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 07:30:16PM +0900, Yoshihiro Shimoda wrote: > From: Kazuya Mizuguchi > > This patch fixes an issue that the NULL pointer dereference happens > when we uses g_audio driver. Since the g_audio driver will call > usb_ep_disable() in afunc_set_alt() before it calls usb_ep_enable

Re: [PATCHv6 8/8] usb: dwc2: move usb_disabled() call to host driver only

2014-10-30 Thread Felipe Balbi
On Wed, Oct 29, 2014 at 08:35:24AM -0500, Dinh Nguyen wrote: > > > On 10/28/14, 8:26 PM, Paul Zimmerman wrote: > >> From: dingu...@opensource.altera.com > >> [mailto:dingu...@opensource.altera.com] > >> Sent: Tuesday, October 28, 2014 4:26 PM > >> > >> Now that platform.c will get built for both

Re: [PATCH v4 01/20] usb: dwc3: enable hibernation if to be supported

2014-10-30 Thread Arnd Bergmann
On Thursday 30 October 2014 09:08:32 Felipe Balbi wrote: > On Thu, Oct 30, 2014 at 12:35:56PM +0100, Arnd Bergmann wrote: > > On Thursday 30 October 2014 18:08:26 Huang Rui wrote: > > > It enables hibernation if the function is set in coreConsultant. > > > > > > Suggested-by: Felipe Balbi > > > S

Re: [PATCH v4 01/20] usb: dwc3: enable hibernation if to be supported

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 03:14:17PM +0100, Arnd Bergmann wrote: > On Thursday 30 October 2014 09:08:32 Felipe Balbi wrote: > > On Thu, Oct 30, 2014 at 12:35:56PM +0100, Arnd Bergmann wrote: > > > On Thursday 30 October 2014 18:08:26 Huang Rui wrote: > > > > It enables hibernation if the function is

Re: [PATCH] USB: simple: add Google simple serial SubClass support

2014-10-30 Thread Greg Kroah-Hartman
On Wed, Oct 29, 2014 at 02:21:56PM -0700, Anton Staaf wrote: > Add support for Google devices that export simple serial > interfaces using the vendor specific SubClass/Protocol pair > 0x50/0x01. > > Signed-off-by: Anton Staaf > > --- > drivers/usb/serial/usb-serial-simple.c | 11 +++ >

[PATCH v4] cdc-acm: ensure that termios get set when the port is activated

2014-10-30 Thread Jim Paris
The driver wasn't properly configuring the hardware for the current termios settings under all conditions. Ensure that termios are written to the device when the port is activated. Signed-off-by: Jim Paris --- Moved prototype. Thanks, Jim --- drivers/usb/class/cdc-acm.c | 5 + 1 file cha

Re: [PATCH v4] cdc-acm: ensure that termios get set when the port is activated

2014-10-30 Thread Johan Hovold
On Thu, Oct 30, 2014 at 10:45:38AM -0400, Jim Paris wrote: > The driver wasn't properly configuring the hardware for the current > termios settings under all conditions. Ensure that termios are > written to the device when the port is activated. > > Signed-off-by: Jim Paris > --- > > Moved prot

[PATCH v4-real] cdc-acm: ensure that termios get set when the port is activated

2014-10-30 Thread Jim Paris
The driver wasn't properly configuring the hardware for the current termios settings under all conditions. Ensure that termios are written to the device when the port is activated. Signed-off-by: Jim Paris --- Johan Hovold wrote: > On Thu, Oct 30, 2014 at 10:45:38AM -0400, Jim Paris wrote: > >

Question r/e zero byte bulk transfer on musb gadget (causes kernel panic)

2014-10-30 Thread Breton M. Saunders
Hi All, I want to ask what the correct USB behavior should be for a gadget attempting to perform a zero byte transfer (note transfer, not transaction) on a bulk-in endpoint should be: Background: * Basically I've got a hacked up kernel; hardware is TI omap dm3730 (an overo gumstix bo

[PATCH usb v2 01/29] host: ehci-atmel: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-atmel.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ehci-atmel.c b/drivers

[PATCH usb v2 02/29] host: ohci-da8xx: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ohci-da8xx.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/ho

[PATCH usb v2 00/29] cleanup on resource check

2014-10-30 Thread varkabhadram
From: Varka Bhadram This series removes the duplication of sanity check for platform_get_resource() return resource. It will be checked with devm_ioremap_resource() This entire series rebased on testing/fixes of [1]. [1]: http://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git changes sinc

[PATCH usb v2 04/29] host: ehci-w90x900: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-w90x900.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ehci-w90x900.c b/dri

[PATCH usb v2 05/29] host: ohci-at91: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ohci-at91.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/

[PATCH usb v2 03/29] host: ehci-tegra: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-tegra.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb

[PATCH usb v2 08/29] host: ohci-octeon: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ohci-octeon.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/ohci-octeon.c b/drivers

[PATCH usb v2 06/29] host: ohci-exynos: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ohci-exynos.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/u

[PATCH usb v2 09/29] host: ohci-platform: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ohci-platform.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/ohci-platform.c b/dr

[PATCH usb v2 07/29] host: ohci-jz4740: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ohci-jz4740.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ohci-jz4740.c b/drive

[PATCH usb v2 11/29] host: ehci-sh: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-sh.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/usb/host/ehci-sh.c b/drivers/usb

[PATCH usb v2 12/29] host: ohci-spear: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ohci-spear.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ohci-spear.c b/drivers/us

[PATCH usb v2 13/29] host: ehci-msm: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-msm.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/hos

[PATCH usb v2 10/29] host: ohci-pxa27x: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ohci-pxa27x.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/

[PATCH usb v2 16/29] host: ehci-octeon: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-octeon.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/ehci-octeon.c b/drivers

[PATCH usb v2 19/29] host: ehci-sead3: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-sead3.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-sead3.c b/drivers/usb/host

[PATCH usb v2 25/29] phy: phy-rcar-usb: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram --- drivers/usb/phy/phy-rcar-usb.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/phy/phy-rcar-usb.c b/drivers/usb/phy/phy-rcar-usb.c in

[PATCH usb v2 14/29] host: ehci-mv: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-mv.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c inde

[PATCH usb v2 22/29] host: xhci-plat: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/xhci-plat.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/h

[PATCH usb v2 17/29] host: ehci-orion: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-orion.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/usb/host/ehci-orion.c b/drivers/usb/

[PATCH usb v2 23/29] musb: musb_core: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram --- drivers/usb/musb/musb_core.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index b841ee

[PATCH usb v2 21/29] host: uhci-platform: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Also fix in accessing NULL if resource didn't get. Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/uhci-platform.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff

[PATCH usb v2 27/29] dwc3: dwc3-keystone: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram --- drivers/usb/dwc3/dwc3-keystone.c |5 - 1 file changed, 5 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-keystone.c b/drivers/usb/dwc3/dwc3-keystone.c index 7ec8495..d

[PATCH usb v2 18/29] host: ehci-platform: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-platform.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ehci-platform.c b/dri

[PATCH usb v2 15/29] host: ehci-mxc: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-mxc.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/ho

[PATCH usb v2 29/29] host: ehci-exynos: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-exynos.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/

[PATCH usb v2 28/29] host: ehci-fsl: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-fsl.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/h

[PATCH usb v2 24/29] musb: musb_dsps: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram --- drivers/usb/musb/musb_dsps.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 48bc09e..965c552 100644

[PATCH usb v2 26/29] renesas_usbhs: common: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram --- drivers/usb/renesas_usbhs/common.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/comm

[PATCH usb v2 20/29] host: ehci-spear: remove duplicate check on resource

2014-10-30 Thread varkabhadram
From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-spear.c |9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/usb/host/ehci-spear.c b/drivers/usb/

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-30 Thread Felipe Balbi
On Tue, Oct 28, 2014 at 05:35:35PM +0100, Antoine Tenart wrote: > Before using the PHY framework instead of the USB PHY one, we need to > move the OTG state into another place, since it won't be available when > USB PHY isn't used. This patch moves the OTG state into the OTG > structure, and makes

Re: [PATCH v7 2/7] usb: rename phy to usb_phy in OTG

2014-10-30 Thread Felipe Balbi
On Tue, Oct 28, 2014 at 05:35:36PM +0100, Antoine Tenart wrote: > This patch prepares the introduction of the generic PHY support in the > USB OTG common functions. The USB PHY member of the OTG structure is > renamed to 'usb_phy' and modifications are done in all drivers accessing > it. Renaming t

Re: [PATCH v7 0/7] usb: add support for the generic PHY framework

2014-10-30 Thread Felipe Balbi
Hi, On Tue, Oct 28, 2014 at 05:35:34PM +0100, Antoine Tenart wrote: > The series can be found at: > git://git.free-electrons.com:users/antoine-tenart/linux.git usb-phy > > Changes since v6: > - rebased on top of v3.18-rc2 > > Changes since v5: > - rebased on the latest version of S

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 11:31:48AM -0500, Felipe Balbi wrote: > On Tue, Oct 28, 2014 at 05:35:35PM +0100, Antoine Tenart wrote: > > Before using the PHY framework instead of the USB PHY one, we need to > > move the OTG state into another place, since it won't be available when > > USB PHY isn't use

Re: [PATCH v4 20/20] usb: dwc3: make HIRD threshold configurable

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 06:08:45PM +0800, Huang Rui wrote: > HIRD threshold should be configurable by different platforms. > > From DesignWare databook: > When HIRD_Threshold[4] is set to 1b1 and HIRD value is greater than or > equal to the value in HIRD_Threshold[3:0], dwc3 asserts output signals

Re: [PATCH v4 19/20] usb: dwc3: add support for AMD Nolan platform

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 06:08:44PM +0800, Huang Rui wrote: > This patch adds support for AMD Nolan (NL) FPGA and SoC platform. > > Cc: Jason Chang > Signed-off-by: Huang Rui > --- > drivers/usb/dwc3/dwc3-pci.c | 23 +++ > 1 file changed, 23 insertions(+) > > diff --git a/dr

Re: [PATCH v4 16/20] usb: dwc3: add disable usb2 suspend phy quirk

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 06:08:41PM +0800, Huang Rui wrote: > This patch adds disable usb2 suspend phy quirk, and some special platforms > can configure that if it is needed. > > Signed-off-by: Huang Rui > --- > Documentation/devicetree/bindings/usb/dwc3.txt | 1 + > drivers/usb/dwc3/core.c

Re: [PATCH v4 14/20] usb: dwc3: add Tx de-emphasis quirk

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 06:08:39PM +0800, Huang Rui wrote: > This patch adds Tx de-emphasis quirk, and the Tx de-emphasis value is > configurable according to PIPE3 specification. > > Value Description > 0 -6dB de-emphasis > 1 -3.5dB de-emphasis > 2 No d

Re: [PATCH RESEND V4 2/9] mailbox: Add NVIDIA Tegra XUSB mailbox driver

2014-10-30 Thread Andrew Bresticker
On Thu, Oct 30, 2014 at 6:22 AM, Thierry Reding wrote: > On Wed, Oct 29, 2014 at 11:02:36AM -0700, Andrew Bresticker wrote: > [...] >> > Maybe something like this patch would be more correct in handling >> > this: >> > >> > diff --git a/drivers/mailbox/mailbox.c b/drivers/mailbox/mailbox.c >> > in

Re: [PATCH usb v2 19/29] host: ehci-sead3: remove duplicate check on resource

2014-10-30 Thread Sergei Shtylyov
Hello. On 10/30/2014 06:52 PM, varkabhad...@gmail.com wrote: From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-sead3.c |5 ++--- 1 file changed, 2 insertions(+), 3 dele

Re: [PATCH usb v2 19/29] host: ehci-sead3: remove duplicate check on resource

2014-10-30 Thread Sergei Shtylyov
On 10/30/2014 08:08 PM, Sergei Shtylyov wrote: From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram Acked-by: Alan Stern --- drivers/usb/host/ehci-sead3.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) dif

Re: [PATCH RESEND V4 4/9] pinctrl: tegra-xusb: Add USB PHY support

2014-10-30 Thread Andrew Bresticker
On Thu, Oct 30, 2014 at 6:45 AM, Thierry Reding wrote: > On Wed, Oct 29, 2014 at 12:43:36PM -0700, Andrew Bresticker wrote: >> >> diff --git a/drivers/pinctrl/pinctrl-tegra-xusb.c >> >> b/drivers/pinctrl/pinctrl-tegra-xusb.c > [...] >> >> + >> >> + for (i = 0; i < TEGRA_XUSB_USB3_PHYS; i++) {

Re: [PATCH usb v2 21/29] host: uhci-platform: remove duplicate check on resource

2014-10-30 Thread Sergei Shtylyov
On 10/30/2014 06:53 PM, varkabhad...@gmail.com wrote: From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Also fix in accessing NULL if resource didn't get. Yes, this is a fix as well, and the subject doesn't match what the patch does. Signed-off-b

Re: [PATCH usb v2 26/29] renesas_usbhs: common: remove duplicate check on resource

2014-10-30 Thread Sergei Shtylyov
On 10/30/2014 06:53 PM, varkabhad...@gmail.com wrote: From: Varka Bhadram Sanity check on resource happening with devm_ioremap_resource(). Signed-off-by: Varka Bhadram --- drivers/usb/renesas_usbhs/common.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dri

Re: [PATCH RESEND V4 5/9] of: Add NVIDIA Tegra xHCI controller binding

2014-10-30 Thread Andrew Bresticker
On Thu, Oct 30, 2014 at 6:55 AM, Thierry Reding wrote: > On Wed, Oct 29, 2014 at 09:37:14AM -0700, Andrew Bresticker wrote: >> On Wed, Oct 29, 2014 at 2:43 AM, Thierry Reding >> wrote: >> > On Tue, Oct 28, 2014 at 03:27:50PM -0700, Andrew Bresticker wrote: >> > [...] >> >> diff --git >> >> a/Doc

Re: [PATCH RESEND V4 5/9] of: Add NVIDIA Tegra xHCI controller binding

2014-10-30 Thread Thierry Reding
On Thu, Oct 30, 2014 at 10:19:21AM -0700, Andrew Bresticker wrote: > On Thu, Oct 30, 2014 at 6:55 AM, Thierry Reding > wrote: > > On Wed, Oct 29, 2014 at 09:37:14AM -0700, Andrew Bresticker wrote: > >> On Wed, Oct 29, 2014 at 2:43 AM, Thierry Reding > >> wrote: > >> > On Tue, Oct 28, 2014 at 03:2

Re: [PATCH RESEND V4 5/9] of: Add NVIDIA Tegra xHCI controller binding

2014-10-30 Thread Andrew Bresticker
On Thu, Oct 30, 2014 at 10:24 AM, Thierry Reding wrote: > On Thu, Oct 30, 2014 at 10:19:21AM -0700, Andrew Bresticker wrote: >> On Thu, Oct 30, 2014 at 6:55 AM, Thierry Reding >> wrote: >> > On Wed, Oct 29, 2014 at 09:37:14AM -0700, Andrew Bresticker wrote: >> >> On Wed, Oct 29, 2014 at 2:43 AM,

[PATCH v8 7/7] usb: chipidea: add support to the generic PHY framework

2014-10-30 Thread Antoine Tenart
This patch adds support of the PHY framework for ChipIdea drivers. Changes are done in both the ChipIdea common code and in the drivers accessing the PHY. This is done by adding a new PHY member in ChipIdea's structures and by taking care of it in the code. Signed-off-by: Antoine Tenart Acked-by:

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-30 Thread Antoine Tenart
Hi Felipe, On Thu, Oct 30, 2014 at 11:35:13AM -0500, Felipe Balbi wrote: > On Thu, Oct 30, 2014 at 11:31:48AM -0500, Felipe Balbi wrote: > > On Tue, Oct 28, 2014 at 05:35:35PM +0100, Antoine Tenart wrote: > > > Before using the PHY framework instead of the USB PHY one, we need to > > > move the OT

[PATCH v8 0/7] usb: add support for the generic PHY framework

2014-10-30 Thread Antoine Tenart
The series can be found at: git://git.free-electrons.com:users/antoine-tenart/linux.git usb-phy Changes since v7: - rebased on top of Felipe's testing/next branch Changes since v6: - rebased on top of v3.18-rc2 Changes since v5: - rebased on the latest version of Sergei's

[PATCH v8 2/7] usb: rename phy to usb_phy in OTG

2014-10-30 Thread Antoine Tenart
This patch prepares the introduction of the generic PHY support in the USB OTG common functions. The USB PHY member of the OTG structure is renamed to 'usb_phy' and modifications are done in all drivers accessing it. Renaming this pointer will allow to keep the compatibility for USB PHY drivers. S

[PATCH v8 3/7] usb: add support to the generic PHY framework in OTG

2014-10-30 Thread Antoine Tenart
This patch adds support of the PHY framework in OTG and keeps the USB PHY compatibility. Here the only modification is to add PHY member in the OTG structure, along with the USB PHY one. Signed-off-by: Antoine Tenart --- include/linux/usb/otg.h | 3 +++ 1 file changed, 3 insertions(+) diff --gi

[PATCH v8 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-30 Thread Antoine Tenart
Before using the PHY framework instead of the USB PHY one, we need to move the OTG state into another place, since it won't be available when USB PHY isn't used. This patch moves the OTG state into the OTG structure, and makes all the needed modifications in the drivers using the OTG state. Signed

[PATCH v8 4/7] usb: allow to supply the PHY in the drivers when using HCD

2014-10-30 Thread Antoine Tenart
This patch modify the generic code handling PHYs to allow them to be supplied from the drivers. This adds checks to ensure no PHY was already there when looking for one in the generic code. This also makes sure we do not modify its state in the generic HCD functions, it was provided by the driver.

[PATCH v8 5/7] usb: chipidea: rename transceiver and phy to usb_phy

2014-10-30 Thread Antoine Tenart
This patch prepares the introduction of the generic PHY support in the USB ChipIdea common functions. The USB PHY member of the ChipIdea structure ('transceiver') is renamed to 'usb_phy', the 'phy' member of the ChipIdea pdata structure is renamed to 'usb_phy' and modifications are done in all driv

[PATCH v8 6/7] usb: chipidea: move usb_otg into struct ci_hdrc

2014-10-30 Thread Antoine Tenart
Move the usb_otg member from struct usb_phy to struct ci_hdrc. Rework its initialization taking in account this modification. Signed-off-by: Antoine Tenart Acked-by: Peter Chen --- drivers/usb/chipidea/ci.h | 1 + drivers/usb/chipidea/debug.c | 2 +- drivers/usb/chipidea/host.c| 5

Re: [PATCH v7 1/7] usb: move the OTG state from the USB PHY to the OTG structure

2014-10-30 Thread Felipe Balbi
On Thu, Oct 30, 2014 at 06:42:54PM +0100, Antoine Tenart wrote: > Hi Felipe, > > On Thu, Oct 30, 2014 at 11:35:13AM -0500, Felipe Balbi wrote: > > On Thu, Oct 30, 2014 at 11:31:48AM -0500, Felipe Balbi wrote: > > > On Tue, Oct 28, 2014 at 05:35:35PM +0100, Antoine Tenart wrote: > > > > Before usin

[usb] add support for APM X-Gene to xhci-platform

2014-10-30 Thread Mark Langsdorf
Applied Micro's X-Gene platform uses ARM64 processors and a standard, XHCI compatible piece of silicon for USB connectivity. It only supports 64 bit DMA. Modify the xhci platform driver to use either 32 bit or 64 bit DMA, as appropriate, and then modify the platform driver to recognize the ACPI sig

[PATCH 2/2] [usb] add support for APM X-Gene to xhci-platform

2014-10-30 Thread Mark Langsdorf
Applied Micro's X-Gene platform uses the xhci-platform for USB. Add the glue to decode it from ACPI and change the Kconfig files so the xhci-plat.o file gets built. Signed-off-by: Mark Langsdorf --- arch/arm64/Kconfig | 1 + drivers/usb/host/Kconfig | 8 drivers/usb/host

[PATCH 1/2] [usb] make xhci platform driver use 64 bit or 32 bit DMA

2014-10-30 Thread Mark Langsdorf
The xhci platform driver needs to work on systems that either only support 64-bit DMA or only support 32-bit DMA. Attempt to set a coherent dma mask for 64-bit DMA, and attempt again with 32-bit DMA if that fails. Signed-off-by: Mark Langsdorf --- drivers/usb/host/xhci-plat.c | 13 -

Re: [PATCH 1/2] [usb] make xhci platform driver use 64 bit or 32 bit DMA

2014-10-30 Thread Arnd Bergmann
On Thursday 30 October 2014 13:16:28 Mark Langsdorf wrote: > - /* Initialize dma_mask and coherent_dma_mask to 32-bits */ > - ret = dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(32)); > - if (ret) > - return ret; > + /* Try setting the coherent_dma_mask to 64

Re: [PATCH 2/2] [usb] add support for APM X-Gene to xhci-platform

2014-10-30 Thread Arnd Bergmann
On Thursday 30 October 2014 13:16:29 Mark Langsdorf wrote: > Applied Micro's X-Gene platform uses the xhci-platform for USB. > Add the glue to decode it from ACPI and change the Kconfig files > so the xhci-plat.o file gets built. > > Signed-off-by: Mark Langsdorf I don't see anything x-gene spec

Re: [PATCH net 0/3] r8152: patches for autosuspend

2014-10-30 Thread David Miller
From: Hayes Wang Date: Wed, 29 Oct 2014 11:12:14 +0800 > There are unexpected processes when enabling autosuspend. > These patches are used to fix them. Series applied, thank you. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.k

  1   2   3   >