Re: USB device cannot be reconnected and khubd blocked for more than 120 seconds

2013-01-12 Thread Lan Tianyu
On 2013年1月12日 15:48:59, Alex Riesen wrote: On Fri, Jan 11, 2013 at 10:04 PM, Alex Riesen raa.l...@gmail.com wrote: Hi, the USB stick (an Cruzer Titanium 2GB) was not recognized at any of the USB ports of this system (an System76 lemu4 laptop, XHCI device) after it was removed. If I attempt to

Re: [PATCH] usb: gadget: move the global the_dev variable to their users

2013-01-12 Thread Sebastian Andrzej Siewior
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Thu, Jan 10, 2013 at 12:23:49PM +0200, Felipe Balbi wrote: On Thu, Nov 08, 2012 at 07:24:13PM +0100, Sebastian Andrzej Siewior wrote: the u_ether.c file has a global variable named the_dev which keeps a pointer to the network device after it

Re: TP-LINK HSUPA Modem MA180 2357:0201

2013-01-12 Thread Thomas Schäfer
Am Mittwoch, 9. Januar 2013, 22:24:14 schrieben Sie: No further work need to be done in the kernel. Are you able to provide the Windows .INF files from the device so we can determine what kernel drivers each interface of the device requires? Basically, instead of modeswitching the device,

[PATCH] CDC_NCM adding support IFF_NOARP for infineon modem platform

2013-01-12 Thread Wei Shuai
Infineon(now Intel) HSPA Modem platform NCM cannot support ARP. so I introduce a flag CDC_NCM_DRIVER_DATA_NOARP which is defined in driver_info:data. so later on, if more such buggy devices are found, they could use same flag to handle. Signed-off-by: Wei Shuai cpuw...@gmail.com ---

[PATCH] USB: misc: fixup smatch WARNING

2013-01-12 Thread Dongjin Kim
This patch fixes the warning, 6a099c63650e50ebf7d1259b859a3d230aec4207 [4/10] USB: misc: Add USB3503 High-Speed Hub Controller drivers/usb/misc/usb3503.c:238 usb3503_probe() error: we previously assumed 'pdata' could be null (see line 196) Signed-off-by: Dongjin Kim tobet...@gmail.com ---

