Re: [alsa-devel] Fw: Isochronous transfer error on USB3

2014-01-09 Thread Clemens Ladisch
Mauro Carvalho Chehab wrote: > I'm getting an weird behavior with em28xx, especially when the device > is connected into an audio port. > > > http://git.linuxtv.org/mchehab/experimental.git/blob/refs/heads/em28xx-v4l2-v6:/drivers/media/usb/em28xx/em28xx-audio.c > > What happens is that, when

Re: [PATCH 03/10] usb: chipidea: host:vbus control change for OTG HNP.

2014-01-09 Thread Peter Chen
A blank space between "host:" and "vbus" Reply-To: In-Reply-To: <1389171985-9282-4-git-send-email-b47...@freescale.com> On Wed, Jan 08, 2014 at 05:06:18PM +0800, Li Jun wrote: > Leave vbus on/off hanlded by OTG fsm if in OTG mode, init OTG port number.

Re: [PATCH 04/10] usb: chipidea: udc:driver update for OTG HNP. ^

2014-01-09 Thread Peter Chen
Reply-To: In-Reply-To: <1389171985-9282-5-git-send-email-b47...@freescale.com> On Wed, Jan 08, 2014 at 05:06:19PM +0800, Li Jun wrote: > Add b_hnp_enable request handling and enable gadget->is_otg > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/udc.c | 11 ++- > 1 files change

Re: [PATCH 05/10] usb: chipidea: add OTG fsm operation functions implemenation.

2014-01-09 Thread Peter Chen
On Wed, Jan 08, 2014 at 05:06:20PM +0800, Li Jun wrote: > Add OTG HNP and SRP operation functions implementation: > - charge vbus > - drive vbus > - connection signaling > - drive sof > - start data pulse > - add fsm timer > - delete fsm timer > - start host > - start gadget > > Signed-off-by: Li

Re: [PATCH 06/10] usb: chipidea: OTG fsm timers initialization.

2014-01-09 Thread Peter Chen
On Wed, Jan 08, 2014 at 05:06:21PM +0800, Li Jun wrote: > This patch adds OTG fsm timers initialization, which use controller's 1ms > interrupt as time out counter, also adds some local timers which are not timeout? > in otg_fsm_timer list. > > Signed-off-by: Li Jun > --- > drivers/usb/chipide

Re: [PATCH 07/10] usb: chipidea: OTG HNP and SRP fsm implementation.

2014-01-09 Thread Peter Chen
On Wed, Jan 08, 2014 at 05:06:22PM +0800, Li Jun wrote: > USB OTG interrupt handling and fsm transition according to USB OTG > spec 2.0, update otg timer time out handlers. timeout > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/bits.h|3 + > drivers/usb/chipidea/core.c| 1

Re: [PATCH 09/10] usb: chipidea: add sys inputs for OTG fsm input.

2014-01-09 Thread Peter Chen
On Wed, Jan 08, 2014 at 05:06:24PM +0800, Li Jun wrote: > This patch adds sys input to control and show OTG fsm inputs by application, > user can do host and preipheral role switch by change these inputs. > > Signed-off-by: Li Jun > --- > drivers/usb/chipidea/otg.c |1 + > drivers/usb/ch

RE: [PATCH 4/8] usb: ehci: add freescale imx28 special write register method

2014-01-09 Thread David Laight
> From: Peter Chen ... > > > >> +#ifdef CONFIG_SOC_IMX28 > > > >> +static inline void imx28_ehci_writel(const unsigned int val, > > > >> + volatile __u32 __iomem *addr) > > > >> +{ > > > >> + __asm__ ("swp %0, %0, [%1]" : : "r"(val), "r"(addr)); > > > >> +} > > > >> +#else > > > >

Re: [PATCH 4/8] usb: ehci: add freescale imx28 special write register method

2014-01-09 Thread Marc Kleine-Budde
On 01/09/2014 04:22 AM, Greg KH wrote: > On Thu, Jan 09, 2014 at 09:36:09AM +0800, Peter Chen wrote: >> On Tue, Jan 07, 2014 at 04:20:25PM -0800, Greg KH wrote: >>> On Mon, Jan 06, 2014 at 09:42:26AM +0100, Marc Kleine-Budde wrote: Hello Peter and Greg, On 01/06/2014 03:10 AM, Peter

RE: [PATCH 1/2] xhci: Avoid infinite loop when sg urb requires too many trbs

2014-01-09 Thread David Laight
> From: Sarah Sharp > Currently prepare_ring() returns -ENOMEM if the urb won't fit into a > single ring segment. usb_sg_wait() treats this error as a temporary > condition and will keep retrying until something else goes wrong. Even if it were a temporary condition then an immediate retry is rat

