Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-09 Thread Jassi Brar
On Tue, Oct 9, 2012 at 2:06 AM, 杨苏立 Yang Su Li yangs...@gmail.com wrote: Hi, I have noticed this mailing list has been intensively used to discuss patch development discussion. So please let me know if I should move my question to more appropriate places. In order to experiment something I

Re: [PATCH 00/12] usbnet: usb_control_msg cleanup

2012-10-09 Thread Oliver Neukum
On Tuesday 02 October 2012 14:51:11 Ming Lei wrote: Hi, This patch set introduces 3 helpers for handling usb read, write and write_async command, and replaces the low level's implemention with the generic ones. First, very good idea. I'll get to the individual issues in the individual

Re: [PATCH 01/12] usbnet: introduce usbnet 3 command helpers

2012-10-09 Thread Oliver Neukum
On Tuesday 02 October 2012 14:51:12 Ming Lei wrote: This patch introduces the below 3 usb command helpers: usbnet_read_cmd / usbnet_write_cmd / usbnet_write_cmd_async so that each low level driver doesn't need to implement them by itself, and the dma buffer allocation for usb

Re: [PATCH 12/12] usbnet: make device out of suspend before calling usbnet_read/write_cmd

2012-10-09 Thread Oliver Neukum
On Tuesday 02 October 2012 14:51:23 Ming Lei wrote: This patche gets the runtime PM reference count before calling usb_control_msg, and puts it after completion of the usb_control_msg, so that the usb control message can always be sent to one active device. This is awkward to use in

Re: [PATCH] usb: dwc3: debugfs: fixes debugfs regdump returning all zeros

2012-10-09 Thread Vivek Gautam
Hi, CC: Ido Shayevitz On Tue, Aug 21, 2012 at 5:48 PM, Vikas Sajjan vikas.saj...@samsung.com wrote: Even though the mem region is requested from the Globals address space (DWC3_GLOBALS_REGS_START), the offsets are given from the starting of the xHCI address space. By subtracting

Re: [PATCH 4/5] usb: s5p-ehci: Adding phy driver support

2012-10-09 Thread Jingoo Han
On Monday, October 08, 2012 11:12 PM Vivek Gautam wrote Adding the transceiver to ehci driver. Keeping the platform data for continuing the smooth operation for boards which still uses it Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Hi Vivek Gautam, Could you replace the patch

Re: [PATCH 5/5] usb: exynos-ohci: Adding phy driver support

2012-10-09 Thread Jingoo Han
On Monday, October 08, 2012 11:12 PM Vivek Gautam wrote Adding the transceiver to ohci driver. Keeping the platform data for continuing the smooth operation for boards which still uses it Signed-off-by: Vivek Gautam gautam.vi...@samsung.com Hi Vivek Gautam, Could you replace the patch

[PATCH RESEND] umc-bus.c: fix usage of device_trylock

2012-10-09 Thread Claudio Scordino
Hi all. I've not received any feedback about this patch, so I'm resending just to check if someone is going to take care of it. The patch fixes the usage of device_trylock inside the driver umc-bus.c: device_trylock has the same semantics of mutex_trylock, so it returns 1 if the lock has been

Re: FTDI USB-to-UART converters and tcdrain()

2012-10-09 Thread Jarkko Huijts
On Thu, 2012-10-04 at 15:25 -0700, Greg KH wrote: - Is tcdrain() supposed to ensure that all TX data has been sent for any serial device? If so, why is it not implemented for this device? No one has implemented it to do so. Other usb-serial drivers have implemented this functionality,

[PATCH 1/2] ehci: fix Lucid nohandoff pci quirk to be more generic with BIOS versions

2012-10-09 Thread Anisse Astier
BIOS vendors keep changing the BIOS versions. Only match the beginning of the string to match all Lucid tablets with board name M11JB. Signed-off-by: Anisse Astier ani...@astier.eu Cc: sta...@vger.kernel.org --- drivers/usb/host/pci-quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 2/2] ehci: Add yet-another Lucid nohandoff pci quirk

