Re: Bug#677472: [3.1->3.2 regression] Immediate wake on suspend, associated with OHCI on MCP51

2012-12-12 Thread Lan Tianyu
On 2012年12月12日 05:59, Frank Schäfer wrote: > Am 11.12.2012 17:48, schrieb Alan Stern: > > [snip] >> >> We really need to know which component is bad: the host controller or >> the device. > > It happens with all USB 1.1 devices I have (several mice and a HP > Deskjet 960c printer). > The same de

Re: Linux USB file storage gadget with new UDC

2012-12-12 Thread Felipe Balbi
Hi, On Wed, Dec 12, 2012 at 03:49:48PM +0800, victor wrote: > Hi, > > > > > > > Yes, the devices /dev/mmcblk0 and /dev/mmcblk0p1 exist. The > > > /dev/mmcblk0 can be mounted. The dmesg does not contain other > > > messages. I am not sure the way to use g_file_storage.ko with UDC. > Please > > kin

Re: [PATCH 08/10] usb: add usb port auto power off mechanism

2012-12-12 Thread Lan Tianyu
On 2012年12月12日 00:35, Alan Stern wrote: > On Tue, 11 Dec 2012, Lan Tianyu wrote: > @@ -108,11 +109,14 @@ MODULE_PARM_DESC(use_both_schemes, DECLARE_RWSEM(ehci_cf_port_reset_rwsem); EXPORT_SYMBOL_GPL(ehci_cf_port_reset_rwsem); +#define HUB_PORT_RECONNECT_TRIES 20 >>> >>>

Re: USB Gadget driver: Add support for CD-ROM booting

2012-12-12 Thread Golmer Palmer
Alan Stern writes: > > On Mon, 10 Dec 2012, Golmer Palmer wrote: > > > Alan Stern writes: > > > > > > > > Right. This limit represents a hypothetical 256-minute CD. > > > > 256 minutes CD, ok! (75 represents 75 sectors/sec) > > Yes. So 255M:60S:75F > > > > > Nevertheless, with a DVD th

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

2012-12-12 Thread fangxiaozhi 00110321
From: fangxiaozhi 1. To optimize the match rules for the Huawei USB storage devices. Avoid to load USB storage driver for modem interface with Huawei devices. 2. Add to support new switch command for new Huawei USB dongles. Signed-off-by: fangxiaozhi ---

Re: Linux USB file storage gadget with new UDC

2012-12-12 Thread Bjørn Mork
Alan Stern writes: > If you read the confidentiality notice, you'll see that it merely says > that the contents of the email _may_ be confidential. Also, it warns > people who _aren't_ the intended addressees -- but if the message was > sent to a public email list then obviously there are no

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

2012-12-12 Thread Felipe Balbi
Hi, ok, let's start. On Wed, Dec 12, 2012 at 06:20:33PM +0800, fangxiaozhi 00110321 wrote: > From: fangxiaozhi > > 1. To optimize the match rules for the Huawei USB storage devices. Avoid to > load USB storage driver for modem interface with Huawei devices. > 2. Add to support new switch comma

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

2012-12-12 Thread Alan Cox
On Wed, 12 Dec 2012 18:20:33 +0800 fangxiaozhi 00110321 wrote: > From: fangxiaozhi > > 1. To optimize the match rules for the Huawei USB storage devices. Avoid to > load USB storage driver for modem interface with Huawei devices. > 2. Add to support new switch command for new Huawei USB dongle

[PATCH 1/1] usb: dwc3: Use devm_kzalloc

2012-12-12 Thread Sachin Kamat
devm_kzalloc is device managed and makes error handling and cleanup simpler. While at it also fixed the return value when platform_device_alloc failed in probe function. Cc: Anton Tikhomirov Signed-off-by: Sachin Kamat --- Compile tested on linux-next tree. --- drivers/usb/dwc3/dwc3-exynos.c |

Re: [PATCH 1/1] usb: dwc3: Use devm_kzalloc

2012-12-12 Thread Felipe Balbi
On Wed, Dec 12, 2012 at 04:13:15PM +0530, Sachin Kamat wrote: > devm_kzalloc is device managed and makes error handling and cleanup > simpler. While at it also fixed the return value when platform_device_alloc > failed in probe function. > > Cc: Anton Tikhomirov > Signed-off-by: Sachin Kamat wh

Re: [PATCH 1/1] usb: dwc3: Use devm_kzalloc

2012-12-12 Thread Sachin Kamat
On 12 December 2012 16:51, Felipe Balbi wrote: > On Wed, Dec 12, 2012 at 04:13:15PM +0530, Sachin Kamat wrote: >> devm_kzalloc is device managed and makes error handling and cleanup >> simpler. While at it also fixed the return value when platform_device_alloc >> failed in probe function. >> >> Cc

Re: [PATCH 1/1] usb: dwc3: Use devm_kzalloc

2012-12-12 Thread Felipe Balbi
Hi, On Wed, Dec 12, 2012 at 05:08:09PM +0530, Sachin Kamat wrote: > On 12 December 2012 16:51, Felipe Balbi wrote: > > On Wed, Dec 12, 2012 at 04:13:15PM +0530, Sachin Kamat wrote: > >> devm_kzalloc is device managed and makes error handling and cleanup > >> simpler. While at it also fixed the re

issue with uvcvideo and xhci

2012-12-12 Thread Javier Martinez Canillas
Hello, We have an issue when trying to use USB cameras on a particular machine using the latest mainline Linux 3.7 kernel. This is not a regression since the same issue is present with older kernels (i.e: 3.5). The cameras work fine when plugged to an USB2.0 port (using the EHCI HCD host controll

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Timur wrote: > - Unplugging and re-plugging the slave device works well. > - Unplugging the Y-cable (disconnecting slave and external power at the > same time) then re-plugging the Y-cable works well. > - Disconnecting external power to both devices, then waiting for the > h

Re: Tons of issues with xhci

2012-12-12 Thread Alan Stern
On Tue, 11 Dec 2012, Sarah Sharp wrote: > Hi Alan, > > I'm finally revisiting the issue with active transfers when a device > disconnects. I'm trying to refresh my memory of the issue. > > On Thu, Oct 18, 2012 at 03:54:06PM -0400, Alan Stern wrote: > > Unfortunately the trace isn't termendously

Re: Fwd: Safely remove option shows with Micro SD Card connected to Linux through an Android phone

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Robert Hancock wrote: > On 12/11/2012 02:37 PM, Alan Stern wrote: > > On Tue, 11 Dec 2012, prasannatsmkumar wrote: > > > >> Hi All, > >> > >> I connected an Android phone using USB cable to my machine running > >> Linux (Linux 3.0, 3.2, 3.5). Mounted the SD card in phone in sy

Re: Bug#677472: [3.1->3.2 regression] Immediate wake on suspend, associated with OHCI on MCP51

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Lan Tianyu wrote: > Hi Alan: > About your question of "Does the device send a remote wakeup request > even when it is disabled for remote wakeup?", I am not very clear. > Default, device remote wakeup is disabled and if we disable device's > remote wakeup via sysfs, the

Re: [PATCH 08/10] usb: add usb port auto power off mechanism

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Lan Tianyu wrote: > >> I tested a usb ssd which consumes about 1s to makes usb port status > >> enter into connect status after powering off and powering on the port. > >> So I set the tries 20 and the longest latency is larger than 2s. > >> The debounce routine only guarantee

EZUSB build failures (was Re: [opensuse-kernel] [PATCH] Fix armv7 kernel-default config)

2012-12-12 Thread Jeff Mahoney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/12/12 10:07 AM, Greg KH wrote: > On Wed, Dec 12, 2012 at 11:39:33AM +0100, Guillaume Gardet wrote: >> Hi, >> >> please find in attachment a patch to fix armv7 kernel-default >> config. >> >> CONFIG_USB_EZUSB_FX2 must be a module instead of buil

Re: USB Gadget driver: Add support for CD-ROM booting

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Golmer Palmer wrote: > Alan Stern writes: > > > > > On Mon, 10 Dec 2012, Golmer Palmer wrote: > > > > > Alan Stern writes: > > > > > > > > > > > Right. This limit represents a hypothetical 256-minute CD. > > > > > > 256 minutes CD, ok! (75 represents 75 sectors/sec) >

Re: Linux USB file storage gadget with new UDC

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Bjørn Mork wrote: > Alan Stern writes: > > > If you read the confidentiality notice, you'll see that it merely says > > that the contents of the email _may_ be confidential. Also, it warns > > people who _aren't_ the intended addressees -- but if the message was > > sent

Re: [PATCH 08/10] usb: add usb port auto power off mechanism

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Alan Stern wrote: > You should test the connect status in a loop. Each time through the > loop, if it's not connected wait another 20 or so. Typo; I meant wait another 20 ms or so. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the b

Re: EZUSB build failures (was Re: [opensuse-kernel] [PATCH] Fix armv7 kernel-default config)

2012-12-12 Thread Greg Kroah-Hartman
On Wed, Dec 12, 2012 at 10:59:21AM -0500, Jeff Mahoney wrote: > On 12/12/12 10:07 AM, Greg KH wrote: > > On Wed, Dec 12, 2012 at 11:39:33AM +0100, Guillaume Gardet wrote: > >> Hi, > >> > >> please find in attachment a patch to fix armv7 kernel-default > >> config. > >> > >> CONFIG_USB_EZUSB_FX2 m

Re: EZUSB build failures (was Re: [opensuse-kernel] [PATCH] Fix armv7 kernel-default config)

2012-12-12 Thread Jeff Mahoney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/12/12 10:59 AM, Jeff Mahoney wrote: > On 12/12/12 10:07 AM, Greg KH wrote: >> On Wed, Dec 12, 2012 at 11:39:33AM +0100, Guillaume Gardet >> wrote: >>> Hi, >>> >>> please find in attachment a patch to fix armv7 kernel-default >>> config. >>> >>

Re: Linux USB file storage gadget with new UDC

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Alan Stern wrote: > On Wed, 12 Dec 2012, Bjørn Mork wrote: > > > Alan Stern writes: > > > > > If you read the confidentiality notice, you'll see that it merely says > > > that the contents of the email _may_ be confidential. Also, it warns > > > people who _aren't_ the i

Re: EZUSB build failures (was Re: [opensuse-kernel] [PATCH] Fix armv7 kernel-default config)

2012-12-12 Thread Jeff Mahoney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/12/12 11:10 AM, Greg Kroah-Hartman wrote: > On Wed, Dec 12, 2012 at 10:59:21AM -0500, Jeff Mahoney wrote: >> On 12/12/12 10:07 AM, Greg KH wrote: >>> On Wed, Dec 12, 2012 at 11:39:33AM +0100, Guillaume Gardet >>> wrote: Hi, please

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-12 Thread Timur
On 12.12.2012 16:20, Alan Stern wrote: On Wed, 12 Dec 2012, Timur wrote: - Unplugging and re-plugging the slave device works well. - Unplugging the Y-cable (disconnecting slave and external power at the same time) then re-plugging the Y-cable works well. - Disconnecting external power to both d

Re: issue with uvcvideo and xhci

2012-12-12 Thread Sarah Sharp
On Wed, Dec 12, 2012 at 12:47:24PM +0100, Javier Martinez Canillas wrote: > Hello, > > We have an issue when trying to use USB cameras on a particular machine using > the latest mainline Linux 3.7 kernel. This is not a regression since the same > issue is present with older kernels (i.e: 3.5). >

Re: Tegra3 ehci_suspend and ehci_resume

2012-12-12 Thread Alan Stern
On Wed, 12 Dec 2012, Timur wrote: > Nexus 7 and USB slave get their power via USB cable. This makes it a > little difficult to connect power, but leave the USB connection > unplugged. I'm not sure how to proceed with this. > > This is the USB Y-adapter I am using: > https://sites.google.com/si

Re: Need help for hardware bug in Intel's EHCI implementation

2012-12-12 Thread Alan Stern
On Mon, 10 Dec 2012, Sarah Sharp wrote: > > > Ok. The hardware devs are asking if this problem is hit on newer > > > hardware. They think that most of the kinks in the EHCI host should > > > have been worked out by the Nehalem generation. Do you have access to a > > > newer EHCI system? If not

Re: Bug#677472: [3.1->3.2 regression] Immediate wake on suspend, associated with OHCI on MCP51

2012-12-12 Thread Frank Schäfer
Am 12.12.2012 09:23, schrieb Lan Tianyu: > On 2012年12月12日 05:59, Frank Schäfer wrote: >> Am 11.12.2012 17:48, schrieb Alan Stern: >> >> [snip] >>> We really need to know which component is bad: the host controller or >>> the device. >> It happens with all USB 1.1 devices I have (several mice and a

Re: Bug#677472: [3.1->3.2 regression] Immediate wake on suspend, associated with OHCI on MCP51

2012-12-12 Thread Octavio Alvarez
On Wed, 12 Dec 2012 12:28:16 -0800, Frank Schäfer wrote: Good information. Attaching device makes hc work abnormally during entering into s3 since without device it can work, right? Right. The system successfully enters S3 (machine switches off = fan stops, light off etc.) but it resumes im

Re: [PATCH] usb: gadget: fix switch off blocked in u_serial

2012-12-12 Thread Linus Walleij
On Tue, Nov 27, 2012 at 3:11 PM, Linus Walleij wrote: > On Wed, Nov 21, 2012 at 3:33 PM, Linus Walleij > wrote: >> On Wed, Nov 14, 2012 at 3:40 PM, Linus Walleij >> wrote: >> >>> From: Haipeng YU >>> >>> When a device is switched off by software, gserial_cleanup will >>> be called, and switch

Re: issue with uvcvideo and xhci

2012-12-12 Thread Javier Martinez Canillas
On 12/12/2012 06:52 PM, Sarah Sharp wrote: > On Wed, Dec 12, 2012 at 12:47:24PM +0100, Javier Martinez Canillas wrote: >> Hello, >> >> We have an issue when trying to use USB cameras on a particular machine using >> the latest mainline Linux 3.7 kernel. This is not a regression since the same >> i

Re: Bug#677472: [3.1->3.2 regression] Immediate wake on suspend, associated with OHCI on MCP51

2012-12-12 Thread Lan Tianyu
On 2012年12月12日 23:50, Alan Stern wrote: > On Wed, 12 Dec 2012, Lan Tianyu wrote: > >> Hi Alan: >> About your question of "Does the device send a remote wakeup request >> even when it is disabled for remote wakeup?", I am not very clear. >> Default, device remote wakeup is disabled and if we d

RE: [PATCH] usb: musb: dsps: header movement build error fix

2012-12-12 Thread Mohammed, Afzal
Hi Felipe, On Tue, Nov 27, 2012 at 20:15:22, Mohammed, Afzal wrote: > "54db6ee ARM: OMAP2+: Introduce local usb.h" moved control module bit > definitions from plat/usb.h (which dsps glue was using) to a local > header in mach-omap2. And in parallel, > "c68bb4c usb: musb: dsps: control module hand

ebeam PATCH (new eBeam input driver)

2012-12-12 Thread Yann Cantin
Hi, Do i need to resubmit the patchset for the next merge window ? If so, do you guys prefer it against linus or next branch ? For the record : > New USB input driver for eBeam devices. > > Currently supported (tested) : > - Luidia eBeam classic projection and edge projection models > - Nec "i