RE: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst

2014-01-09 Thread David Laight
> From: walt ... > I'm still wondering if I'm suffering from hardware quirks. From the > first day I installed my usb3 adapter card and the usb3 disk docking > station I've noticed some quirky behavior. Ah - this isn't an 'on chip' usb3 adapter. Some kind of PCIe card ? > e.g. I boot the machine

[PATCH 3/6] usb: gadget: gr_udc: Use platform_get_irq instead of irq_of_parse_and_map

2014-01-09 Thread Andreas Larsson
Use platform_get_irq as no mapping needs to be done. No functional difference for SPARC which is the typical environment for the driver though. Suggested by Mark Rutland. Signed-off-by: Andreas Larsson --- drivers/usb/gadget/gr_udc.c | 14 -- 1 file changed, 8 insertions(+), 6 dele

[PATCH 0/6] usb: gadget: gr_udc: OF and ep.maxpacket_limit related improvements

2014-01-09 Thread Andreas Larsson
This patchset adds some OF related improvements suggested by Mark Rutland. This patchset also adds ep.maxpacket_limit to the debugfs file and adds a check if gr_ep_enable is called with a maxpacket value greater than ep.maxpacket_limit. Andreas Larsson (6): usb: gadget: gr_udc: Make struct plat

[PATCH 2/6] usb: gadget: gr_udc: Expand devicetree documentation

2014-01-09 Thread Andreas Larsson
Provide more information on the two different interrupt cases and more information of endpoint buffer sizes. Suggested by Mark Rutland. Signed-off-by: Andreas Larsson --- Documentation/devicetree/bindings/usb/gr-udc.txt | 22 ++ 1 file changed, 14 insertions(+), 8 deletions

[PATCH 1/6] usb: gadget: gr_udc: Make struct platform_device variable name clearer

2014-01-09 Thread Andreas Larsson
Rename struct platform_device pointers from ofdev to pdev for clarity. Suggested by Mark Rutland. Signed-off-by: Andreas Larsson --- drivers/usb/gadget/gr_udc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/gr_udc.c b/drivers/usb/gadg

USB-modem not working correctly

2014-01-09 Thread Linus Gasser
Hi list, I'm trying to get an USB-modem running on a Smileplug, which is some Arm7-device, using it with the kernel 3.12-6. As far as I can tell it's an USB3-port. It works well with harddisks, but when I plug in USB-modems, it always fails sooner or later. Is there anything that I can do to

[PATCH 5/6] usb: gadget: gr_udc: Add ep.maxpacket_limit to debugfs information

2014-01-09 Thread Andreas Larsson
Add information on ep.maxpacket_limit for each endpoint in the debugfs information. Signed-off-by: Andreas Larsson --- drivers/usb/gadget/gr_udc.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/gr_udc.c b/drivers/usb/gadget/gr_udc.c index 8df35fc..55757fc 100644 --- a/

[PATCH 6/6] usb: gadget: gr_udc: Return error code when trying to set ep.maxpacket > ep.maxpacket_limit

2014-01-09 Thread Andreas Larsson
Make gr_ep_enable fail properly when a call requests a larger ep.maxpacket than ep.maxpacket_limit. Signed-off-by: Andreas Larsson --- drivers/usb/gadget/gr_udc.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/usb/gadget/gr_udc.c b/drivers/usb/gadget/gr_udc.c index 55757fc..5

[PATCH 4/6] usb: gadget: gr_udc: Use of_property_read_u32_index to access arrays

2014-01-09 Thread Andreas Larsson
Use an appropriate accessor function for property arrays to make the code nicer and make the code correct if it would ever run on little endian architectures. Suggested by Mark Rutland. Signed-off-by: Andreas Larsson --- drivers/usb/gadget/gr_udc.c | 12 1 file changed, 4 insertio

Re: [PATCH v4 0/5] USB Host support for OMAP5 uEVM (for 3.14)

2014-01-09 Thread Roger Quadros
Hi Michele, Did you enable CONFIG_USB_EHCI_HCD_OMAP in the kernel config? It is not enabled by default in omap2plus_defconfig. cheers, -roger On 01/09/2014 04:34 PM, Michele Paolino wrote: > Hello Roger, > > I'm testing your patch on an OMAP5430 EVM board. The ethernet is not working > in my c

Re: [PATCH v4 0/5] USB Host support for OMAP5 uEVM (for 3.14)

