[PATCH] usb: otg: twl4030-usb: spin_unlock_irq in interrupt handler

2012-07-21 Thread Denis Efremov
The replacement of spin_lock_irq/spin_unlock_irq pair in twl4030_usb_linkstat function by spin_lock_irqsave/spin_lock_irqrestore pair. The twl4030_usb_linkstat function is called from twl4030_usb_irq interrupt handler. Therefore reenabling of handler interrupt line should be avoided. Found by

Re: [PATCHv2 2/2] ARM: vt8500: Add support for UHCI companion controller

2012-07-21 Thread Arnd Bergmann
On Friday 20 July 2012, Tony Prisk wrote: Add support for a generic non-pci UHCI companion controller. Existing board files for arch-vt8500 updated to include UHCI support. Signed-off-by: Tony Prisk li...@prisktech.co.nz Looks almost good, but * please add a binding document * cc the

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Rafael J. Wysocki
On Saturday, July 21, 2012, Ming Lei wrote: CC guys who discussed the problem in the below link in Jan. : http://marc.info/?t=13252895602r=10w=2 On Fri, Jul 20, 2012 at 8:33 PM, Ming Lei tom.leim...@gmail.com wrote: The RFC patch is just for discussing if the idea of deferring

[PATCHv4 1/2] ARM: vt8500: Update vt8500-ehci driver to support device tree.

2012-07-21 Thread Tony Prisk
Signed-off-by: Tony Prisk li...@prisktech.co.nz --- v4: Minor changes to the documentation of required properties. .../devicetree/bindings/usb/vt8500-ehci.txt| 12 drivers/usb/host/ehci-vt8500.c |9 + 2 files changed, 21 insertions(+), 0

[PATCHv4 2/2] ARM: vt8500: Add support for UHCI companion controller

2012-07-21 Thread Tony Prisk
Add support for a generic non-pci UHCI companion controller. Existing board files for arch-vt8500 updated to include UHCI support. Signed-off-by: Tony Prisk li...@prisktech.co.nz --- v4: Add the binding documentation. Changed the OF .compatibility to 'platform-uhci'

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Ming Lei
On Sat, Jul 21, 2012 at 5:56 PM, Rafael J. Wysocki r...@sisk.pl wrote: On Saturday, July 21, 2012, Ming Lei wrote: CC guys who discussed the problem in the below link in Jan. : http://marc.info/?t=13252895602r=10w=2 On Fri, Jul 20, 2012 at 8:33 PM, Ming Lei tom.leim...@gmail.com

Re: unneeded SubClass and Protocol entries in unusual_devs.h

2012-07-21 Thread Alan Stern
On Fri, 20 Jul 2012, Mason wrote: Hello, I'm testing an embedded system, which is running a somewhat dated (May 2009) 2.6.28.10 kernel. When I plug this cheap 2-GB USB drive, I get the following message: hub_port_init 1 Plug in USB Port3 udev-speed: 3 usb 3-1: configuration #1

linux usb

2012-07-21 Thread chetan cr123
Hello, Kindly let me know how an usb device connection is reported to kernel when we plug an usb cable. I see that Udev/ueventd is responsible for that. I want to know how exactly usb device will report to (kernel or udev) when an device is plugged. how can to create an sysfs(node) from gadget

Re: linux usb

2012-07-21 Thread Greg KH
On Sat, Jul 21, 2012 at 08:06:01PM +0530, chetan cr123 wrote: Hello, Kindly let me know how an usb device connection is reported to kernel when we plug an usb cable. I see that Udev/ueventd is responsible for that. I want to know how exactly usb device will report to (kernel or udev) when an

Re: [PATCHv2 2/2] ARM: vt8500: Add support for UHCI companion controller