2012-10-09 Thread Anisse Astier
Board name changed on another shipping Lucid tablet. Signed-off-by: Anisse Astier ani...@astier.eu Cc: sta...@vger.kernel.org --- drivers/usb/host/pci-quirks.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/host/pci-quirks.c b/drivers/usb/host/pci-quirks.c index

Re: [PATCH 2/5] ARM: S3C64XX: Add phy_type to pmu_isolation

2012-10-09 Thread Vivek Gautam
Hi Kishon, Firstly, thanks for the quick review. On Tue, Oct 9, 2012 at 11:03 AM, kishon kis...@ti.com wrote: Hi, On Monday 08 October 2012 07:42 PM, Vivek Gautam wrote: It adds 'type' argument to pmu_isolation function, aligning with other platforms, which keeps track of usbphy_type.

RE: [PATCH 2/5] ARM: S3C64XX: Add phy_type to pmu_isolation

2012-10-09 Thread Jingoo Han
On Tuesday, October 09, 2012 7:51 PM Vivek Gautam wrote Hi Kishon, Firstly, thanks for the quick review. On Tue, Oct 9, 2012 at 11:03 AM, kishon kis...@ti.com wrote: Hi, On Monday 08 October 2012 07:42 PM, Vivek Gautam wrote: It adds 'type' argument to pmu_isolation function,

Re: [PATCH] usb: musb: am35xx: drop spurious unplugging a device

2012-10-09 Thread Igor Grinberg
On 10/04/12 14:34, Stefano Babic wrote: On AM3517, tx and rx interrupt are detected together with the disconnect event. This generates a kernel panic in musb_interrupt, because rx / tx are handled after disconnect. This issue was seen with Technexion's TAM3517 SOM. Unplugging a device, tx /

Re: [PATCH 2/5] ARM: S3C64XX: Add phy_type to pmu_isolation

2012-10-09 Thread Vivek Gautam
Hi, On Tue, Oct 9, 2012 at 4:42 PM, Jingoo Han jg1@samsung.com wrote: On Tuesday, October 09, 2012 7:51 PM Vivek Gautam wrote Hi Kishon, Firstly, thanks for the quick review. On Tue, Oct 9, 2012 at 11:03 AM, kishon kis...@ti.com wrote: Hi, On Monday 08 October 2012 07:42 PM,

Re: [PATCH 4/5] usb: s5p-ehci: Adding phy driver support

2012-10-09 Thread Vivek Gautam
Hi, On Tue, Oct 9, 2012 at 3:10 PM, Jingoo Han jg1@samsung.com wrote: On Monday, October 08, 2012 11:12 PM Vivek Gautam wrote Adding the transceiver to ehci driver. Keeping the platform data for continuing the smooth operation for boards which still uses it Signed-off-by: Vivek Gautam

Re: [PATCH 5/5] usb: exynos-ohci: Adding phy driver support

2012-10-09 Thread Vivek Gautam
Hi, On Tue, Oct 9, 2012 at 3:16 PM, Jingoo Han jg1@samsung.com wrote: On Monday, October 08, 2012 11:12 PM Vivek Gautam wrote Adding the transceiver to ohci driver. Keeping the platform data for continuing the smooth operation for boards which still uses it Signed-off-by: Vivek Gautam

[GIT PULL] Disintegrate UAPI for usb

2012-10-09 Thread David Howells
at: git://git.infradead.org/users/dhowells/linux-headers.git tags/disintegrate-usb-20121009 for you to fetch changes up to 5e1ddb481776a487b15b40579a000b279ce527c9: UAPI: (Scripted) Disintegrate include/linux/usb (2012-10-09 09:49:07 +0100

Re: [GIT PULL] Disintegrate UAPI for usb

2012-10-09 Thread Greg KH
On Tue, Oct 09, 2012 at 02:30:48PM +0100, David Howells wrote: Can you merge the following branch into the usb tree please. Is this (and the other pull requests for other subsystems) for 3.7 or for 3.8? thanks, greg k-h -- To unsubscribe from this list: send the line unsubscribe linux-usb in

Re: [GIT PULL] Disintegrate UAPI for usb

2012-10-09 Thread David Howells
Greg KH gre...@linuxfoundation.org wrote: Can you merge the following branch into the usb tree please. Is this (and the other pull requests for other subsystems) for 3.7 or for 3.8? I don't really mind. There are no dependencies on it. Getting it in 3.7 means there's more chance it'll

