[PATCH 2/2]linux-usb:optimize to match the Huawei USB storage devices and support new switch command

2013-02-03 Thread fangxiaozhi 00110321
From: fangxiaozhi 1. Optimize the match rules with new macro for Huawei USB storage devices, to avoid to load USB storage driver for the modem interface with Huawei devices. 2. Add to support new switch command for new Huawei USB dongles. Signed-off-by: fangxiaozhi -

[PATCH 1/2]linux-usb:Define a new macro for USB storage match rules

2013-02-03 Thread fangxiaozhi 00110321
From: fangxiaozhi 1. Define a new macro for USB storage match rules: matching with Vendor ID and interface descriptors. Signed-off-by: fangxiaozhi diff -uprN linux-3.8-rc6_orig/drivers/usb/storage/usb.c linux-3.8-rc6/dr

[PATCH v5] musb: blackfin: add bf60x support

2013-02-03 Thread Bob Liu
This patch makes musb can work on blackfin bf60x series soc platform. Bf60x uses MHDRC RTL version 2.0 musb ip core which don't need a lot of blackfin specific anomalies anymore. Signed-off-by: Bob Liu --- drivers/usb/musb/Kconfig |2 +- drivers/usb/musb/blackfin.c | 70 ++

[PATCH 4/8] drivers: net: usb: Remove unnecessary alloc/OOM messages

2013-02-03 Thread Joe Perches
alloc failures already get standardized OOM messages and a dump_stack. Signed-off-by: Joe Perches --- drivers/net/usb/ax88172a.c | 6 ++ drivers/net/usb/hso.c| 25 +++-- drivers/net/usb/sierra_net.c | 10 +++--- drivers/net/usb/smsc75xx.c | 6 ++ dri

[PATCH 0/8] drivers/net: Remove unnecessary alloc/OOM messages

2013-02-03 Thread Joe Perches
Remove all the OOM messages that follow kernel alloc failures as there is already a generic equivalent to these messages in the mm subsystem. Joe Perches (8): caif: Remove unnecessary alloc/OOM messages can: Remove unnecessary alloc/OOM messages ethernet: Remove unnecessary alloc/OOM message

Re: [PATCH 4/9] USB: chipidea: add PTW and PTS handling

2013-02-03 Thread Peter Chen
On Fri, Feb 01, 2013 at 02:50:54PM +0200, Alexander Shishkin wrote: > Michael Grzeschik writes: > > > On Fri, Feb 01, 2013 at 08:52:07AM +0100, Sascha Hauer wrote: > >> From: Michael Grzeschik > >> > >> This patch makes it possible to configure the PTW and PTS bits inside > >> the portsc regist

Re: Continuous stream of small bulk transfers hangs on OHCI-based systems

2013-02-03 Thread Alan Stern
On Sun, 3 Feb 2013, Mark Ferrell wrote: > I am not certain what it is worth, but I have managed to capture > usbmon/1u on a system which lost access to the ports, though it is quite > sizable. Right about 3MB/min of data. Good. > Here is the last few transactions before the device "appears" to

[PATCH v6 7/8] usb: chipidea: imx: add internal vbus regulator control

2013-02-03 Thread Peter Chen
- For host, the vbus should always be on. - For otg, the vbus is off defaultly, the vbus needs to be turned on/off when usb role switches. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci.h |2 + drivers/usb/chipidea/ci13xxx_imx.c | 80 2

[PATCH v6 6/8] usb: chipidea: udc: retire the flag CI13_PULLUP_ON_VBUS

2013-02-03 Thread Peter Chen
(change CI13XXX to CI13 to avoid junk email check) Now, we have handled vbus session in core driver when the vbus interrupt occurs, so our pullup operations are all according to vbus. Of cource, the software can still call .pullup when device connects to host if it wants to connect/disconnect with

[PATCH v6 5/8] usb: chipidea: udc: add pullup/pulldown dp at hw_device_state

2013-02-03 Thread Peter Chen
- During the connect/disconnect host, we need to pullup and pulldown dp - Make sure the dp is not pullup until the vbus is on when flag CI13XXX_PULLUP_ON_VBUS is set - Using hw_device_state when set run/stop bit Signed-off-by: Peter Chen --- drivers/usb/chipidea/udc.c | 10 -- 1 files

[PATCH v6 8/8] usb: chipidea: udc: fix the oops when plugs in usb cable after rmmod gadget

2013-02-03 Thread Peter Chen
When we rmmod gadget, we should call ci13xxx_stop unconditionally, as ci->driver needs to be cleared. Otherwise, we plug in usb cable again, it will think gadget is there, in fact, it is removed. Below is the oops this patch fixes. root@freescale ~$ ci_hdrc ci_hdrc.0: Connected to host Unable to h

[PATCH v6 4/8] usb: chipidea: consolidate kinds of APIs for both roles