2014-01-09 Thread Michele Paolino
On 09/01/2014 12:08, Roger Quadros wrote: Hi Michele, Did you enable CONFIG_USB_EHCI_HCD_OMAP in the kernel config? It is not enabled by default in omap2plus_defconfig. Indeed it works. Thank you! cheers, -roger On 01/09/2014 04:34 PM, Michele Paolino wrote: Hello Roger, I'm testing your

Re: [alsa-devel] Fw: Isochronous transfer error on USB3

2014-01-09 Thread Mauro Carvalho Chehab
Em Thu, 09 Jan 2014 09:17:13 +0100 Clemens Ladisch escreveu: > Mauro Carvalho Chehab wrote: > > I'm getting an weird behavior with em28xx, especially when the device > > is connected into an audio port. > > > > > > http://git.linuxtv.org/mchehab/experimental.git/blob/refs/heads/em28xx-v4l2-v

Re: [alsa-devel] Fw: Isochronous transfer error on USB3

2014-01-09 Thread Mauro Carvalho Chehab
Em Thu, 9 Jan 2014 09:29:57 -0200 Mauro Carvalho Chehab escreveu: > Em Thu, 09 Jan 2014 09:17:13 +0100 > Clemens Ladisch escreveu: > > > Mauro Carvalho Chehab wrote: > > > I'm getting an weird behavior with em28xx, especially when the device > > > is connected into an audio port. > > > > > >

[PATCH v5 7/9] ARM: dts: omap4-panda: Provide USB PHY clock

2014-01-09 Thread Roger Quadros
The USB PHY gets its clock from AUXCLK3. Provide this information. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap4-panda-common.dtsi | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/omap4-panda-common.dtsi b/arch/arm/boot/dts/omap4-panda-com

[PATCH v5 5/9] ARM: dts: omap4: Update omap-usb-host node

2014-01-09 Thread Roger Quadros
The omap-usb-host driver expects a certain name for internal and external reference clocks. Provide these clocks. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap4.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi in

[PATCH v5 9/9] ARM: OMAP2+: Remove legacy_init_ehci_clk()

2014-01-09 Thread Roger Quadros
The necessary clock phandle for the EHCI clock is now provided via device tree so we no longer need this legacy method. Signed-off-by: Roger Quadros --- arch/arm/mach-omap2/pdata-quirks.c | 16 1 file changed, 16 deletions(-) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/a

[PATCH v5 2/9] mfd: omap-usb-host: Get clocks based on hardware revision

2014-01-09 Thread Roger Quadros
Not all revisions have all the clocks so get the necessary clocks based on hardware revision. This should avoid un-necessary clk_get failure messages that were observed earlier. Be more strict and always fail on clk_get() error. CC: Lee Jones CC: Samuel Ortiz Signed-off-by: Roger Quadros ---

[PATCH v5 3/9] mfd: omap-usb-host: Update DT clock binding information

2014-01-09 Thread Roger Quadros
The omap-usb-host driver expects certained named clocks. Add this information to the DT binding document. Use clock names as per function for reference clocks. CC: Lee Jones CC: Samuel Ortiz Signed-off-by: Roger Quadros --- .../devicetree/bindings/mfd/omap-usb-host.txt | 23 +

Re: [alsa-devel] Fw: Isochronous transfer error on USB3