Re: [PATCH V2] USB: ohci-s3c2410: use devm_ functions

2012-10-09 Thread Alan Stern
On Mon, 8 Oct 2012, Jingoo Han wrote: The devm_ functions allocate memory that is released when a driver detaches. This makes the code smaller and a bit simpler. Signed-off-by: Jingoo Han jg1@samsung.com --- Changes since v1: - usb devm_request_and_ioremap() to shrink more, according

Re: [PATCH RESEND] umc-bus.c: fix usage of device_trylock

2012-10-09 Thread Greg KH
On Tue, Oct 09, 2012 at 12:21:17PM +0200, Claudio Scordino wrote: Hi all. I've not received any feedback about this patch, so I'm resending just to check if someone is going to take care of it. It was sent in the middle of the merge window, when we are scrambling to get other stuff done.

Re: [GIT PULL] Disintegrate UAPI for usb

2012-10-09 Thread Greg KH
On Tue, Oct 09, 2012 at 02:54:19PM +0100, David Howells wrote: Greg KH gre...@linuxfoundation.org wrote: Can you merge the following branch into the usb tree please. Is this (and the other pull requests for other subsystems) for 3.7 or for 3.8? I don't really mind. There are no

RE: [PATCH v2 4/4] usb: refine phy notify operation during connection and disconnection

2012-10-09 Thread Alan Stern
On Tue, 9 Oct 2012, Chen Peter-B29397 wrote: @@ -4187,6 +4190,10 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1, } } + if (hcd-phy !hdev-parent + !(portstatus USB_PORT_STAT_CONNECTION)) +

Re: FTDI USB-to-UART converters and tcdrain()

2012-10-09 Thread Greg KH
On Tue, Oct 09, 2012 at 12:21:56PM +0200, Jarkko Huijts wrote: On Thu, 2012-10-04 at 15:25 -0700, Greg KH wrote: - Is tcdrain() supposed to ensure that all TX data has been sent for any serial device? If so, why is it not implemented for this device? No one has implemented it to do so.

Re: About resume time optimization for bus resume routine

2012-10-09 Thread Alan Stern
On Tue, 9 Oct 2012, Peter Chen wrote: Hi Alan, When I try to optimize system resume time, I find bus resume routine cost much time ( 20ms), even there is no device at any ports. Let's take ehci bus resume as an example. 1. At ehci_bus_resume /* Some controller/firmware

Re: [PATCH 1/2] ehci: fix Lucid nohandoff pci quirk to be more generic with BIOS versions

2012-10-09 Thread Alan Stern
On Tue, 9 Oct 2012, Anisse Astier wrote: BIOS vendors keep changing the BIOS versions. Only match the beginning of the string to match all Lucid tablets with board name M11JB. Signed-off-by: Anisse Astier ani...@astier.eu Cc: sta...@vger.kernel.org --- drivers/usb/host/pci-quirks.c | 2

Re: [PATCH 1/2] ehci: fix Lucid nohandoff pci quirk to be more generic with BIOS versions

2012-10-09 Thread Anisse Astier
On Tue, 9 Oct 2012 11:06:52 -0400 (EDT), Alan Stern st...@rowland.harvard.edu wrote : On Tue, 9 Oct 2012, Anisse Astier wrote: BIOS vendors keep changing the BIOS versions. Only match the beginning of the string to match all Lucid tablets with board name M11JB. Signed-off-by: Anisse

Re: Link PM policy advice?

2012-10-09 Thread Sarah Sharp
On Fri, Oct 05, 2012 at 02:36:57PM -0700, Sarah Sharp wrote: On Fri, Oct 05, 2012 at 04:51:53PM -0400, Alan Stern wrote: We could add a USB_QUIRK_NO_LPM flag and put a static entry for the SIIG hub (and maybe other broken devices) in quirks.c. xhci-hcd could set this flag when it sees

Re: PROBLEM: BUG: null pointer dereference when using garmin USB connection with 3.6.1 kernel

