OTG state control for ux500 usb driver

2013-11-19 Thread Sam Gandhi
Hello, I am using hardware that used the musb-ux500 USB driver. I am wondering if there is a way to control OTG state of this driver using /sys/devices/platform/musb-ux500.0/musb-hdrc/mode files. When I connect externally powered device I see that mode transitions from b_peripheral to b_host. Whe

RE: [PATCH net v4 3/4] r8152: support stopping/waking tx queue

2013-11-19 Thread hayeswang
David Miller [mailto:da...@davemloft.net] [...] > > If the situation occurs, it means there is no tx buffer at > that time. If the > > netif_wake_queue() is called, only one more packet would be > queued and the tx > > queue would be stopped again after calling > rtl8152_start_xmit(). That is,

Re: [PATCH 1/1] Workaround for Suspend/Resume issue of AX88772B under ChromeOS

2013-11-19 Thread David Miller
From: fre...@asix.com.tw Date: Wed, 20 Nov 2013 10:11:36 +0800 > From: Freddy Xin > > This patch adds a workaroud to solve Suspend/Resume issue that AX88772B turns > off its Ethernet PHY power in the case that REMOTE_WAKEUP feature doesn't > be set when system suspend. In this case, the PHY powe

Re: [PATCH net v4 3/4] r8152: support stopping/waking tx queue

2013-11-19 Thread David Miller
From: hayeswang Date: Wed, 20 Nov 2013 11:28:46 +0800 > David Miller [mailto:da...@davemloft.net] > [...] >> This is racy. >> >> You have nothing which synchronizes r8152_tx_agg_fill() and >> rtl8152_start_xmit(), >> therefore: >> >> > + if (netif_queue_stopped(tp->netdev)) >> > +

RE: [PATCH net v4 3/4] r8152: support stopping/waking tx queue

2013-11-19 Thread hayeswang
David Miller [mailto:da...@davemloft.net] [...] > This is racy. > > You have nothing which synchronizes r8152_tx_agg_fill() and > rtl8152_start_xmit(), > therefore: > > > + if (netif_queue_stopped(tp->netdev)) > > + netif_wake_queue(tp->netdev); > > + > > A netif_stop_queue() can

Re: [PATCH] usb: xhci: Link TRB must not occur with a USB payload burst.

2013-11-19 Thread Alan Stern
On Tue, 19 Nov 2013, Sarah Sharp wrote: > The xHCI driver can limit the number of sg-list entries through > hcd->self.sg_tablesize. It's currently set to ~0, which is "however > many entries you want. You could set that to the number of TRBs in a > segment (minus one for the link TRB). > > The

[PATCH 1/1] Workaround for Suspend/Resume issue of AX88772B under ChromeOS

2013-11-19 Thread freddy
From: Freddy Xin This patch adds a workaroud to solve Suspend/Resume issue that AX88772B turns off its Ethernet PHY power in the case that REMOTE_WAKEUP feature doesn't be set when system suspend. In this case, the PHY power will not be turned on again when system resume, so the HW reset must be

Re: [PATCH 27/31] USB: EHCI: tegra: use reset framework

2013-11-19 Thread Greg Kroah-Hartman
On Fri, Nov 15, 2013 at 01:54:22PM -0700, Stephen Warren wrote: > From: Stephen Warren > > Tegra's clock driver now provides an implementation of the common > reset API (include/linux/reset.h). Use this instead of the old Tegra- > specific API; that will soon be removed. > > Cc: tred...@nvidia.c

Re: [PATCH] usb: xhci: Link TRB must not occur with a USB payload burst.

2013-11-19 Thread Sarah Sharp
On Mon, Nov 18, 2013 at 03:41:00PM -, David Laight wrote: > > > > -Original Message- > > From: Ben Hutchings [mailto:bhutchi...@solarflare.com] > > Sent: 18 November 2013 15:03 > > To: David Laight > > Cc: Alan Stern; Sarah Sharp; net...@vger.kernel.org; > > linux-usb@vger.kernel.org

