Re: [PATCH 1/2] ARM: OMAP2+: Introduce local usb.h

2012-10-19 Thread Felipe Balbi
On Thu, Oct 18, 2012 at 07:20:05PM -0700, Tony Lindgren wrote: > Let's move what we can from plat/usb.h to the local usb.h > for ARM common zImage support. > > This is needed so we can remove plat/usb.h for ARM common > zImage support. > > Cc: Felipe Balbi Acked-by: Felipe Balbi > Cc: Samuel

[PATCH] usb: host: xhci: move HC_STATE_SUSPENDED check to xhci_suspend()

2012-10-19 Thread Felipe Balbi
that check will have to be done by all users of xhci_suspend() so it sounds a lot better to move the check to xhci_suspend() in order to avoid code duplication. Signed-off-by: Felipe Balbi --- drivers/usb/host/xhci-pci.c | 9 + drivers/usb/host/xhci.c | 4 2 files changed, 5 ins

Re: question regarding delay between bus states in EHCI driver

2012-10-19 Thread Pavan Kondeti
On Thu, Oct 18, 2012 at 10:37 PM, Alan Stern wrote: > On Thu, 18 Oct 2012, Pavan Kondeti wrote: > >> Hi Alan, >> >> I have a theoretical question in EHCI driver. We ensure that there is >> 5 msec window between suspend and next resume by keeping time_before() >> check in ehci_bus_resume function.

[PATCH] usb: dwc3: drop HAVE_CLK dependency from Exynos glue layer

2012-10-19 Thread Felipe Balbi
commit 93abe8e (clk: add non CONFIG_HAVE_CLK routines) added clk API stubs when !defined(CONFIG_HAVE_CLK). This allows us to remove the HAVE_CLK dependency from Exynos' glue layer and let it compile always. Signed-off-by: Felipe Balbi --- drivers/usb/dwc3/Makefile | 14 +- 1 file ch

Re: [PATCH v3] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Felipe Balbi
Hi Venu, > NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. > In order to support USB PHY drivers on these SoCs, existing > PHY driver is split into SoC agnostic common USB PHY driver > and Tegra20-specific USB phy driver. This will facilitate > easy addition and deletion of phy driver

Re: [PATCH v3] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 11:36:19AM +0300, Felipe Balbi wrote: > Hi Venu, > > > NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. > > In order to support USB PHY drivers on these SoCs, existing > > PHY driver is split into SoC agnostic common USB PHY driver > > and Tegra20-specific

Re: [PATCH net-next 02/14] net: cdc_ncm: use device rx_max value if update failed

2012-10-19 Thread Bjørn Mork
Bjørn Mork writes: > Alexey Orishko writes: > >> Vendor has to fix firmware. > > I agree in principle, and I'll report the problem to them. But as usual > I believe we have to support any weird firmware we encounter, if at all > possible. OK, I did some more experiments, and I am wondering if t

Re: Tons of issues with xhci

2012-10-19 Thread Felipe Contreras
On Thu, Oct 18, 2012 at 9:54 PM, Alan Stern wrote: > On Thu, 18 Oct 2012, Felipe Contreras wrote: > >> On Thu, Oct 18, 2012 at 8:03 PM, Felipe Contreras >> wrote: >> > On Thu, Oct 18, 2012 at 7:26 PM, Alan Stern >> > wrote: >> >> On Thu, 18 Oct 2012, Felipe Contreras wrote: >> >> >> >>> Nope, s

Re: Tons of issues with xhci

2012-10-19 Thread Adrian Sandu
> So I tried everything, eventually updated the firmware, but in the end > it turns out it was the cable. With the bad cable it seems when > operating in USB2 mode it tends to work fine, which explains a lot. > > Anyway, I went back to 3.6.2 without the lpm patches and it still works fine > :) > >

Re: [PATCH net-next 02/14] net: cdc_ncm: use device rx_max value if update failed

2012-10-19 Thread Alexey Orishko
On Fri, Oct 19, 2012 at 11:30 AM, Bjørn Mork wrote: > Bjørn Mork writes: >> Alexey Orishko writes: >> > OK, I did some more experiments, and I am wondering if the real firmware > problem is in the MBIM descriptor. It is > > CDC MBIM: > bcdMBIMVersion 1.00 > wMaxContr