2012-10-09 Thread Greg KH
On Mon, Oct 08, 2012 at 11:32:44PM +0200, Markus Schauler wrote: Meanwhile, after many re-compliles: 0998d0631001288a5974afc0b2a5f568bcdecb4d is the first bad commit commit 0998d0631001288a5974afc0b2a5f568bcdecb4d Author: Hans de Goede hdego...@redhat.com Date: Wed May 23 00:09:34 2012

Re: [PATCH] usb: musb: am35xx: drop spurious unplugging a device

2012-10-09 Thread Stefano Babic
On 09/10/2012 13:59, Igor Grinberg wrote: On 10/04/12 14:34, Stefano Babic wrote: On AM3517, tx and rx interrupt are detected together with the disconnect event. This generates a kernel panic in musb_interrupt, because rx / tx are handled after disconnect. This issue was seen with

Re: [PATCH 1/2] ehci: fix Lucid nohandoff pci quirk to be more generic with BIOS versions

2012-10-09 Thread Alan Stern
On Tue, 9 Oct 2012, Anisse Astier wrote: How about matching any BIOS from Lucid, regardless of the board name? I was just being conservative. Lucid is a common english word, and you never know how another company could name their BIOS. Or maybe pegatron could decide to fix their BIOS on

Re: PROBLEM: BUG: null pointer dereference when using garmin USB connection with 3.6.1 kernel

2012-10-09 Thread Alan Stern
On Tue, 9 Oct 2012, Greg KH wrote: Ugh, that simple patch has turned up more bugs in drivers than anything I know of in recent history. It would be a good idea for someone to audit all the serial drivers. The basic idea is simple: The .port_probe and .port_remove methods should

Re: usbcore / Linux 2.6.+ / USB IO Board 04d8:000a

2012-10-09 Thread Florian Wöhrl
Dear Alan, Oliver, short follow-up on my Microchip Test board with PIQ18F24J50 chip: pySerial worked quiet well, got some html server component up and running. Nevertheless the device again failed to work on machines (that meanwhile worked) after having it plugged-off (from USB) for 2 days.

[PATCH V2] usb: musb: am35xx: drop spurious unplugging a device

2012-10-09 Thread Stefano Babic
On AM3517, tx and rx interrupt are detected together with the disconnect event. This generates a kernel panic in musb_interrupt, because rx / tx are handled after disconnect. This issue was seen on a Technexion's TAM3517 SOM. Unplugging a device, tx / rx interrupts together with disconnect are

Re: cannot submit urb 0, error -22: internal error followed by USB hung tasks

2012-10-09 Thread Alan Stern
On Sun, 30 Sep 2012, Alan Stern wrote: To be honest, I could write a fairly simple change to the driver that would work around this hardware bug most of the time. But it wouldn't be perfect; occasionally the problem would still show up. I decided to go ahead and write a quick patch, below.

Re: usbcore / Linux 2.6.+ / USB IO Board 04d8:000a