2014-01-09 Thread Clemens Ladisch
Mauro Carvalho Chehab wrote: > Clemens Ladisch escreveu: >> Mauro Carvalho Chehab wrote: >>> .period_bytes_min = 64, /* 12544/2, */ >> >> This is wrong (if the driver doesn't install other constraints on the >> period length, like the USB audio class driver does). > > Ok, how should it

[PATCH v5 4/9] mfd: omap-usb-tll: Update DT clock binding information

2014-01-09 Thread Roger Quadros
The omap-usb-tll driver needs one clock for each TLL channel. Add this information to the DT binding document. CC: Lee Jones CC: Samuel Ortiz Signed-off-by: Roger Quadros --- Documentation/devicetree/bindings/mfd/omap-usb-tll.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/

[PATCH v5 6/9] ARM: dts: omap5: Update omap-usb-host node

2014-01-09 Thread Roger Quadros
The omap-usb-host driver expects a certain name for internal and external reference clocks. Provide these clocks. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap5.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi in

[PATCH v5 8/9] ARM: dts: omap5-uevm: Provide USB PHY clock

2014-01-09 Thread Roger Quadros
The HS USB 2 PHY gets its clock from AUXCLK1. Provide this information. Signed-off-by: Roger Quadros --- arch/arm/boot/dts/omap5-uevm.dts | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts index 002fa70.

[PATCH v5 0/9] USB Host support for OMAP5 uEVM (for 3.14)

2014-01-09 Thread Roger Quadros
Hi Benoit & Tony, This patchset brings up USB Host ports and Ethernet port on the OMAP5 uEVM board. It depends on the TI Clock DT conversion patches [1] and is based on 3.13-rc7 [1] - http://article.gmane.org/gmane.linux.ports.arm.kernel/289895 NOTE: I've tested this only on the OMAP5 uEVM boar

[PATCH v5 1/9] mfd: omap-usb-host: Use resource managed clk_get()

2014-01-09 Thread Roger Quadros
Use devm_clk_get() instead of clk_get(). CC: Lee Jones CC: Samuel Ortiz Signed-off-by: Roger Quadros --- drivers/mfd/omap-usb-host.c | 81 + 1 file changed, 16 insertions(+), 65 deletions(-) diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/oma

Re: [PATCH v2 2/2] ehci-platform: Add support for clks and phy passed through devicetree

2014-01-09 Thread Hans de Goede
Hi, On 01/08/2014 07:16 PM, Maxime Ripard wrote: On Wed, Jan 08, 2014 at 05:30:08PM +0100, Hans de Goede wrote: Currently ehci-platform is only used in combination with devicetree when used with some via socs. By extending it to (optionally) get clks and a phy from devicetree, and enabling / di

Re: USB-modem not working correctly

2014-01-09 Thread Bjørn Mork
Linus Gasser writes: > I'm trying to get an USB-modem running on a Smileplug, which is some > Arm7-device, using it with the kernel 3.12-6. As far as I can tell > it's an USB3-port. It works well with harddisks, but when I plug in > USB-modems, it always fails sooner or later. Do you have this p

Re: [PATCH v2 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-09 Thread Hans de Goede
Hi, On 01/08/2014 09:36 PM, Florian Fainelli wrote: Hello, 2014/1/8 Hans de Goede : Add support for ohci-platform instantiation from devicetree, including optionally getting clks and a phy from devicetree, and enabling / disabling those on power_on / off. This should allow using ohci-platform

Re: [PATCH 05/10] usb: chipidea: add OTG fsm operation functions implemenation.

2014-01-09 Thread Marc Kleine-Budde
On 01/08/2014 10:06 AM, Li Jun wrote: > Add OTG HNP and SRP operation functions implementation: > - charge vbus > - drive vbus > - connection signaling > - drive sof > - start data pulse > - add fsm timer > - delete fsm timer > - start host > - start gadget > > Signed-off-by: Li Jun > --- > driv

Re: [PATCH] USB: chipidea: fix up coding style issues

2014-01-09 Thread Rahul Bedarkar
On Thu, Jan 9, 2014 at 4:38 AM, Greg Kroah-Hartman wrote: > On Wed, Jan 08, 2014 at 10:04:04PM +0530, Rahul Bedarkar wrote: >> >> Signed-off-by: Rahul Bedarkar >> --- >> drivers/usb/chipidea/ci_hdrc_imx.c | 3 ++- >> drivers/usb/chipidea/core.c| 9 + >> drivers/usb/chipidea/host.

Re: [PATCH] USB: c67x00: fix up line break coding style issues

2014-01-09 Thread Rahul Bedarkar
On Thu, Jan 9, 2014 at 4:35 AM, Greg Kroah-Hartman wrote: > On Wed, Jan 08, 2014 at 10:01:54PM +0530, Rahul Bedarkar wrote: >> >> Signed-off-by: Rahul Bedarkar >> --- >> drivers/usb/c67x00/c67x00-drv.c| 3 ++- >> drivers/usb/c67x00/c67x00-hcd.h| 2 +- >> drivers/usb/c67x00/c67x00-ll-hp

Re: BUG: usb: obex in g_nokia.ko causing kernel panic

2014-01-09 Thread Pali Rohár
On Wednesday 27 November 2013 18:39:04 Felipe Balbi wrote: > Hi, > > On Wed, Nov 27, 2013 at 05:40:42PM +0100, Pali Rohár wrote: > > > > > > @@ -282,10 +284,12 @@ static void > > > > > > obex_disconnect(struct gserial *g) if > > > > > > (!obex->can_activate) > > > > > > > > > > > > re

Re: [PATCH] USB: chipidea: fix up coding style issues

2014-01-09 Thread Greg Kroah-Hartman
On Thu, Jan 09, 2014 at 07:40:46PM +0530, Rahul Bedarkar wrote: > On Thu, Jan 9, 2014 at 4:38 AM, Greg Kroah-Hartman > wrote: > > On Wed, Jan 08, 2014 at 10:04:04PM +0530, Rahul Bedarkar wrote: > >> > >> Signed-off-by: Rahul Bedarkar > >> --- > >> drivers/usb/chipidea/ci_hdrc_imx.c | 3 ++- > >>

Re: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst

2014-01-09 Thread walt
On 01/09/2014 02:05 AM, David Laight wrote: >> From: walt > ... >> I'm still wondering if I'm suffering from hardware quirks. From the >> first day I installed my usb3 adapter card and the usb3 disk docking >> station I've noticed some quirky behavior. > > Ah - this isn't an 'on chip' usb3 adapte

RE: [PATCH 1/2] xhci: Avoid infinite loop when sg urb requires too many trbs

2014-01-09 Thread Alan Stern
On Thu, 9 Jan 2014, David Laight wrote: > > From: Sarah Sharp > > Currently prepare_ring() returns -ENOMEM if the urb won't fit into a > > single ring segment. usb_sg_wait() treats this error as a temporary > > condition and will keep retrying until something else goes wrong. > > Even if it were

RE: [PATCH 1/2] xhci: Avoid infinite loop when sg urb requires too many trbs

2014-01-09 Thread David Laight
From: Alan Stern > On Thu, 9 Jan 2014, David Laight wrote: > > > > From: Sarah Sharp > > > Currently prepare_ring() returns -ENOMEM if the urb won't fit into a > > > single ring segment. usb_sg_wait() treats this error as a temporary > > > condition and will keep retrying until something else goe

Re: [PATCH v2 2/2] ehci-platform: Add support for clks and phy passed through devicetree

2014-01-09 Thread Alan Stern
On Thu, 9 Jan 2014, Hans de Goede wrote: > >> +Optional properties: > >> +- clocks : a list of phandle + clock specifier pairs, one for each entry > >> + in clock-names. > >> +- clock-names : "clk0", "clk1", ... > >> +- phys : phy > >> +- phy-names : "phy0" > >> + > >> +Example: > >> + > >> + e

RE: [PATCH 1/2] xhci: Avoid infinite loop when sg urb requires too many trbs

2014-01-09 Thread Alan Stern
On Thu, 9 Jan 2014, David Laight wrote: > From: Alan Stern > > On Thu, 9 Jan 2014, David Laight wrote: > > > > > > From: Sarah Sharp > > > > Currently prepare_ring() returns -ENOMEM if the urb won't fit into a > > > > single ring segment. usb_sg_wait() treats this error as a temporary > > > > co

Re: [PATCH] staging: usbip: userspace: add support for viewing imported devices

2014-01-09 Thread Greg KH
On Tue, Jan 07, 2014 at 09:05:56PM +0200, Valentina Manea wrote: > As of Matt Mooney's major refactoring in 2011, usbip port > option was left out. Add support for this option in > a manner similar to the old implementation. > > Sample output: > > Imported USB devices > > Por

Re: USB-modem not working correctly

2014-01-09 Thread Linus Gasser
Le 09/01/14 14:27, Bjørn Mork a écrit : Linus Gasser writes: I'm trying to get an USB-modem running on a Smileplug, which is some Arm7-device, using it with the kernel 3.12-6. As far as I can tell it's an USB3-port. It works well with harddisks, but when I plug in USB-modems, it always fails s

Re: [linux-sunxi] Re: [PATCH v2 2/2] ehci-platform: Add support for clks and phy passed through devicetree

2014-01-09 Thread Hans de Goede
Hi, On 01/09/2014 04:47 PM, Alan Stern wrote: On Thu, 9 Jan 2014, Hans de Goede wrote: +Optional properties: +- clocks : a list of phandle + clock specifier pairs, one for each entry + in clock-names. +- clock-names : "clk0", "clk1", ... +- phys : phy +- phy-names : "phy0" + +Example: + +

[PATCH v3 0/2] ohci and ehci-platform clks, phy and dt support

2014-01-09 Thread Hans de Goede
Hi All, Here is v3 of my ohci and ehci-platform clks, phy and dt support patch-set. This version is mostly the result of some discussions on irc with Maxime to improve the dt-bindings. This has resulted in 2 changes: 1) Drop the clock-names from the dt-bindings, instead get clocks by index. Sin

[PATCH v3 2/2] ehci-platform: Add support for clks and phy passed through devicetree

2014-01-09 Thread Hans de Goede
Currently ehci-platform is only used in combination with devicetree when used with some Via socs. By extending it to (optionally) get clks and a phy from devicetree, and enabling / disabling those on power_on / off, it can be used more generically. Specifically after this commit it can be used for

Re: [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-09 Thread Arnd Bergmann
On Thursday 09 January 2014 18:57:05 Hans de Goede wrote: > + if (pdata == &ohci_platform_defaults && dev->dev.of_node) { > + priv->phy = devm_phy_get(&dev->dev, "usb"); > + if (IS_ERR(priv->phy)) { > + err = PTR_ERR(priv->phy); > +

[PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-09 Thread Hans de Goede
Add support for ohci-platform instantiation from devicetree, including optionally getting clks and a phy from devicetree, and enabling / disabling those on power_on / off. This should allow using ohci-platform from devicetree in various cases. Specifically after this commit it can be used for the

Re: [PATCH 1/2] xhci: Avoid infinite loop when sg urb requires too many trbs

2014-01-09 Thread Sarah Sharp
On Thu, Jan 09, 2014 at 10:56:44AM -0500, Alan Stern wrote: > On Thu, 9 Jan 2014, David Laight wrote: > > > From: Alan Stern > > > On Thu, 9 Jan 2014, David Laight wrote: > > > > > > > > From: Sarah Sharp > > > > > Currently prepare_ring() returns -ENOMEM if the urb won't fit into a > > > > > sin

Re: [PATCH] xhci_suspend optimized for hibernate

2014-01-09 Thread Oliver Neukum
On Tue, 2013-12-17 at 18:23 -0800, Todd E Brandt wrote: > cleanup. On resume from suspend, the registers, pages, and dequeue > pointers > are restored. On hibernate, we also save state. However, xhci_suspend > is > called after the hibernate memory image is created, so any memory > writes > (e.g.

Re: [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-09 Thread Hans de Goede
Hi, On 01/09/2014 07:07 PM, Arnd Bergmann wrote: On Thursday 09 January 2014 18:57:05 Hans de Goede wrote: + if (pdata == &ohci_platform_defaults && dev->dev.of_node) { + priv->phy = devm_phy_get(&dev->dev, "usb"); + if (IS_ERR(priv->phy)) { +

Re: [PATCH] usb: Skip U1/U2 LPM disable if device is disconnected.

2014-01-09 Thread Sarah Sharp
On Wed, Jan 08, 2014 at 09:20:41AM +, Venkatesh Murthy, HemanthX wrote: > We tried pulling this commit to our tree, we still see below errors multiple > times. That's expected. The device disconnect causes the port to go into the Inactive state and the host *must* handle that. > Should hub_

Re: [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-09 Thread Sergei Shtylyov
Hello. On 01/09/2014 08:57 PM, Hans de Goede wrote: Add support for ohci-platform instantiation from devicetree, including optionally getting clks and a phy from devicetree, and enabling / disabling those on power_on / off. This should allow using ohci-platform from devicetree in various cas

Re: [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-09 Thread Hans de Goede
Hi, On 01/09/2014 09:14 PM, Sergei Shtylyov wrote: Hello. On 01/09/2014 08:57 PM, Hans de Goede wrote: Add support for ohci-platform instantiation from devicetree, including optionally getting clks and a phy from devicetree, and enabling / disabling those on power_on / off. This should all

Re: [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-09 Thread Sergei Shtylyov
On 01/09/2014 10:48 PM, Hans de Goede wrote: Hi, On 01/09/2014 09:14 PM, Sergei Shtylyov wrote: Hello. On 01/09/2014 08:57 PM, Hans de Goede wrote: Add support for ohci-platform instantiation from devicetree, including optionally getting clks and a phy from devicetree, and enabling / disabli

Re: [PATCH v3 1/2] ohci-platform: Add support for devicetree instantiation

2014-01-09 Thread Alan Stern
On Thu, 9 Jan 2014, Hans de Goede wrote: > Add support for ohci-platform instantiation from devicetree, including > optionally getting clks and a phy from devicetree, and enabling / disabling > those on power_on / off. > > This should allow using ohci-platform from devicetree in various cases. >

Re: [PATCH] xhci: make warnings greppable

2014-01-09 Thread Sarah Sharp
Hi Oliver, This looks fine, but it will have to wait until after the merge window, as my tree is closed to cleanups/features right now. This will be queued for 3.15. Sarah Sharp On Wed, Jan 08, 2014 at 05:13:11PM +0100, oli...@neukum.org wrote: > From: Oliver Neukum > > This changes debug mes

Re: [PATCH] xhci: make warnings greppable

2014-01-09 Thread Sergei Shtylyov
Hello. On 01/08/2014 07:13 PM, oli...@neukum.org wrote: From: Oliver Neukum This changes debug messages and warnings in xhci-ring.c to be on a single line so grep can find them. grep must have precedence over the 80 column limit. In the eyes of checkpatch.pl, it has been having precede

Re: [PATCH 3.12 033/118] usb: xhci: Link TRB must not occur within a USB payload burst

2014-01-09 Thread Sarah Sharp
[Walt, please use reply-all to keep the list in the loop, thanks.] On Wed, Jan 08, 2014 at 04:09:14PM +, David Laight wrote: > > From: Sarah Sharp > > On Tue, Jan 07, 2014 at 03:57:00PM -0800, walt wrote: > > > On 01/07/2014 01:21 PM, Sarah Sharp wrote: > > > > > > > Can you please try the att

Re: [PATCH 05/10] usb: chipidea: add OTG fsm operation functions implemenation.

2014-01-09 Thread Peter Chen
On Thu, Jan 09, 2014 at 02:45:24PM +0100, Marc Kleine-Budde wrote: > On 01/08/2014 10:06 AM, Li Jun wrote: > > Add OTG HNP and SRP operation functions implementation: > > - charge vbus > > - drive vbus > > - connection signaling > > - drive sof > > - start data pulse > > - add fsm timer > > - delet

Re: [PATCH 4/8] usb: ehci: add freescale imx28 special write register method

2014-01-09 Thread Peter Chen
On Thu, Jan 09, 2014 at 10:53:45AM +0100, Marc Kleine-Budde wrote: > On 01/09/2014 04:22 AM, Greg KH wrote: > > On Thu, Jan 09, 2014 at 09:36:09AM +0800, Peter Chen wrote: > >> On Tue, Jan 07, 2014 at 04:20:25PM -0800, Greg KH wrote: > >>> On Mon, Jan 06, 2014 at 09:42:26AM +0100, Marc Kleine-Budde

RE: [PATCH 7/8] usb: chipidea: Fix Internal error: : 808 [#1] ARM related to STS flag

2014-01-09 Thread Peter Chen
> > On Tue, Jan 07, 2014 at 04:27:30PM -0800, Greg KH wrote: > > On Mon, Jan 06, 2014 at 10:10:44AM +0800, Peter Chen wrote: > > > From: Chris Ruehl > > > > > > * init the sts flag to 0 (missed) > > > * fix write the real bit not sts value > > > * Set PORTCS_STS and DEVLC_STS only if sts = 1 >

Re: [PATCH 4/8] usb: ehci: add freescale imx28 special write register method

2014-01-09 Thread Greg KH
On Fri, Jan 10, 2014 at 10:31:05AM +0800, Peter Chen wrote: > On Thu, Jan 09, 2014 at 10:53:45AM +0100, Marc Kleine-Budde wrote: > > On 01/09/2014 04:22 AM, Greg KH wrote: > > > On Thu, Jan 09, 2014 at 09:36:09AM +0800, Peter Chen wrote: > > >> On Tue, Jan 07, 2014 at 04:20:25PM -0800, Greg KH wrot

Re: [PATCH 7/8] usb: chipidea: Fix Internal error: : 808 [#1] ARM related to STS flag

2014-01-09 Thread Greg KH
On Fri, Jan 10, 2014 at 03:25:56AM +, Peter Chen wrote: > > > > > On Tue, Jan 07, 2014 at 04:27:30PM -0800, Greg KH wrote: > > > On Mon, Jan 06, 2014 at 10:10:44AM +0800, Peter Chen wrote: > > > > From: Chris Ruehl > > > > > > > > * init the sts flag to 0 (missed) > > > > * fix write the re

Re: 3.13-rc2 phy-twl4030-usb.c - Timeout setting T2 HSUSB PHY DPLL

2014-01-09 Thread Kishon Vijay Abraham I
Hi, On Thursday 09 January 2014 10:54 AM, Roger Quadros wrote: > Hi Marek, > > I have no idea what is happening there. Have you tried using device tree boot? > Board file boot support would be dropped eventually. > > Did you try if I2C read write to the twl4030 device works and all necessary >

Re: USB-modem not working correctly

2014-01-09 Thread Lars Melin
On 2014-01-09 17:50, Linus Gasser wrote: Hi list, I'm trying to get an USB-modem running on a Smileplug, which is some Arm7-device, using it with the kernel 3.12-6. As far as I can tell it's an USB3-port. It works well with harddisks, but when I plug in USB-modems, it always fails sooner or l

Re: Alcatel usb modem

2014-01-09 Thread Lars Melin
On 2014-01-09 00:17, Greg KH wrote: On Wed, Jan 08, 2014 at 10:45:43PM +0700, Lars Melin wrote: On 2014-01-02 23:59, Dan Williams wrote: On Sun, 2013-12-29 at 15:35 +0700, Lars Melin wrote: On 2013-12-29 00:55, Greg KH wrote: On Sat, Dec 28, 2013 at 02:13:08PM +, thomas.takacs.a...@gmail.

[PATCH 3/7] usb: chipidea: imx: set CI_HDRC_IMX28_WRITE_FIX for imx28

2014-01-09 Thread Peter Chen
Due to imx28 needs ARM swp instruction for writing, we set CI_HDRC_IMX28_WRITE_FIX for imx28. This patch is needed for stable tree 3.11+ Cc: sta...@vger.kernel.org Cc: robert.hoda...@digi.com Signed-off-by: Peter Chen Signed-off-by: Marc Kleine-Budde Tested-by: Marc Kleine-Budde --- drivers/u

[PATCH 1/7] usb: ehci: add freescale imx28 special write register method

2014-01-09 Thread Peter Chen
According to Freescale imx28 Errata, "ENGR119653 USB: ARM to USB register error issue", All USB register write operations must use the ARM SWP instruction. So, we implement a special ehci_write for imx28. Discussion for it at below: http://marc.info/?l=linux-usb&m=137996395529294&w=2 Without this

[PATCH 6/7] usb: chipidea: need to mask INT_STATUS when write otgsc

2014-01-09 Thread Peter Chen
For otgsc, both enable bits and status bits are in it. So we need to make sure the status bits are not be cleared when write enable bits. It can fix one bug that we plug in/out Micro AB cable fast, and sometimes, the IDIS will be cleared wrongly when handle last ID interrupt (ID 0->1), so the curre

[PATCH 5/7] usb: chipidea: put hw_phymode_configure before ci_usb_phy_init

2014-01-09 Thread Peter Chen
From: Chris Ruehl hw_phymode_configure configures the PORTSC registers and allow the following phy_inits to operate on the right parameters. This fix a problem where the UPLI (ISP1504) could not be detected, because the Viewport was not available and read the viewport return 0's only. Signed-off

[PATCH 2/7] usb: chipidea: add freescale imx28 special write register method

2014-01-09 Thread Peter Chen
According to Freescale imx28 Errata, "ENGR119653 USB: ARM to USB register error issue", All USB register write operations must use the ARM SWP instruction. So, we implement special hw_write and hw_test_and_clear for imx28. Discussion for it at below: http://marc.info/?l=linux-usb&m=137996395529294

[PATCH 4/7] usb: chipidea: Fix Internal error: : 808 [#1] ARM related to STS flag

2014-01-09 Thread Peter Chen
From: Chris Ruehl * init the sts flag to 0 (missed) * fix write the real bit not sts value * Set PORTCS_STS and DEVLC_STS only if sts = 1 [Peter Chen: This one and the next patch fix the problem occurred imx27 and imx31, and imx27 and imx31 usb support are enabled until 3.14, so these two patche

[PATCH 7/7] usb: chipidea: udc: using MultO at TD as real mult value for ISO-TX

2014-01-09 Thread Peter Chen
We have met a bug that the high bandwidth ISO-TX transfer has failed at the last packet if it is less than 1024, the TD status shows it is "Transaction Error". The root cause of this problem is: the mult value at qh is not correct for current TD's transfer length. We use TD list to queue un-transf

[PATCH 0/7] USB Chipidea Patchset for 3.14

2014-01-09 Thread Peter Chen
Hi Greg, This patchset add your comment that do not add IS_ENABLED for imx28 special write patch [1/7, 2/7], the first five patches have sent before, and the last two patches are bug fixes for chipidea core. Chris Ruehl (2): usb: chipidea: Fix Internal error: : 808 [#1] ARM related to STS flag

Re: 3.13-rc2 phy-twl4030-usb.c - Timeout setting T2 HSUSB PHY DPLL

2014-01-09 Thread Belisko Marek
Hi, On Fri, Jan 10, 2014 at 6:25 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 09 January 2014 10:54 AM, Roger Quadros wrote: >> Hi Marek, >> >> I have no idea what is happening there. Have you tried using device tree >> boot? >> Board file boot support would be dropped eventually. >>

Re: USB-modem not working correctly

2014-01-09 Thread Bjørn Mork
Quoting Linus Gasser : Le 09/01/14 14:27, Bjørn Mork a écrit : Linus Gasser writes: I'm trying to get an USB-modem running on a Smileplug, which is some Arm7-device, using it with the kernel 3.12-6. As far as I can tell it's an USB3-port. It works well with harddisks, but when I plug in USB-