[PATCH 1/1] usb: fix musb gadget to enable OTG mode conditionally

2013-11-19 Thread Apelete Seketeli
The musb driver is usable in host, gadget or dual role mode depending on the kernel configuration. However, the musb gadget part of the driver is enabling OTG mode whether the driver is built for dual role or gadget only mode. This induces a bug for gadget only USB device controllers where the kern

[PATCH 0/1] usb: fix musb gadget to enable OTG mode conditionally

2013-11-19 Thread Apelete Seketeli
Hello, While working on an musb glue layer for an embedded USB device controller, I encountered the following issue. The aforementioned UDC is not OTG capable, so I built the musb driver as gadget only and noticed that the musb_gadget code was trying to enable the OTG side of the controller, whic

[PATCH v2 1/1] usb: fix musb gadget to enable OTG mode conditionally

2013-11-19 Thread Apelete Seketeli
The musb driver is usable in host, gadget or dual role mode depending on the kernel configuration. However, the musb gadget part of the driver is enabling OTG mode whether the driver is built for dual role or gadget only mode. This induces a bug for gadget only USB device controllers where the kern

[PATCH v2 0/1] usb: fix musb gadget to enable OTG mode conditionally

2013-11-19 Thread Apelete Seketeli
Hello, While working on an musb glue layer for an embedded USB device controller, I encountered the following issue. The aforementioned UDC is not OTG capable, so I built the musb driver as gadget only and noticed that the musb_gadget code was trying to enable the OTG side of the controller, whic

Re: [PATCH v3 09/10] ARM: dts: omap3-beagle-xm: Add USB Host support

2013-11-19 Thread Nishanth Menon
On 09/24/2013 03:53 AM, Roger Quadros wrote: > Provide RESET GPIO and Power regulator for the USB PHY, > the USB Host port mode and the PHY device for the controller. > Also provide pin multiplexer information for USB host pins. > > We also relocate omap3_pmx_core pin definations so that they >

Re: [PATCH net v4 3/4] r8152: support stopping/waking tx queue

2013-11-19 Thread David Miller
From: Hayes Wang Date: Tue, 19 Nov 2013 11:25:10 +0800 > The maximum packet number which a tx aggregation buffer could contain > is the buffer size / (packet size + descriptor size). > > If the tx buffer is empty and the tx queue length is more than the > maximum value which is defined above, st

Re: musb lockup on am335x

2013-11-19 Thread Bin Liu
Just realized we missed linux-usb list... On Tue, Nov 19, 2013 at 10:15 AM, Mika Penttilä wrote: > On 11/19/2013 05:10 PM, Bin Liu wrote: >> On Fri, Nov 15, 2013 at 1:47 PM, Mika Penttilä >> wrote: >> >>> so maybe it's not easy for you to test it alone.. >>> >>> I made my whole rootfs available

Re: [RFC PATCH] PM / Runtime: Allow to inactivate devices during system suspend

2013-11-19 Thread Kevin Hilman
Alan Stern writes: > On Tue, 19 Nov 2013, Kevin Hilman wrote: > >> Alan Stern writes: >> >> > On Tue, 19 Nov 2013, Ulf Hansson wrote: >> > >> >> At the moment, system PM is already affecting behaviour of runtime PM >> >> since it is preventing runtime suspend during system suspend. >> > >> > Su

Re: [RFC PATCH] PM / Runtime: Allow to inactivate devices during system suspend

2013-11-19 Thread Alan Stern
On Tue, 19 Nov 2013, Kevin Hilman wrote: > Alan Stern writes: > > > On Tue, 19 Nov 2013, Ulf Hansson wrote: > > > >> At the moment, system PM is already affecting behaviour of runtime PM > >> since it is preventing runtime suspend during system suspend. > > > > Sure. And that behavior is docume

Re: [RFC PATCH] PM / Runtime: Allow to inactivate devices during system suspend

2013-11-19 Thread Kevin Hilman
Alan Stern writes: > On Tue, 19 Nov 2013, Ulf Hansson wrote: > >> At the moment, system PM is already affecting behaviour of runtime PM >> since it is preventing runtime suspend during system suspend. > > Sure. And that behavior is documented. In any case, it's a bug for > drivers to depend on

Re: [RFC PATCH] PM / Runtime: Allow to inactivate devices during system suspend

2013-11-19 Thread Alan Stern
On Tue, 19 Nov 2013, Ulf Hansson wrote: > At the moment, system PM is already affecting behaviour of runtime PM > since it is preventing runtime suspend during system suspend. Sure. And that behavior is documented. In any case, it's a bug for drivers to depend on runtime suspend for carrying o

RE: [PATCH] usb: hub: Use correct reset for wedged USB3 devices that are NOTATTACHED

2013-11-19 Thread Cortes, Alexis
Hi Sarah, Sorry for my delayed response, I just saw your e-mail (it got filtered somehow). About your question: actually I'm not sure, I'll have to check that to confirm it. I'll get back to you with an answer as soon as I have it. Best Regards, Alexis Cortes. -Original Message- From:

[RFT] cdc-acm: add TIOCMIWAIT

2013-11-19 Thread oliver
From: Oliver Neukum This implements TIOCMIWAIT for TIOCM_DSR, TIOCM_RI and TIOCM_CD Disconnect is handled as TIOCM_CD or an error. Signed-off-by: Oliver Neukum --- drivers/usb/class/cdc-acm.c | 81 ++--- drivers/usb/class/cdc-acm.h | 3 ++ 2 files chang

[RFT] cdc-acm: add TIOCGICOUNT

2013-11-19 Thread oliver
From: Oliver Neukum Simple straightforward implementation. Just returning the statistics gathered for TIOCMIWAIT Signed-off-by: Oliver Neukum --- drivers/usb/class/cdc-acm.c | 24 1 file changed, 24 insertions(+) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/

Re: [RFC PATCH] PM / Runtime: Allow to inactivate devices during system suspend

2013-11-19 Thread Rafael J. Wysocki
On Tuesday, November 19, 2013 01:21:57 PM Ulf Hansson wrote: > On 18 November 2013 16:17, Alan Stern wrote: > > On Mon, 18 Nov 2013, Ulf Hansson wrote: > > > >> I favour the pm_runtime_no_prevent_suspend API approach, since it > >> would mean a change in behaviour of the PM core. > > > > That's ex

Re: [RFC PATCH] PM / Runtime: Allow to inactivate devices during system suspend

2013-11-19 Thread Ulf Hansson
On 18 November 2013 16:17, Alan Stern wrote: > On Mon, 18 Nov 2013, Ulf Hansson wrote: > >> I favour the pm_runtime_no_prevent_suspend API approach, since it >> would mean a change in behaviour of the PM core. > > That's exactly why I don't favor it! :-) I will try my best to convince you then.

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

2013-11-19 Thread Pali Rohár
Hi! For a long time (since 3.5 or 3.8? - I do not remember) obex subdriver in g_nokia usb gadget module causing kernel panic after module is loaded on Nokia N900. I do not know where is problem and due to immediatelly kernel crash when loading driver I was not able to see any dmesg output. Now I w

Re: [PATCH] usbkbd.c: trivial typo ('released' -> 'pressed')

2013-11-19 Thread Jiri Kosina
On Sun, 17 Nov 2013, Adam Cozzette wrote: > It looks like this typo was introduced by a mistake in a copy-and-paste in > commit ddbe32491951. > > Signed-off-by: Adam Cozzette > --- > drivers/hid/usbhid/usbkbd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/hi

Por favor Nota

2013-11-19 Thread Proveedor de servicios
Estamos trabajando en la actualización del sistema de la seguridad puropse, para asegurar que su servicio no se interrumpe, por favor, actualice su información haciendo clic o copiando el enlace URL en su navegador. http://www.formstack.com/forms/?1628735-8YGQCIYabe Atentamente, Gestión de cuenta