2012-07-21 Thread Sergei Shtylyov
Hello. On 21-07-2012 2:10, Arnd Bergmann wrote: +static const struct of_device_id platform_uhci_ids[] = { + { .compatible = of-uhci, }, + {} +}; The of- part is clearly meaningless in the binding that is about of devices. Using usb-uhci would be more appropriate I think, but

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Rafael J. Wysocki
On Saturday, July 21, 2012, Ming Lei wrote: On Sat, Jul 21, 2012 at 5:56 PM, Rafael J. Wysocki r...@sisk.pl wrote: On Saturday, July 21, 2012, Ming Lei wrote: CC guys who discussed the problem in the below link in Jan. : http://marc.info/?t=13252895602r=10w=2 On Fri, Jul 20,

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Linus Torvalds
On Fri, Jul 20, 2012 at 5:33 AM, Ming Lei tom.leim...@gmail.com wrote: The RFC patch is just for discussing if the idea of deferring request_firmware is doable for addressing the issue of request_firmware in resume path, which is caused by driver unbind/rebind during resume. NAK. It really

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Rafael J. Wysocki
On Friday, July 20, 2012, Ming Lei wrote: The RFC patch is just for discussing if the idea of deferring request_firmware is doable for addressing the issue of request_firmware in resume path, which is caused by driver unbind/rebind during resume. At least usb bus is involved in such things,

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Rafael J. Wysocki
On Saturday, July 21, 2012, Linus Torvalds wrote: On Fri, Jul 20, 2012 at 5:33 AM, Ming Lei tom.leim...@gmail.com wrote: The RFC patch is just for discussing if the idea of deferring request_firmware is doable for addressing the issue of request_firmware in resume path, which is caused by

Re: [RFC PATCH] USB: enable power/wakeup to control remote wakeup in the runtime suspend

2012-07-21 Thread Alan Stern
On Fri, 20 Jul 2012, Sarah Sharp wrote: Well, then the device violates the standard for power consumption. Not necessarily. Tianyu, are you measuring the whole system power consumption or just the power drawn by the device? How are you measuring power consumption? Also, are you sure

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Ming Lei
Thanks for your so detailed comments. On Sun, Jul 22, 2012 at 1:31 AM, Linus Torvalds torva...@linux-foundation.org wrote: On Fri, Jul 20, 2012 at 5:33 AM, Ming Lei tom.leim...@gmail.com wrote: The RFC patch is just for discussing if the idea of deferring request_firmware is doable for

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Ming Lei
On Sun, Jul 22, 2012 at 1:49 AM, Rafael J. Wysocki r...@sisk.pl wrote: On Friday, July 20, 2012, Ming Lei wrote: + if (system_state != SYSTEM_RUNNING) + return -EPROBE_DEFER; You can't just return here, _request_firmware_cleanup() has to be done still. Good catch, thanks.

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread david
On Sat, 21 Jul 2012, Linus Torvalds wrote: In my opinion, we should cache firmware data for all hotplug devices or devices which may experience power loss automatically in kernel during suspend-resume cycle because all such devices may be disconnected and connected again during suspend-resume

Re: [RFC] firmware load: defer request_firmware during early boot and resume

2012-07-21 Thread Francois Romieu
Ming Lei tom.leim...@gmail.com : On Sun, Jul 22, 2012 at 1:31 AM, Linus Torvalds torva...@linux-foundation.org wrote: On Fri, Jul 20, 2012 at 5:33 AM, Ming Lei tom.leim...@gmail.com wrote: The RFC patch is just for discussing if the idea of deferring request_firmware is doable for

qmi wwan interface does not work in this version 3.5.rc7.next.20120720

2012-07-21 Thread Thomas Schäfer
Hi, with http://download.opensuse.org/repositories/Kernel:/linux- next/standard/x86_64/kernel-vanilla-3.5.rc7.next.20120720-1.1.x86_64.rpm No one of my sticks works in qmi/wwan mode anymore. The modules seems to be loaded, option and qmi_wwan, but the dial-in-skripts do nothing. While

Re: [PATCH 0/8] USB port power off mechanism

2012-07-21 Thread Greg Kroah-Hartman
On Tue, Jul 17, 2012 at 03:28:41PM -0700, Sarah Sharp wrote: The following changes since commit 66177cc10295ffdfc613c06f59b07a577d91ee82: usb: s3c-hsotg: Add header file protection macros in s3c-hsotg.h (2012-07-17 10:54:29 -0700) are available in the git repository at: