[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 Linu

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 Looks almost good, but * please add a binding document * cc the maintainers and usb m

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=13252895602&r=10&w=2 > > On Fri, Jul 20, 2012 at 8:33 PM, Ming Lei wrote: > > The RFC patch is just for discussing if the idea of deferring > > request_fi

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

2012-07-21 Thread Tony Prisk
Signed-off-by: Tony Prisk --- 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 deletions(-) create mode

[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 --- v4: Add the binding documentation. Changed the OF .compatibility to 'platform-uhci' .../devicetree/bindings/usb/platform-uhci.txt

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 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=13252895602&r=10&w=2 >> >> On Fri, Jul 20, 2012 at 8:33 PM, Ming Lei wrote: >> > The RFC pat

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: configurati

Re: unneeded SubClass and Protocol entries in unusual_devs.h

2012-07-21 Thread Alan Stern
On Fri, 20 Jul 2012, Mason wrote: > Sorry, my brain glitched for a moment, looking at the device nodes, > instead of the appropriate mount point. > > # ls -l /mnt/sda/ > -rwxrwxrwx1 root 0 572928 Mar 27 2012 hfs.exe > > sda instead of sda1 means there is no MBR, thus no partiti

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 driv

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) > wh

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 ma

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 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=13252895602&r=10&w=2 > >> > >> On Fri,

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 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 *has* to be handled

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 th

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 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 > > unbin

Re: linux usb

2012-07-21 Thread Alan Stern
On Sat, 21 Jul 2012, 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. It sounds like you're talking about the device's kernel, not the host's kernel. > I want to k

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 y

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 wrote: > On Fri, Jul 20, 2012 at 5:33 AM, 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

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 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 Linus Torvalds
On Sat, Jul 21, 2012 at 12:55 PM, Ming Lei wrote: > > Suppose it is not good for resume case, I think it still makes sense > for early boot situation, at least the patch will support to request > firmware inside init call, and allow drivers to be built in kernel i > case of requesting firmware fro

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 c

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 Sun, Jul 22, 2012 at 1:49 AM, Rafael J. Wysocki 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_cle

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

2012-07-21 Thread Francois Romieu
Ming Lei : > On Sun, Jul 22, 2012 at 1:31 AM, Linus Torvalds > wrote: > > On Fri, Jul 20, 2012 at 5:33 AM, 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

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 removin

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

2012-07-21 Thread Ming Lei
On Sun, Jul 22, 2012 at 4:38 AM, Linus Torvalds wrote: > > I agree that this is a problem. At the same time, early boot has some > of the exact same problems as resume has, and I do wish that people > would ask themselves: "why do I try to load the firmware at early boot > time"? > > There is real

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: > > git:

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

2012-07-21 Thread Bjørn Mork
[sorry for sending this twice to you Thomas. Bad app defaults made me enter the linux-usb list manually, and bad keyboard made me get it wrong] "Thomas Schäfer" wrote: >with > >http://download.opensuse.org/repositories/Kernel:/linux- >next/standard/x86_64/kernel-vanilla-3.5.rc7.next.20120720