Re: Linux 3.8-rc1 - another regression on USB :-(

2013-01-12 Thread Andreas Mohr
Hi, Greg, Linus, It sounds insane, but after banging on the issue I have found out that USB problem is caused (also in vanilla kernel) with a config change: USB-all built as modules - bad USB USB core built in, UHCI/EHCI modules - semi functional - but 1Mb/s transfer USB core and UHCI

[PATCH v2] drivers/usb/host/uhci-* : check buffer length to avoid memory overflow

2013-01-12 Thread Chen Gang
for function uhci_sprint_schedule: the buffer len is MAX_OUTPUT: 64 * 1024, which may not be enough: may loop UHCI_NUMFRAMES times (UHCI_NUMFRAMES is 1024) each time of loop may get more than 64 bytes so need check the buffer length to avoid memory overflow this patch fix

Re: Re: how to disable usb hub suspend function

2013-01-12 Thread Alan Stern
On Sat, 12 Jan 2013, gavin.kx wrote: i use it on the android platform, and i can't generate the control file. what can i do ? For questions about Android, you will have to ask the Android developers. We can't help you here, sorry. Alan Stern -- To unsubscribe from this list: send the line

Re: 回复: 回复: how to disable usb hub suspend function

2013-01-12 Thread Alan Stern
On Sat, 12 Jan 2013, gavin.kx wrote: not only disable auto suspend, also disable usb suspend when system suspend. There is no way to do that. It oesn't even make sense. How can you suspend the entire system while leaving the hub at full power? Alan Stern -- To unsubscribe from this list:

Re: Linux 3.8-rc1 - another regression on USB :-(

2013-01-12 Thread Oliver Neukum
On Saturday 12 January 2013 14:16:02 Andreas Mohr wrote: Greg, Linus, It sounds insane, but after banging on the issue I have found out that USB problem is caused (also in vanilla kernel) with a config change: USB-all built as modules - bad USB USB core built in, UHCI/EHCI modules -

Re: USB device cannot be reconnected and khubd blocked for more than 120 seconds

2013-01-12 Thread Alan Stern
On Sat, 12 Jan 2013, Alex Riesen wrote: On Fri, Jan 11, 2013 at 10:04 PM, Alex Riesen raa.l...@gmail.com wrote: Hi, the USB stick (an Cruzer Titanium 2GB) was not recognized at any of the USB ports of this system (an System76 lemu4 laptop, XHCI device) after it was removed. If I

Re: USB device cannot be reconnected and khubd blocked for more than 120 seconds

2013-01-12 Thread Alex Riesen
On Sat, Jan 12, 2013 at 6:37 PM, Alan Stern st...@rowland.harvard.edu wrote: On Sat, 12 Jan 2013, Alex Riesen wrote: One more detail: I usually use the noop elevator. That time it was the deadline. And I just reproduced it easily with deadline. I doubt the elevator has anything to do with

Re: USB device cannot be reconnected and khubd blocked for more than 120 seconds

2013-01-12 Thread Alex Riesen
On Sat, Jan 12, 2013 at 6:37 PM, Alan Stern st...@rowland.harvard.edu wrote: On Sat, 12 Jan 2013, Alex Riesen wrote: On Fri, Jan 11, 2013 at 10:04 PM, Alex Riesen raa.l...@gmail.com wrote: the USB stick (an Cruzer Titanium 2GB) was not recognized at any of the USB ports of this system (an

TP-LINK HSUPA Modem MA180 2357:0201

2013-01-12 Thread Thomas Schäfer
Here are all infos about this device. I think I catched the relevant data. Switching to modem/network-mode works with eject /dev/sr0 It works with option /dev/ttyUSB2 has accepted at-commands and qmi_wwan (in testcase with interface 1 instead of 0) I was able get an IPv4- connection via

Re: USB device cannot be reconnected and khubd blocked for more than 120 seconds

2013-01-12 Thread Alex Riesen
On Sat, Jan 12, 2013 at 8:39 PM, Alex Riesen raa.l...@gmail.com wrote: On Sat, Jan 12, 2013 at 6:37 PM, Alan Stern st...@rowland.harvard.edu wrote: On Sat, 12 Jan 2013, Alex Riesen wrote: One more detail: I usually use the noop elevator. That time it was the deadline. And I just reproduced it

Re: USB device cannot be reconnected and khubd blocked for more than 120 seconds

2013-01-12 Thread Alan Stern
On Sat, 12 Jan 2013, Alex Riesen wrote: On Sat, Jan 12, 2013 at 8:39 PM, Alex Riesen raa.l...@gmail.com wrote: On Sat, Jan 12, 2013 at 6:37 PM, Alan Stern st...@rowland.harvard.edu wrote: On Sat, 12 Jan 2013, Alex Riesen wrote: One more detail: I usually use the noop elevator. That time

Re: linux-3.7.1: kmemleak reports in comm usb-storage?

2013-01-12 Thread Alan Stern
On Sat, 12 Jan 2013, Martin Mokrejs wrote: Alan Stern wrote: On Fri, 11 Jan 2013, Martin Mokrejs wrote: Hi, I am not sure how should I interpret this but I am attaching the whole kmemleak file I have after # w 23:02:23 up 2 days, 2:43, 16 users, load average: 2.17, 1.85,

Re: linux-3.7.1: kmemleak reports in comm usb-storage?

2013-01-12 Thread Martin Mokrejs
Alan Stern wrote: On Sat, 12 Jan 2013, Martin Mokrejs wrote: Alan Stern wrote: On Fri, 11 Jan 2013, Martin Mokrejs wrote: Hi, I am not sure how should I interpret this but I am attaching the whole kmemleak file I have after # w 23:02:23 up 2 days, 2:43, 16 users, load average:

Re: [PATCH] CDC_NCM adding support IFF_NOARP for infineon modem platform

2013-01-12 Thread David Miller
From: Wei Shuai cpuw...@gmail.com Date: Sat, 12 Jan 2013 19:34:39 +0800 Infineon(now Intel) HSPA Modem platform NCM cannot support ARP. so I introduce a flag CDC_NCM_DRIVER_DATA_NOARP which is defined in driver_info:data. so later on, if more such buggy devices are found, they could use same

Re: Re: how to disable usb hub suspend function

2013-01-12 Thread gavin.kx
if i use suspend function, the hub may occur error, if i removed the hub before suspend then can avoid the suspend? if it could, how can i do ? how to remove and add ? gavin.kx From: Alan Stern Date: 2013-01-12 23:37 To: gavin.kx CC: linux-usb Subject: Re:回复: 回复: how to disable usb hub

Re: Re: how to disable usb hub suspend function

2013-01-12 Thread gavin.kx
if i use suspend function, the hub may occur error, if i removed the hub before suspend then can avoid the suspend? if it could, how can i do ? how to remove and add ? gavin.kx From: Ming Lei Date: 2013-01-11 23:10 To: gavin.kx CC: linux-usb Subject: Re: how to disable usb hub suspend

回复: Re: how to disable usb hub suspend function

2013-01-12 Thread gavin.kx
and does have a way to force to remove the usb device? my hub power is supplied by battery, it can work while CPU sleep. gavin.kx 发件人: gavin.kx 发送时间: 2013-01-13 10:59 收件人: Alan Stern 抄送: linux-usb 主题: Re: Re: how to disable usb hub suspend function if i use suspend function, the hub may