Occasional resume delays, possibly related to failure to resume internal USB devices?

2013-09-01 Thread Bjørn Mork
I've had this problem now and then for a couple of months: On system resume, my laptop will appear frozen for more than 30 seconds before finally responding. No keypress or other external input seems to have any effect. Pressing e.g. CapsLock will not lit the LED. But when the laptop finally comes

[PATCH] USB2NET : SR9700 : One chip USB 1.1 USB2NET SR9700Device Driver Support

2013-09-01 Thread liujunliang_ljl
From: Liu Junliang Signed-off-by: Liu Junliang --- drivers/net/usb/Kconfig |8 + drivers/net/usb/Makefile |1 + drivers/net/usb/sr9700.c | 560 ++ drivers/net/usb/sr9700.h | 173 ++ 4 files changed, 742 insertions(+) create mo

Re: Bug report: 045e:0721 Microsoft LifeCam NX-3000 not detected

2013-09-01 Thread Jürgen Liebmann
Your new patch get back the bug. Then I have decrease the delay in steps of 25. With delay 100 camera still fails. With delay 75 camera works sometimes. Some plug in failes, some other works. With delay 50 camera always work okay! Am 31.08.2013 20:12, schrieb Alan Stern: On Sat, 31 Aug 2013, J

[PATCH 0/2 v3] Various fixes for the dummy_hcd driver

2013-09-01 Thread Philippe De Swert
These two patches fix some minor issues in the dummy_hcd driver. Both errors were detected with the help of coverity analysis. These patches have been updated based on Alan Sterns comments. For the first patch I have harmonized both occurences of the different clean-up routine as suggested. And

[PATCH 1/2 v3] usb:gadget:dummy_hcd : Avoid infinite loop

2013-09-01 Thread Philippe De Swert
When an error occurs adding a udc platform device there is a risk of an infinite loop. If more than one platform device was added i will remain >= than 0. The intention seems to clean up all the different already added platform devices before the failure occurs, so fixed the code to actually do

[PATCH 2/2 v3] usb:gadget:dummy_hcd : Detect port and link state correctly to avoid unreachable code

2013-09-01 Thread Philippe De Swert
Since USB_SS_PORT_LS_U0 is 0x the & operation with the port state would always be 0. Thus the if would never be true. Moreover USB_PORT_STAT_ENABLE is 0x0002 and as such would never equal to 1. What we actually look for is a port that is enabled and in U0/link active state. Thanks to Alan Ster

Re: [PATCH 1/2 v3] usb:gadget:dummy_hcd : Avoid infinite loop

2013-09-01 Thread Alan Stern
On Sun, 1 Sep 2013, Philippe De Swert wrote: > When an error occurs adding a udc platform device there is a risk of an > infinite loop. > If more than one platform device was added i will remain >= than 0. The > intention seems > to clean up all the different already added platform devices befor

Re: [PATCH 2/2 v3] usb:gadget:dummy_hcd : Detect port and link state correctly to avoid unreachable code

2013-09-01 Thread Alan Stern
On Sun, 1 Sep 2013, Philippe De Swert wrote: > Since USB_SS_PORT_LS_U0 is 0x the & operation with the port state would > always be 0. Thus the if would never be true. Moreover USB_PORT_STAT_ENABLE > is 0x0002 and as such would never equal to 1. What we actually look for is a > port that is ena

Re: Occasional resume delays, possibly related to failure to resume internal USB devices?

2013-09-01 Thread Alan Stern
On Sun, 1 Sep 2013, Bjørn Mork wrote: > I've had this problem now and then for a couple of months: On system > resume, my laptop will appear frozen for more than 30 seconds before > finally responding. No keypress or other external input seems to have > any effect. Pressing e.g. CapsLock will not

Re: Bug report: 045e:0721 Microsoft LifeCam NX-3000 not detected

2013-09-01 Thread Alan Stern
On Sun, 1 Sep 2013, Jürgen Liebmann wrote: > Your new patch get back the bug. > > Then I have decrease the delay in steps of 25. > With delay 100 camera still fails. > With delay 75 camera works sometimes. Some plug in failes, some other works. > With delay 50 camera always work okay! This prove

Re: Bug report: 045e:0721 Microsoft LifeCam NX-3000 not detected

2013-09-01 Thread Laurent Pinchart
Hi Jürgen, On Sunday 01 September 2013 08:06:18 Jürgen Liebmann wrote: > Laurent, how can I set the UVC_QUIRK_PROBE_DEF quirk? > I'm only a user, not a expert or programmer! 1. Unplug your webcam 2. Unload the uvcvideo module (rmmod uvcvideo) 3. Reload the module with the quirks parameter set to

xhci usb issues

2013-09-01 Thread joe M
Hello, I am not able to figure out how to connect a 1.11 usb full speed device to a USB 3.0 port. This is the output in syslog when I rmmod xhci_hcd and modprobe xhci-hcd: http://codepad.org/8mc0tABX These are the messages that seem to be causing the issue: Sep 1 15:57:03 master kernel: [ 1182.