Re: Tons of issues with xhci

2012-10-19 Thread Felipe Contreras
On Fri, Oct 19, 2012 at 11:53 AM, Adrian Sandu wrote: >> So I tried everything, eventually updated the firmware, but in the end >> it turns out it was the cable. With the bad cable it seems when >> operating in USB2 mode it tends to work fine, which explains a lot. >> >> Anyway, I went back to 3.6

Re: Tons of issues with xhci

2012-10-19 Thread Adrian Sandu
>> Doesn't this look alot like the problems I had ? :| >> Altough I still find weird the fact that the connection to my laptop >> worked just fine, but not in the asrock ! :| > > The same happened to me in another laptop, which only has USB2 ports. > I still see problems on this laptop on the USB2

[PATCH 0/7] update USB gadget driver fsl-usb2-udc

2012-10-19 Thread Christoph Fritz
This series updates USB gadget driver fsl-usb2-udc. Christoph Fritz (7): usb: gadget: fsl_udc: simplify driver init usb: gadget: fsl_udc: protect fsl_pullup() with spin_lock usb: gadget: fsl_udc: convert to new ulc style usb: gadget: fsl_udc: drop ARCH dependency usb: gadget: fsl_udc: po

[PATCH 1/7] usb: gadget: fsl_udc: simplify driver init

2012-10-19 Thread Christoph Fritz
To initialize this driver use 'module_platform_driver' instead of '__init' and '__exit'. Signed-off-by: Christoph Fritz --- drivers/usb/gadget/fsl_udc_core.c | 37 +++-- 1 files changed, 11 insertions(+), 26 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc_

[PATCH 2/7] usb: gadget: fsl_udc: protect fsl_pullup() with spin_lock