2013-02-03 Thread Peter Chen
- Create/destroy the gadget at udc's init and destory function - start/stop API are used at otg id switch and probe routine - Defer some gadget operations at ci's delayed work queue Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci.h |1 - drivers/usb/chipidea/core.c | 78 +++

[PATCH v6 3/8] usb: chipidea: add otg id switch and vbus connect/disconnect detect

2013-02-03 Thread Peter Chen
The main design flow is the same with msm otg driver, that is the id and vbus interrupt are handled at core driver, others are handled by individual drivers. - At former design, when switch usb role from device->host, it will call udc_stop, it will remove the gadget driver, so when switch role fro

[PATCH v6 2/8] usb: chipidea: add otg file

2013-02-03 Thread Peter Chen
Implement struct usb_otg, In that way, calling otg_set_peripheral will not be failed at udc.c. Signed-off-by: Peter Chen --- drivers/usb/chipidea/Makefile |2 +- drivers/usb/chipidea/ci.h |2 + drivers/usb/chipidea/otg.c| 60 + drivers/us

[PATCH v6 1/8] Revert "USB: chipidea: add vbus detect for udc"

2013-02-03 Thread Peter Chen
vbus register is at otgsc, and vbus detect does not belong to device function. Revert this patch, and will move vbus detect function to drivers/usb/chipidea/udc.c This reverts commit 8c4fc031954b4eb72daf13d3c907a985a3eee208. Signed-off-by: Peter Chen --- drivers/usb/chipidea/ci.h |1 - dri

[PATCH v6 0/8] Add tested id switch and vbus connect detect support for Chipidea

2013-02-03 Thread Peter Chen
Changes for v5: - Add Alex comments for init/destroy function [3/8] [4/8] - Remove memset(&ci->gadget, 0, sizeof(ci->gadget)) at destory function [4/8] - Add Kishon's comment: Change the format of struct usb_otg otg at drivers/usb/chipidea/ci.h [1/8] - Add comments for CI_VBUS_STABLE_TIMEOUT [3/8]

RE: Not enough resource for old configuration after USB bus reset

2013-02-03 Thread Alan Stern
On Mon, 4 Feb 2013, Soar Hung wrote: > Hi Alan, Sarah, > > Thank you for your kindly help. > > Can I do something to provide some help? For now, I think you may just have to wait until Sarah gets back from LinuxConf Australia. Alan Stern -- To unsubscribe from this list: send the line "unsub

Re: [usb-storage] Re: usb3.0 device recognized as usb2.1

2013-02-03 Thread Alan Stern
On Sun, 3 Feb 2013, Richard Genoud wrote: > [previously] > I tried to use this device : usb3.0 HDD dock ( > http://www.icydock.com/goods.php?id=130 ) based on JMicron JMS539 > chipset. > It's always recognized as an usb2.1 device instead of USB3. > My USB3 controller is based on VIA VL800 B3. > S

RE: Not enough resource for old configuration after USB bus reset

2013-02-03 Thread Soar Hung
Hi Alan, Sarah, Thank you for your kindly help. Can I do something to provide some help? Best regards, Soar -Original Message- From: Alan Stern [mailto:st...@rowland.harvard.edu] Sent: Friday, February 01, 2013 11:36 PM To: Soar Hung Cc: Sarah Sharp; linux-usb@vger.kernel.org Subject:

Re: Continuous stream of small bulk transfers hangs on OHCI-based systems

2013-02-03 Thread Mark Ferrell
On 02/03/2013 11:08 AM, Alan Stern wrote: In $SUBJECT you say that the problem is associated with bulk transfers. Those are listed in the "async" file, which you did not report. Was the file empty? I apologise. Yes the async files where empty. I am not certain what it is worth, but I have ma

Re: Continuous stream of small bulk transfers hangs on OHCI-based systems

2013-02-03 Thread Alan Stern
On Sat, 2 Feb 2013, Mark Ferrell wrote: > On 02/02/2013 11:39 AM, Alan Stern wrote: > > Then the next step is to go into the appropriate subdirectory under > > /sys/kernel/debug/usb/ohci/ (the one that corresponds to the controller > > having problems) and see what the files in there say. > > The

Re: [PATCH v9 00/20] OMAP USB Host cleanup

2013-02-03 Thread Samuel Ortiz
Hi Roger, On Wed, Jan 23, 2013 at 12:37:52PM +0200, Roger Quadros wrote: > Hi Samuel, > > I think this series is in a pretty good shape to pull now :). I've added > Reviewed-by and Acked-by tags. You can please pull from below. > > NOTE: the first patch is a stable fix so Greg KH might want to p

Re: [PATCH] uvcvideo: Be tolerant about IO errors

2013-02-03 Thread Laurent Pinchart
Hi Holger, (CC'ing the linux-usb mailing list) On Sunday 20 January 2013 21:52:42 Holger Oehm wrote: > Hi Laurent, > > this is my first attempt at submitting a patch, so please apologize my > mistakes. Thank you for your patch. It's always nice to see new contributors :-) > I attached the patc