2012-10-09 Thread Alan Stern
On Tue, 9 Oct 2012, [ISO-8859-1] Florian W�hrl wrote: Dear Alan, Oliver, short follow-up on my Microchip Test board with PIQ18F24J50 chip: pySerial worked quiet well, got some html server component up and running. Nevertheless the device again failed to work on machines (that meanwhile

Re: usb 3.0 hard drive doesn't work

2012-10-09 Thread Sarah Sharp
This is probably a known issue. Other Western Digital hard drives had issues with the Link PM feature that went into 3.5. Can you please test with this branch: git clone git://git.kernel.org/pub/scm/linux/kernel/git/sarah/xhci.git -b for-usb-linus-pending In particular, I think this patch

Re: Link PM policy advice?

2012-10-09 Thread Alan Stern
On Tue, 9 Oct 2012, Sarah Sharp wrote: Hmm, so I've tested the VIA hubs under a different Intel chipset (Lynx Point), and they exhibit the same issues as when a bus analyzer is connected on Panther Point. Only the issues show up without the analyzer in between. Come to think of it, you

[PATCH v2 0/8] ARM: mostly harmless gcc warnings

2012-10-09 Thread Arnd Bergmann
Most patches from the first time this was posted have been adopted by a subsystem maintainer or were show to be obsolete. Here are the remaining ones again. I'm planning to submit those patches that are still necessary by the time we have an -rc1 through the arm-soc tree, but my preference is

[PATCH v2 4/8] USB: EHCI: mark ehci_orion_conf_mbus_windows __devinit

2012-10-09 Thread Arnd Bergmann
The __devinit section is going away soon, but while it's still there, we get a correct warning about ehci_orion_conf_mbus_windows being discarded before its caller, so it should be marked __devinit rather than __init. Without this patch, building dove_defconfig results in: WARNING:

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-09 Thread 杨苏立 Yang Su Li
That's great! They do have a newer net2282 board though. That's not supported by Linux? Also, seems like if I want to use this board to resemble an USB mass storage (which is backed by a ramdisk), I will have to get the firmware which comes with this company's RDK package? Sadly net2280's RDK

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-09 Thread 杨苏立 Yang Su Li
On Mon, Oct 8, 2012 at 9:54 PM, Peter Stuge pe...@stuge.se wrote: Alan Stern wrote: is there some hardware I can by to turn my desktop into an USB device or USB OTG device? Preferably this hardware should use my desktop's memory to back-up its storage. Not that I know of. Linux

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-09 Thread 杨苏立 Yang Su Li
On Tue, Oct 9, 2012 at 1:22 AM, Jassi Brar jassisinghb...@gmail.com wrote: On Tue, Oct 9, 2012 at 2:06 AM, 杨苏立 Yang Su Li yangs...@gmail.com wrote: Hi, I have noticed this mailing list has been intensively used to discuss patch development discussion. So please let me know if I should move

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-09 Thread Peter Stuge
杨苏立 Yang Su Li wrote: if SemiconductorStore still can deliver the above NET2280EVB PCI card then you can realize the DRAM-backed storage device using a Linux gadget driver, in a powerful PC with very little effort. I assume I will have to do some PCI programming to move data from memory

Re: [PATCH 12/12] usbnet: make device out of suspend before calling usbnet_read/write_cmd

2012-10-09 Thread Ming Lei
On Tue, Oct 9, 2012 at 4:50 PM, Oliver Neukum oneu...@suse.de wrote: This is awkward to use in suspend()/resume() Could you make both versions available? Good catch, thanks for your review. As far as I can think of, the mutex_is_locked() trick can solve the problem. How about the attached

Re: [PATCH 01/12] usbnet: introduce usbnet 3 command helpers

2012-10-09 Thread Ming Lei
On Tue, Oct 9, 2012 at 4:47 PM, Oliver Neukum oneu...@suse.de wrote: Using GFP_KERNEL you preclude using those in resume() and error handling. Please pass a gfp_t parameter. IMO, it is not a big deal because generally only several bytes are to be allocated inside these helpers. If you still

[PATCH] usb:musb: Dequeue urbs on device unplug

2012-10-09 Thread Virupax Sadashivpetimath
Flush queued urbs on receiving device disconnect interrupt. This is required for successful disconnect and successive enumeration of the device. In a failure case khubd hangs on usb-storage thread for completion. Seen in the below trace. [ 1355.764526] SysRq : Show Blocked State [ 1355.768341]

Re: USB-OTG enabled phone mount desktop partitions via USB port

2012-10-09 Thread Jassi Brar
On Wed, Oct 10, 2012 at 3:57 AM, 杨苏立 Yang Su Li yangs...@gmail.com wrote: On Tue, Oct 9, 2012 at 1:22 AM, Jassi Brar jassisinghb...@gmail.com wrote: On Tue, Oct 9, 2012 at 2:06 AM, 杨苏立 Yang Su Li yangs...@gmail.com wrote: Hi, I have noticed this mailing list has been intensively used to

Re: [PATCH 01/12] usbnet: introduce usbnet 3 command helpers

2012-10-09 Thread Ming Lei
On Wed, Oct 10, 2012 at 11:19 AM, Ming Lei ming@canonical.com wrote: On Tue, Oct 9, 2012 at 4:47 PM, Oliver Neukum oneu...@suse.de wrote: Using GFP_KERNEL you preclude using those in resume() and error handling. Please pass a gfp_t parameter. IMO, it is not a big deal because generally