2012-10-19 Thread Christoph Fritz
This patch reworks fsl_pullup() against the background of switching over to udc_start()/udc_stop() style: Protect function fsl_pullup() with a spin_lock. Also set vbus_active as default to true. This prevents disabling USB controller if there is no driver support for an external transceiver (or GP

[PATCH 3/7] usb: gadget: fsl_udc: convert to new ulc style

2012-10-19 Thread Christoph Fritz
Convert to new UDC style registration and remove global 'udc_controller' pointer. Signed-off-by: Christoph Fritz --- drivers/usb/gadget/fsl_udc_core.c | 289 + 1 files changed, 131 insertions(+), 158 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc_core.

[PATCH 4/7] usb: gadget: fsl_udc: drop ARCH dependency

2012-10-19 Thread Christoph Fritz
Drop the big-/little-endian helpers and make use of generic writel()/readl() routines. Signed-off-by: Christoph Fritz --- drivers/usb/gadget/fsl_udc_core.c | 331 + 1 files changed, 118 insertions(+), 213 deletions(-) diff --git a/drivers/usb/gadget/fsl_udc_

[PATCH 5/7] usb: gadget: fsl_udc: postpone freeing current dTD

2012-10-19 Thread Christoph Fritz
USB controller may access a wrong address for the dTD (endpoint transfer descriptor) and then hang. This happens a lot when doing tests with g_ether module and iperf, a tool for measuring maximum TCP and UDP bandwidth. This hardware bug is explained in detail by errata number 2858 for i.MX23: http

[PATCH 6/7] usb: gadget: fsl_udc: purge global pointer usb_sys_regs

2012-10-19 Thread Christoph Fritz
Move global driver pointer usb_sys_regs to private struct fsl_udc. Signed-off-by: Christoph Fritz Reviewed-by: Teresa Gamez --- drivers/usb/gadget/fsl_udc_core.c | 26 -- drivers/usb/gadget/fsl_usb2_udc.h |1 + 2 files changed, 13 insertions(+), 14 deletions(-) di

[PATCH 7/7] usb: gadget: fsl_udc: purge global pointer dr_regs

2012-10-19 Thread Christoph Fritz
Move global driver pointer dr_regs to private struct fsl_udc. Signed-off-by: Christoph Fritz --- drivers/usb/gadget/fsl_udc_core.c | 252 +++-- drivers/usb/gadget/fsl_usb2_udc.h |1 + 2 files changed, 130 insertions(+), 123 deletions(-) diff --git a/drivers/

Re: [PATCH 1/7] usb: gadget: fsl_udc: simplify driver init

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 12:24:39PM +0200, Christoph Fritz wrote: > To initialize this driver use 'module_platform_driver' instead > of '__init' and '__exit'. > > Signed-off-by: Christoph Fritz > --- > drivers/usb/gadget/fsl_udc_core.c | 37 > +++-- > 1 fil

Re: [PATCH net-next 02/14] net: cdc_ncm: use device rx_max value if update failed

2012-10-19 Thread Bjørn Mork
Alexey Orishko writes: > On Fri, Oct 19, 2012 at 11:30 AM, Bjørn Mork wrote: >> Bjørn Mork writes: >>> Alexey Orishko writes: >>> >> OK, I did some more experiments, and I am wondering if the real firmware >> problem is in the MBIM descriptor. It is >> >> CDC MBIM: >> bcdMBIMVers

Re: [PATCH 2/7] usb: gadget: fsl_udc: protect fsl_pullup() with spin_lock

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 12:24:40PM +0200, Christoph Fritz wrote: > This patch reworks fsl_pullup() against the background of switching over > to udc_start()/udc_stop() style: > > Protect function fsl_pullup() with a spin_lock. Also set vbus_active as > default to true. This prevents disabling

Re: [PATCH 3/7] usb: gadget: fsl_udc: convert to new ulc style

2012-10-19 Thread Felipe Balbi
Hi, typo on Subject. Should be udc, not ulc. On Fri, Oct 19, 2012 at 12:24:41PM +0200, Christoph Fritz wrote: > Convert to new UDC style registration and remove > global 'udc_controller' pointer. > > Signed-off-by: Christoph Fritz > --- > drivers/usb/gadget/fsl_udc_core.c | 289 > +++

[PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Venu Byravarasu
NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. In order to support USB PHY drivers on these SoCs, existing PHY driver is split into SoC agnostic common USB PHY driver and Tegra20-specific USB phy driver. This will facilitate easy addition and deletion of phy drivers for Tegra SoCs. S

Re: [PATCH 4/7] usb: gadget: fsl_udc: drop ARCH dependency

2012-10-19 Thread Felipe Balbi
On Fri, Oct 19, 2012 at 12:24:42PM +0200, Christoph Fritz wrote: > Drop the big-/little-endian helpers and make use of generic > writel()/readl() routines. > > Signed-off-by: Christoph Fritz > --- > drivers/usb/gadget/fsl_udc_core.c | 331 > + > 1 files chan

Re: [PATCH 5/7] usb: gadget: fsl_udc: postpone freeing current dTD

2012-10-19 Thread Felipe Balbi
On Fri, Oct 19, 2012 at 12:24:43PM +0200, Christoph Fritz wrote: > USB controller may access a wrong address for the dTD (endpoint transfer > descriptor) and then hang. This happens a lot when doing tests with > g_ether module and iperf, a tool for measuring maximum TCP and UDP > bandwidth. > > Th

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 04:03:26PM +0530, Venu Byravarasu wrote: > NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. > In order to support USB PHY drivers on these SoCs, existing > PHY driver is split into SoC agnostic common USB PHY driver > and Tegra20-specific USB phy driver. Thi

[PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Venu Byravarasu
NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. In order to support USB PHY drivers on these SoCs, existing PHY driver is split into SoC agnostic common USB PHY driver and Tegra20-specific USB phy driver. This will facilitate easy addition and deletion of phy drivers for Tegra SoCs. S

Re: [PATCH 5/7] usb: gadget: fsl_udc: postpone freeing current dTD

2012-10-19 Thread Christoph Fritz
On Fri, 2012-10-19 at 13:30 +0300, Felipe Balbi wrote: > On Fri, Oct 19, 2012 at 12:24:43PM +0200, Christoph Fritz wrote: > > USB controller may access a wrong address for the dTD (endpoint transfer > > descriptor) and then hang. This happens a lot when doing tests with > > g_ether module and iperf

Re: [PATCH 5/7] usb: gadget: fsl_udc: postpone freeing current dTD

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 12:46:48PM +0200, Christoph Fritz wrote: > On Fri, 2012-10-19 at 13:30 +0300, Felipe Balbi wrote: > > On Fri, Oct 19, 2012 at 12:24:43PM +0200, Christoph Fritz wrote: > > > USB controller may access a wrong address for the dTD (endpoint transfer > > > descriptor) and th

[RFC] net: cdc_ncm: workaround NTB input size firmware bug

2012-10-19 Thread Bjørn Mork
Some devices do not support the 8 byte variants of the NTB input size control messages despite announcing such support in the functional descriptor. This can be detected by reading the current input size, looking at how many bytes the device returns. Signed-off-by: Bjørn Mork --- Bjørn Mork writ

Re: [PATCH net-next 02/14] net: cdc_ncm: use device rx_max value if update failed

2012-10-19 Thread Bjørn Mork
Alexey Orishko writes: > Based on NCM errata, NCM functional descriptor: if Bit 5 is set, then > device can (must) handle 8-byte form of Set/GetNtbInputSize. > If they set a flag, but don't support the feature, hm.. is it a > prototype device or > commercially available one? > > At least device m

[PATCH 3/4] USB: whiteheat: fix memory leak in error path

2012-10-19 Thread Johan Hovold
Make sure command buffer is deallocated in case of errors during attach. Cc: Signed-off-by: Johan Hovold --- drivers/usb/serial/whiteheat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 346c7ef..cfd155e 100644 --- a/dri

[PATCH 1/4] USB: metro-usb: fix port-data memory leak

2012-10-19 Thread Johan Hovold
Fix port-data memory leak by moving port data allocation and deallocation to port_probe and port_remove. Since commit 0998d0631001288 (device-core: Ensure drvdata = NULL when no driver is bound) the port private data is no longer freed at release as it is no longer accessible. Note that the call

[PATCH 4/4] USB: whiteheat: fix port-data memory leak

2012-10-19 Thread Johan Hovold
Fix port-data memory leak by moving port data allocation and deallocation to port_probe and port_remove. Since commit 0998d0631001288 (device-core: Ensure drvdata = NULL when no driver is bound) the port private data is no longer freed at release as it is no longer accessible. Note that the fifth

[PATCH 2/4] USB: metro-usb: fix io after disconnect

2012-10-19 Thread Johan Hovold
Make sure no control urb is submitted during close after a disconnect by checking the disconnected flag. Cc: Signed-off-by: Johan Hovold --- drivers/usb/serial/metro-usb.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/usb/serial/metro-usb.c b/driver

Re: [PATCH net-next 02/14] net: cdc_ncm: use device rx_max value if update failed

2012-10-19 Thread Alexey Orishko
On Fri, Oct 19, 2012 at 2:18 PM, Bjørn Mork wrote: > > OK, I may have misunderstood you here. Quoting the errata text: > > > If bit D5 is set in the bmNetworkCapabilities field of function’s NCM > Functional Descriptor, the host may set wLength either to 4 or to > 8. If wLength is 4, the f

Re: [PATCH net-next 02/14] net: cdc_ncm: use device rx_max value if update failed

2012-10-19 Thread Bjørn Mork
Alexey Orishko writes: > On Fri, Oct 19, 2012 at 2:18 PM, Bjørn Mork wrote: >> >> OK, I may have misunderstood you here. Quoting the errata text: >> >> >> If bit D5 is set in the bmNetworkCapabilities field of function’s NCM >> Functional Descriptor, the host may set wLength either to 4 or

Re: question regarding delay between bus states in EHCI driver

2012-10-19 Thread Alan Stern
On Fri, 19 Oct 2012, Pavan Kondeti wrote: > Why are we having this check in ehci_suspend()? By the time > ehci_suspend() is called, ehci_bus_suspend() is already called in > which next_statechange is updated. we might end up giving 10msec delay > in ehci_suspend(). Yes. I don't know the reason f

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Alan Stern
On Fri, 19 Oct 2012, Venu Byravarasu wrote: > NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. > In order to support USB PHY drivers on these SoCs, existing > PHY driver is split into SoC agnostic common USB PHY driver > and Tegra20-specific USB phy driver. This will facilitate > easy

[PATCH 2/2] USB: digi_acceleport: fix port-data memory leak

2012-10-19 Thread Johan Hovold
Fix port-data memory leak by moving port data deallocation to port_remove for regular ports. Since commit 0998d0631001288 (device-core: Ensure drvdata = NULL when no driver is bound) the port private data is no longer freed at release as it is no longer accessible. Note that the oob port is never

[PATCH 1/2] USB: ch341: fix port-data memory leak

2012-10-19 Thread Johan Hovold
Fix port-data memory leak by moving port data allocation to port_probe and actually implementing deallocation. Note that this driver has never even bothered to try to deallocate it's port data... Compile-only tested. Cc: Signed-off-by: Johan Hovold --- drivers/usb/serial/ch341.c | 23

[PATCH 1/2] USB: hub_for_each_child should skip unconnected ports

2012-10-19 Thread Alan Stern
This patch (as1619) improves the interface to the "hub_for_each_child" macro. The name clearly suggests that the macro iterates over child devices; it does not suggest that the loop will also iterate over unnconnected ports. The patch changes the macro so that it will skip over unconnected ports

[PATCH 2/2] USB: speed up usb_bus_resume()

2012-10-19 Thread Alan Stern
This patch (as1620) speeds up USB root-hub resumes in the common case where every enabled port has its suspend feature set (which currently will be true for every runtime resume of the root hub). If all the enabled ports are suspended then resuming the root hub won't resume any of the downstream d

Re: [RFC v3][PATCH 1/2] usb: gadget: Add USB Functions Gadget

2012-10-19 Thread Felipe Balbi
Hi, On Thu, Oct 18, 2012 at 05:12:48PM +0200, Andrzej Pietrasiewicz wrote: > Hello Felipe, > > On Wednesday, October 17, 2012 3:56 PM Felipe Balbi wrote: > > > > > On Wed, Oct 17, 2012 at 11:43:11AM +0200, Andrzej Pietrasiewicz wrote: > > > Demonstrate a USB gadget configured entirely through

Re: [PATCH 0/7] update USB gadget driver fsl-usb2-udc

2012-10-19 Thread Sascha Hauer
Hi Christoph, What system are you working on? If it's i.MX you should use/work on the chipidea driver instead. Sascha On Fri, Oct 19, 2012 at 12:22:36PM +0200, Christoph Fritz wrote: > This series updates USB gadget driver fsl-usb2-udc. > > Christoph Fritz (7): > usb: gadget: fsl_udc: simplif

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 04:08:05PM +0530, Venu Byravarasu wrote: > NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. > In order to support USB PHY drivers on these SoCs, existing > PHY driver is split into SoC agnostic common USB PHY driver > and Tegra20-specific USB phy driver. Thi

Re: [RFC 3/4] usb: Send Set SEL before enabling parent U1/U2 timeout.

2012-10-19 Thread Felipe Balbi
Hi, On Mon, Oct 08, 2012 at 03:47:35PM -0700, Sarah Sharp wrote: > On Mon, Oct 08, 2012 at 04:05:00PM -0400, Alan Stern wrote: > > On Mon, 8 Oct 2012, Sarah Sharp wrote: > > > > > The Set SEL control transfer tells a device the exit latencies > > > associated with a device-initated U1 or U2 exit.

Re: [PATCH v4 1/1] usb: phy: change phy notify functions

2012-10-19 Thread Felipe Balbi
Hi, On Tue, Oct 16, 2012 at 09:36:46AM +0800, Peter Chen wrote: > The patch includes both API change and caller change. > The main changes like below: > > - add notify_suspend/notify_resume callback > > This let usb phy driver has the chance to change hw settings during > the controller suspend/

Re: [PATCH v3 resend] USB: PHY: Re-organize Tegra USB PHY driver

2012-10-19 Thread Stephen Warren
On 10/19/2012 09:35 AM, Felipe Balbi wrote: > Hi, > > On Fri, Oct 19, 2012 at 04:08:05PM +0530, Venu Byravarasu wrote: >> NVIDIA produces several Tegra SoCs viz Tegra20, Tegra30 etc. In >> order to support USB PHY drivers on these SoCs, existing PHY >> driver is split into SoC agnostic common USB

Re: [PATCH 1/1] usb: gadget: Don't attempt to dequeue requests for a disabled USB endpoint on Freescale hardware

2012-10-19 Thread Felipe Balbi
Hi, On Fri, Oct 19, 2012 at 06:19:26PM +0100, Simon Haggett wrote: > Some gadget drivers may attempt to dequeue requests for an endpoint that has > already been disabled. For example, in the UVC gadget driver, > uvc_function_set_alt() > will call usb_ep_disable() when alt setting 0 is selected. W

[PATCH 1/1] usb: gadget: Don't attempt to dequeue requests for a disabled USB endpoint on Freescale hardware

2012-10-19 Thread Simon Haggett
Some gadget drivers may attempt to dequeue requests for an endpoint that has already been disabled. For example, in the UVC gadget driver, uvc_function_set_alt() will call usb_ep_disable() when alt setting 0 is selected. When the userspace application subsequently issues the VIDIOC_STREAMOFF ioctl

[GIT PATCH] USB patches for 3.7-rc2

2012-10-19 Thread Greg KH
The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14:41:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-3.7-rc1 for you to fetch changes up to 4b35f1c52943851b310afb

Re: usb audio race at disconnect time

2012-10-19 Thread Takashi Iwai
At Thu, 18 Oct 2012 17:39:05 +0200, Matthieu CASTET wrote: > > Takashi Iwai a écrit : > > At Tue, 16 Oct 2012 18:01:13 +0200, > > Matthieu CASTET wrote: > >> Takashi Iwai a écrit : > >>> At Mon, 15 Oct 2012 19:41:40 +0200, > >>> Matthieu CASTET wrote: > Hi Takashi, > > But I believe

[PATCH 0/2] Yet more USB-audio disconnection race fixes

2012-10-19 Thread Takashi Iwai
Hi, these two patches are applied on the top of previous four patches for fixing races at disconnection of USB-audio devices. These rather cover the core codes than USB-specific. The whole six patches are found in topic/usb-disconnect-fix branch of sound-unstable git tree, too. git://git.kerne

[PATCH 1/2] ALSA: Add a reference counter to card instance

2012-10-19 Thread Takashi Iwai
For more strict protection for wild disconnections, a refcount is introduced to the card instance, and let it up/down when an object is referred via snd_lookup_*() in the open ops. The free-after-last-close check is also changed to check this refcount instead of the empty list, too. Signed-off-by

[PATCH 2/2] ALSA: Avoid endless sleep after disconnect

2012-10-19 Thread Takashi Iwai
When disconnect callback is called, each component should wake up sleepers and check card->shutdown flag for avoiding the endless sleep blocking the proper resource release. Signed-off-by: Takashi Iwai --- sound/core/control.c | 2 ++ sound/core/hwdep.c | 7 +++ sound/core/oss/pc

[RFC PATCH 0/2] Update ehci-platform driver to support devicetree

2012-10-19 Thread Tony Prisk
This patchset updates the ehci-platform.c driver to allow device tree probing. I have dropped support for the three function pointers (power_on, power_off and power_suspend). If someone has knowledge of the power sequence functions that are being implemented, these functions could be replaced (Sorr

[PATCH 1/2] USB: Update EHCI-platform driver to devicetree.

2012-10-19 Thread Tony Prisk
This patch adds devicetree support to the EHCI-platform driver, and removes the now unneeded ehci-vt8500.c Existing platform properties are maintained, with the exception the power_(on/off) and suspend function pointers. Signed-off-by: Tony Prisk --- drivers/usb/host/ehci-hcd.c |5 --

[PATCH 2/2] USB: doc: Binding document for ehci-platform driver

2012-10-19 Thread Tony Prisk
Add a binding document for ehci-platform driver. Signed-off-by: Tony Prisk --- .../devicetree/bindings/usb/ehci-platform.txt | 22 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/ehci-platform.txt diff --git a/Documentation/