[PATCH -next] usb: gadget: remove unused variable in uac2_pcm_trigger()

2012-12-02 Thread Wei Yongjun
From: Wei Yongjun The variable ep is initialized but never used otherwise, so remove the unused variable. Signed-off-by: Wei Yongjun --- drivers/usb/gadget/f_uac2.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/usb/gadget/f_uac2.c b/drivers/usb/gadget/f_ua

Unchecked user argument in ehci-dbg.c debug_lpm_write()?

2012-12-02 Thread Andreas Mohr
Hi, drivers/usb/host/ehci-dbg.c git HEAD has: if (strncmp(buf, "enable", 5) == 0) { if (strict_strtoul(buf + 7, 10, &port)) return -EINVAL; params = ehci_readl(ehci, &ehci->caps->hcs_params); if (port > HCS_N_PORTS(pa

[RFC PATCH 0/5] USB: prepare for support port power off on non-ACPI device

2012-12-02 Thread Ming Lei
Hi, This patch set trys to prepare for support of usb port power off mechanism on non-ACPI devices. The port power off mechasnism has been discussed for some time[1][2], and support for ACPI devices has been in shape: - usb port device is introduced - port connect type is introduc

[RFC PATCH 1/5] Device Power: introduce power controller

2012-12-02 Thread Ming Lei
Power controller is an abstract on simple power on/off switch. One power controller can bind to more than one device, which provides power logically, for example, we can think one usb port in hub provides power to the usb device attached to the port, even though the power is supplied actually by o

[RFC PATCH 2/5] driver core: introduce global device ADD/DEL notifier

2012-12-02 Thread Ming Lei
The global device ADD/DEL notifier is introduced so that some platform code can bind some device resource to the device. When this platform code runs, there is no any bus information about the device, so have to resort to the global notifier. Cc: Andy Green Cc: Roger Quadros Cc: Alan Stern Cc:

[RFC PATCH 3/5] USB: hub: apply power controller on usb port

2012-12-02 Thread Ming Lei
This patch applies the power controller on usb port, so that hub driver can power on one port which isn't provided power by bus. Cc: Andy Green Cc: Roger Quadros Cc: Alan Stern Cc: Felipe Balbi Signed-off-by: Ming Lei --- drivers/usb/core/hub.c | 31 --- inclu

[RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-02 Thread Ming Lei
This patch defines power controller for powering on/off LAN95xx USB hub and USB ethernet devices, and implements one match function to associate the power controller with related USB port device. The big problem of this approach is that it depends on the global device ADD/DEL notifier. Another ide

[RFC PATCH 5/5] usb: omap ehci: remove all regulator control from ehci omap

2012-12-02 Thread Ming Lei
From: Andy Green This series migrates it to the hub driver as suggested by Felipe Balbi. Cc: Andy Green Cc: Roger Quadros Cc: Alan Stern Cc: Felipe Balbi Signed-off-by: Andy Green Signed-off-by: Ming Lei --- drivers/usb/host/ehci-omap.c | 36 1 file

Unable to reinsert the am35x MUSB module

2012-12-02 Thread Dmitry Lifshitz
Hi, We are running kernel v3.5.7 on am3517 based hardware (CM-T3517 module). Recently we faced with the following issue: am35x MUSB module fails when trying to reinsert it. It fails with the message "musb-hdrc.0: failed to claim resource 1", see the console clip below: root@cm-debian:~# modpr

Re: [RFC PATCH 1/5] Device Power: introduce power controller

2012-12-02 Thread Andy Green
On 02/12/12 23:01, the mail apparently from Ming Lei included: Power controller is an abstract on simple power on/off switch. One power controller can bind to more than one device, which provides power logically, for example, we can think one usb port in hub provides power to the usb device atta

Re: [RFC PATCH 2/5] driver core: introduce global device ADD/DEL notifier

2012-12-02 Thread Andy Green
On 02/12/12 23:01, the mail apparently from Ming Lei included: The global device ADD/DEL notifier is introduced so that some platform code can bind some device resource to the device. When this platform code runs, there is no any bus information about the device, so have to resort to the global n

Re: [RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-02 Thread Andy Green
On 02/12/12 23:01, the mail apparently from Ming Lei included: Hi - This patch defines power controller for powering on/off LAN95xx USB hub and USB ethernet devices, and implements one match function to associate the power controller with related USB port device. The big problem of this approac

Re: [PATCH v2 22/22] mfd: omap-usb-host: Don't spam console on clk_set_parent failure

2012-12-02 Thread Sergei Shtylyov
Hello. On 28-11-2012 18:49, Roger Quadros wrote: clk_set_parent is expected to fail on OMAP3 platforms. We don't consider that as fatal so don't spam console. Signed-off-by: Roger Quadros --- drivers/mfd/omap-usb-host.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-)

Re: [PATCH v2 13/22] mfd: omap-usb-host: override number of ports from platform data

2012-12-02 Thread Sergei Shtylyov
Hello. On 28-11-2012 18:49, Roger Quadros wrote: Both OMAP4 and 5 exhibit the same revision ID in the REVISION register but they have different number of ports i.e. 2 and 3 respectively. So we can't rely on REVISION register for number of ports on OMAP5 and depend on platform data (or device tr

Re: Unchecked user argument in ehci-dbg.c debug_lpm_write()?

2012-12-02 Thread Alan Stern
On Sun, 2 Dec 2012, Andreas Mohr wrote: > Hi, > > drivers/usb/host/ehci-dbg.c git HEAD has: > > if (strncmp(buf, "enable", 5) == 0) { > if (strict_strtoul(buf + 7, 10, &port)) > return -EINVAL; > params = ehci_readl(ehci, &ehci->caps->hcs_p

Re: USB issue with kernel 3.6

2012-12-02 Thread Alan Stern
On Sat, 1 Dec 2012, Piergiorgio Sartor wrote: > Hi Alan, > > I updated the bugzilla entry with some attachments. > > One (split in two) is the log from usbmon with the patch > you provided (I hope I did it correctly). This usbmon trace doesn't contain anything significantly different from the p

Re: USB issue with kernel 3.6

2012-12-02 Thread Piergiorgio Sartor
On Sun, Dec 02, 2012 at 01:03:22PM -0500, Alan Stern wrote: > On Sat, 1 Dec 2012, Piergiorgio Sartor wrote: > > > Hi Alan, > > > > I updated the bugzilla entry with some attachments. > > > > One (split in two) is the log from usbmon with the patch > > you provided (I hope I did it correctly). >

Re: USB issue with kernel 3.6

2012-12-02 Thread Alan Stern
On Sun, 2 Dec 2012, Piergiorgio Sartor wrote: > I'll give it another round, with dmesg > > How about the registers? Any hint there? No, not really. At least, not that I can tell at this point; maybe later on it will be more useful. Alan Stern -- To unsubscribe from this list: send the line "

[PATCH v2] usb_8dev: Add support for USB2CAN interface from 8 devices

2012-12-02 Thread krumbo...@universalnet.at
Add device driver for USB2CAN interface from "8 devices" (http://www.8devices.com). Signed-off-by: Bernd Krumboeck --- drivers/net/can/usb/Kconfig|6 + drivers/net/can/usb/Makefile |1 + drivers/net/can/usb/usb_8dev.c | 1098 3 files chang

Re: [RFC PATCH 1/5] Device Power: introduce power controller

2012-12-02 Thread Ming Lei
On Mon, Dec 3, 2012 at 12:02 AM, Andy Green wrote: > On 02/12/12 23:01, the mail apparently from Ming Lei included: > >> Power controller is an abstract on simple power on/off switch. >> >> One power controller can bind to more than one device, which >> provides power logically, for example, we ca

Re: [RFC PATCH 2/5] driver core: introduce global device ADD/DEL notifier

2012-12-02 Thread Ming Lei
On Mon, Dec 3, 2012 at 12:13 AM, Andy Green wrote: > On 02/12/12 23:01, the mail apparently from Ming Lei included: > >> The global device ADD/DEL notifier is introduced so that >> some platform code can bind some device resource to the >> device. When this platform code runs, there is no any bus

Re: [RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-02 Thread Ming Lei
On Mon, Dec 3, 2012 at 12:37 AM, Andy Green wrote: > On 02/12/12 23:01, the mail apparently from Ming Lei included: > > Hi - > > >> This patch defines power controller for powering on/off LAN95xx >> USB hub and USB ethernet devices, and implements one match function >> to associate the power contr

Re: [RFC PATCH 4/5] arm: omap2: support port power on lan95xx devices

2012-12-02 Thread Andy Green
On 03/12/12 12:11, the mail apparently from Ming Lei included: On Mon, Dec 3, 2012 at 12:37 AM, Andy Green wrote: On 02/12/12 23:01, the mail apparently from Ming Lei included: Hi - This patch defines power controller for powering on/off LAN95xx USB hub and USB ethernet devices, and impleme

Re: [PATCH v2 0/1] Input: xpad - Implement wireless controller LED setting and fix connect time LED setting

2012-12-02 Thread Dmitry Torokhov
On Fri, Nov 30, 2012 at 08:13:29PM -0800, Chris Moeller wrote: > On Fri, 30 Nov 2012 14:30:23 -0800 > Dmitry Torokhov wrote: > > > Hi Chris, > > > > On Friday, November 30, 2012 01:54:06 PM Chris Moeller wrote: > > > I've submitted versions of this with prior patch sets, and this part > > > was

Re: [PATCH v2 22/22] mfd: omap-usb-host: Don't spam console on clk_set_parent failure

2012-12-02 Thread Bjørn Mork
Sergei Shtylyov writes: > On 28-11-2012 18:49, Roger Quadros wrote: >> ret = clk_set_parent(omap->utmi_clk[0], >> omap->xclk60mhsp1_ck); >> if (ret != 0) >> -dev_err(dev, "xclk60mhsp1_ck set parent" >> +