Re: xhci usb issues

2013-09-01 Thread joe M
Hello, Thought this might be of some help too. sudo lspci -vvv 00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF

Re: [PATCH 1/3] usbcore: set lpm_capable field for LPM capable root hubs

2013-09-01 Thread Xenia Ragiadakou
On 09/01/2013 06:04 AM, Greg KH wrote: On Sun, Sep 01, 2013 at 02:56:42AM +0200, Martin MOKREJŠ wrote: Martin MOKREJŠ wrote: Hi Xenia, I tried these 3 patches and ... I will rather leave it up to you to decide if everything went right. Attached is a diff of dmesg from unpatched and patched

Re: [PATCH 1/3] usbcore: set lpm_capable field for LPM capable root hubs

2013-09-01 Thread Greg KH
On Mon, Sep 02, 2013 at 12:25:30AM +0300, Xenia Ragiadakou wrote: > On 09/01/2013 06:04 AM, Greg KH wrote: > >On Sun, Sep 01, 2013 at 02:56:42AM +0200, Martin MOKREJŠ wrote: > >> > >>Martin MOKREJŠ wrote: > >>>Hi Xenia, > >>> I tried these 3 patches and ... I will rather leave it up to you to >

[PATCH] usbcore: add check on usb device's state before trying to disable lpm

2013-09-01 Thread Xenia Ragiadakou
This patch adds a check to ensure that the device's state is not NOTATTACHED, ATTACHED, POWERED or RECONNECTING before trying to disable lpm, because if the device is in one of those states the control transfer to disable device-initiated LPM will fail (as well as any transfer, since usb_submit_urb

[PATCH v2] usbcore: add check on usb device's state before trying to disable lpm

2013-09-01 Thread Xenia Ragiadakou
This patch adds a check to ensure that the device's state is not NOTATTACHED, ATTACHED, POWERED or RECONNECTING before trying to disable lpm, because if the device is in one of those states the control transfer to disable device-initiated LPM will fail (as well as any transfer, since usb_submit_urb

Re: [PATCH v2] usbcore: add check on usb device's state before trying to disable lpm

2013-09-01 Thread Alan Stern
On Mon, 2 Sep 2013, Xenia Ragiadakou wrote: > This patch adds a check to ensure that the device's state is not NOTATTACHED, > ATTACHED, POWERED or RECONNECTING before trying to disable lpm, because if > the device is in one of those states the control transfer to disable > device-initiated LPM wil

Re: [PATCH v3 1/3] extcon: extcon-gpio-usbvid: Generic USB VBUS/ID detection via GPIO

2013-09-01 Thread George Cherian
On 8/30/2013 12:23 PM, Chanwoo Choi wrote: Hi George, On 08/30/2013 03:15 PM, George Cherian wrote: Hi Chanwoo, On 8/30/2013 5:41 AM, Chanwoo Choi wrote: Hi George, On 08/29/2013 10:45 PM, George Cherian wrote: Hi Chanwoo, On 8/29/2013 5:42 PM, Chanwoo Choi wrote: [big snip ] I tested va

Re: [PATCH v3 1/3] extcon: extcon-gpio-usbvid: Generic USB VBUS/ID detection via GPIO

2013-09-01 Thread George Cherian
On 8/30/2013 12:44 PM, Chanwoo Choi wrote: Hi George, In addition, I add answer about that device driver control gpio pin directly. On 08/30/2013 03:15 PM, George Cherian wrote: Hi Chanwoo, On 8/30/2013 5:41 AM, Chanwoo Choi wrote: Hi George, On 08/29/2013 10:45 PM, George Cherian wrote: H

Re: Bug report: 045e:0721 Microsoft LifeCam NX-3000 not detected

2013-09-01 Thread Jürgen Liebmann
Thanks Laurent, this resolves the problem. The camera now works fine. But how can I load uvcvideo module with quirks parameter permanent? Am 01.09.2013 22:59, schrieb Laurent Pinchart: Hi Jürgen, On Sunday 01 September 2013 08:06:18 Jürgen Liebmann wrote: Laurent, how can I set the UVC_QUIRK_P

Re: "Set SEL for device-initiated U1 failed." errors

2013-09-01 Thread Pratyush Anand
On Fri, Aug 30, 2013 at 02:58:25AM +0800, Alan Stern wrote: > On Thu, 29 Aug 2013, Sarah Sharp wrote: > > > On Thu, Aug 29, 2013 at 10:06:16AM -0700, Greg Kroah-Hartman wrote: > > > Hi Sarah, > > > > > > I'm getting the following warnings from the 3.10.9 kernel all the time > > > when I unplug a

[PATCH] fsl/ehci: fix failure of checking PHY_CLK_VALID during reinitialization

2013-09-01 Thread Shengzhou Liu
In case of usb phy reinitialization: e.g. insmod usb-module(usb works well) -> rmmod usb-module -> insmod usb-module It found the PHY_CLK_VALID bit didn't work if it's not with the power-on reset. So we just check PHY_CLK_VALID bit during the stage with POR, this can be met by the tricky of checkin