[RFC PATCH 0/5] usb: usb port power off mechanism

2012-11-09 Thread Lan Tianyu
The patchset is based on the pm qos flags patches and now on the linux-pm's next tree and pm-qos. http://git.kernel.org/?p=linux/kernel/git/rafael/linux-pm.git;a=shortlog;h=refs/heads/pm-qos usb: add usb port's pm qos flags request to change NO_POWER_OFF flag usb: add runtime pm support for usb po

[RFC PATCH 1/5] usb: Register usb port's acpi power resources

2012-11-09 Thread Lan Tianyu
This patch is to register usb port's acpi power resources. Create link between usb port device and its acpi power resource. Signed-off-by: Lan Tianyu --- drivers/usb/core/hub.c |3 ++- drivers/usb/core/usb-acpi.c | 23 +++ drivers/usb/core/usb.h |6 ++

[RFC PATCH 2/5] usb: add usb port auto power off mechanism

2012-11-09 Thread Lan Tianyu
This patch is to add usb port auto power off mechanism. When usb device is suspending, usb core will send clear usb port's POWER feature requst to power off port if all conditions were met. These conditions are remote wakeup enable, pm qos NO_POWER_OFF flags and persist feature. When device is susp

[RFC PATCH 3/5] usb: expose usb port's pm qos flags to user space

2012-11-09 Thread Lan Tianyu
This patch is to expose usb port's pm qos flags(pm_qos_no_power_off, pm_qos_remote_wakeup) to user space. The pm_qos_no_power_off will be used to control usb port auto power off mechanism from user space. Signed-off-by: Lan Tianyu --- drivers/usb/core/hub.c |9 + 1 file changed, 9 in

[RFC PATCH 5/5] usb: add usb port's pm qos flags request to change NO_POWER_OFF flag

2012-11-09 Thread Lan Tianyu
Some usb devices can't be resumed correctly after power off. This patch is to add pm qos flags request to change NO_POWER_OFF and provide usb_device_allow_power_off() for device drivers to allow or prohibit usb core to power off the device. Signed-off-by: Lan Tianyu --- drivers/usb/core/hub.c |

[RFC PATCH 4/5] usb: add runtime pm support for usb port device

2012-11-09 Thread Lan Tianyu
When pm qos flags is changing, the pm core will keep device not in RPM_SUSPEND via pm_runtime_get_sync/put(dev). When the flags are changed, this will affect usb device status. If NO_POWER_OFF flag was set when the device was power off, it would need to be resumed and suspended again without power

Device detected as Digitalcamera (PTP?) instead of Portable Device (MTP?) - MS_COMP_MTP - WinXP

2012-11-09 Thread Karl Krach
Hello, I'm using the Meego's MTP code on a TI8148 evaluation board (Inventra HDRC Peripheral Controller). When connecting to Win7 it's detected as Protable Device and I'm offered to open the explorer. But on WinXP it's detected as Digital Camera and thus I am offered to open scan- and image-e

Re: [PATCH] usb: gadget: ncm: correct endianess conversion

2012-11-09 Thread Dmytro Milinevskyy
Hi Felipe, On Thu, Nov 8, 2012 at 8:30 PM, Felipe Balbi wrote: > Hi, > > On Thu, Nov 08, 2012 at 08:07:57PM +0100, Dmytro Milinevskyy wrote: >> > On Wed, Nov 07, 2012 at 02:14:00PM +0100, Dmytro Milinevskyy wrote: >> >> Unfortunately I have some issues with git send-email. >> >> I've attached the

Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-09 Thread Pratyush Anand
On 11/9/2012 12:53 AM, Sergei Shtylyov wrote: Look at this fragment of ehci-hub.c: Thanks Sergei for pointing it out. I apologize for the noise. SPEAr is also an EHCI implementation. Having following code, actually we should not need this patch for SPEAr. Regards Pratyush 807

Re: [PATCH] usb: gadget: ncm: correct endianess conversion

2012-11-09 Thread Felipe Balbi
Hi, On Fri, Nov 09, 2012 at 10:31:47AM +0100, Dmytro Milinevskyy wrote: > Hi Felipe, > > On Thu, Nov 8, 2012 at 8:30 PM, Felipe Balbi wrote: > > Hi, > > > > On Thu, Nov 08, 2012 at 08:07:57PM +0100, Dmytro Milinevskyy wrote: > >> > On Wed, Nov 07, 2012 at 02:14:00PM +0100, Dmytro Milinevskyy wro

Re: [PATCH v7 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs

2012-11-09 Thread Felipe Balbi
Hi, On Tue, Oct 30, 2012 at 10:27:32AM +0530, Praveen Paneri wrote: > Changes from v6: > Modified register definitions according to the existing ones. > Changed default PHY clk selection for SoCs. > Improved binding text and rebased to the latest usb-next. > > Changes from v5: > Moved clk_get() t

Re: [PATCH v7 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs

2012-11-09 Thread Praveen Paneri
Hi Kukjin, On Fri, Nov 9, 2012 at 5:24 PM, Felipe Balbi wrote: > Hi, > > On Tue, Oct 30, 2012 at 10:27:32AM +0530, Praveen Paneri wrote: >> Changes from v6: >> Modified register definitions according to the existing ones. >> Changed default PHY clk selection for SoCs. >> Improved binding text and

Re: [PATCH] usb: core: hub power off when over-current detected

2012-11-09 Thread Sergei Shtylyov
Hello. On 08-11-2012 22:48, Sergei Shtylyov wrote: USB specs says that if an over-current is detected then a hub must switch off all affected port, wait to cool down and then switch on. There are few controllers, which does not follow it, and expects software to switch off the port power.

Re: [PATCH v7 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs

2012-11-09 Thread Kyungmin Park
On Fri, Nov 9, 2012 at 8:54 PM, Felipe Balbi wrote: > Hi, > > On Tue, Oct 30, 2012 at 10:27:32AM +0530, Praveen Paneri wrote: >> Changes from v6: >> Modified register definitions according to the existing ones. >> Changed default PHY clk selection for SoCs. >> Improved binding text and rebased to

Re: [PATCH v7 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs

2012-11-09 Thread Praveen Paneri
Hi, On Fri, Nov 9, 2012 at 6:06 PM, Kyungmin Park wrote: > On Fri, Nov 9, 2012 at 8:54 PM, Felipe Balbi wrote: >> Hi, >> >> On Tue, Oct 30, 2012 at 10:27:32AM +0530, Praveen Paneri wrote: >>> Changes from v6: >>> Modified register definitions according to the existing ones. >>> Changed default P

usb: class: cdc-acm: /dev/ttyACM0 HowTo disable interrupt and control URBs

2012-11-09 Thread Markus Kolb
Hi, is it and how is it possible when using the acm_tty that there is not sent any interrupt or control URB? My connected device has problems handling this stuff and doesn't respond to the bulk URB which is timed somewhere between. I've found e.g. URB_NO_INTERRUPT and USBDEVFS_URB_NO_INTERRUPT

Re: [PATCH v7 0/5] usb: phy: samsung: Introducing usb phy driver for samsung SoCs

2012-11-09 Thread Felipe Balbi
Hi, On Fri, Nov 09, 2012 at 06:50:44PM +0530, Praveen Paneri wrote: > Hi, > > On Fri, Nov 9, 2012 at 6:06 PM, Kyungmin Park wrote: > > On Fri, Nov 9, 2012 at 8:54 PM, Felipe Balbi wrote: > >> Hi, > >> > >> On Tue, Oct 30, 2012 at 10:27:32AM +0530, Praveen Paneri wrote: > >>> Changes from v6: >

Re: usb: class: cdc-acm: /dev/ttyACM0 HowTo disable interrupt and control URBs

2012-11-09 Thread Oliver Neukum
On Friday 09 November 2012 14:42:24 Markus Kolb wrote: > Hi, > > is it and how is it possible when using the acm_tty that > there is not sent any interrupt or control URB? It is not possible. > My connected device has problems handling this stuff and > doesn't respond to the bulk URB which is ti

Re: Device detected as Digitalcamera (PTP?) instead of Portable Device (MTP?) - MS_COMP_MTP - WinXP

2012-11-09 Thread Peter Stuge
Karl Krach wrote: > How to be detected as USB\MS_COMP_MTP? Microsoft OS Descriptors http://msdn.microsoft.com/en-us/library/windows/hardware/gg463179.aspx http://msdn.microsoft.com/en-us/library/windows/hardware/ff537430%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/windows/hardware/gg463179.

Re: [RFC PATCH 1/5] usb: Register usb port's acpi power resources

2012-11-09 Thread Alan Stern
On Fri, 9 Nov 2012, Lan Tianyu wrote: > This patch is to register usb port's acpi power resources. Create > link between usb port device and its acpi power resource. > +int usb_acpi_unregister_power_resources(struct usb_device *udev) > +{ > + acpi_handle port_handle = DEVICE_ACPI_HANDLE(&udev

Re: [RFC PATCH 2/5] usb: add usb port auto power off mechanism

2012-11-09 Thread Alan Stern
On Fri, 9 Nov 2012, Lan Tianyu wrote: > This patch is to add usb port auto power off mechanism. > When usb device is suspending, usb core will send clear usb port's > POWER feature requst to power off port if all conditions were met. > These conditions are remote wakeup enable, pm qos NO_POWER_OFF

Re: [RFC PATCH 2/5] usb: add usb port auto power off mechanism

2012-11-09 Thread Alan Stern
On Fri, 9 Nov 2012, Lan Tianyu wrote: > This patch is to add usb port auto power off mechanism. > When usb device is suspending, usb core will send clear usb port's > POWER feature requst to power off port if all conditions were met. Actually, this is the wrong approach. What you should do, if a

USB enclosures seem to require read(16) with >2TB drives

2012-11-09 Thread Jason J. Herne
Hello, I've noticed Linux seems to have issues with external USB enclosures containing drives > 2 TB. The USB mass storage driver apparently emulates a SCSI device and sends a read/write(10) for all requests where the target sector is not large enough to require the use of read(16). The issue is

Re: [RFC PATCH 4/5] usb: add runtime pm support for usb port device

2012-11-09 Thread Alan Stern
On Fri, 9 Nov 2012, Lan Tianyu wrote: > When pm qos flags is changing, the pm core will keep device not > in RPM_SUSPEND via pm_runtime_get_sync/put(dev). When the flags are > changed, this will affect usb device status. If NO_POWER_OFF flag was > set when the device was power off, it would need t

[PATCH] USB enclosures seem to require read(16) with >2TB drives

2012-11-09 Thread Jason J. Herne
From: "Jason J. Herne" Force large capacity (> 2TB) drives in USB enclosures to use READ(16) instead of READ(10). Some(most/all?) enclosures do not like READ(10) commands when a large capacity drive is installed. Signed-off-by: Jason J. Herne --- drivers/scsi/sd.c |7 +--

Re: [RFC PATCH 5/5] usb: add usb port's pm qos flags request to change NO_POWER_OFF flag

2012-11-09 Thread Alan Stern
On Fri, 9 Nov 2012, Lan Tianyu wrote: > Some usb devices can't be resumed correctly after power off. This > patch is to add pm qos flags request to change NO_POWER_OFF and > provide usb_device_allow_power_off() for device drivers to allow or > prohibit usb core to power off the device. If the rea

Re: USB enclosures seem to require read(16) with >2TB drives

2012-11-09 Thread Alan Stern
On Fri, 9 Nov 2012, Jason J. Herne wrote: > Hello, I've noticed Linux seems to have issues with external USB > enclosures containing drives > 2 TB. The USB mass storage driver > apparently emulates a SCSI device and sends a read/write(10) for all Actually, it's the SCSI disk driver which decide

Re: usb: class: cdc-acm: /dev/ttyACM0 HowTo disable interrupt and control URBs

2012-11-09 Thread Markus Kolb
On 09.11.2012 15:43, Oliver Neukum wrote: On Friday 09 November 2012 14:42:24 Markus Kolb wrote: [...] I've found e.g. URB_NO_INTERRUPT and USBDEVFS_URB_NO_INTERRUPT in http://code.metager.de/source/xref/linux/stable/drivers/usb/core/devio.c#1386 but how do I set this? You don't. This is for

RE: [PATCH] USB enclosures seem to require read(16) with >2TB drives

2012-11-09 Thread Elliott, Robert (Server Storage)
I recommend broadening this patch. T10 is discussing making READ (10), WRITE (10), etc. obsolete in SBC-4 in favor of their 16-byte CDB counterparts. The algorithm should be: 1. During discovery, determine if 16-byte CDBs are supported. There are several ways to determine this: a) REPORT SUP

Re: Device detected as Digitalcamera (PTP?) instead of Portable Device (MTP?) - MS_COMP_MTP - WinXP

2012-11-09 Thread Karl Krach
On 09.11.2012 16:40, Peter Stuge wrote: Microsoft OS Descriptors Thanks a lot. It seams that the Android [1] has the 'Microsoft OS Descriptors' implemented while Meego has not. Porting from the Android code don't seems to be straightforward for me - do you know a better solution? Accordin

[GIT PULL] usb: xceiv: patches for v3.8 merge window

2012-11-09 Thread Felipe Balbi
Hi Greg, Here are the transceiver patches for v3.8 merge window. Let me know if you want any changes. Have a nice weekend ps: for samsung folks, I'm sorry but I couldn't wait any longer. The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14

[GIT PULL] usb: musb: patches for v3.8 merge window

2012-11-09 Thread Felipe Balbi
Hi Greg, MUSB changes for v3.8 follow. This will conflict with your usb-next branch, below you can find the resolution I used: diff --cc drivers/usb/musb/musb_dsps.c index ff5f112,e770f79..cf08966a --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c @@@ -458,14 -489,24 +489,24 @

[GIT PULL] usb: dwc3: patches for v3.8 merge window

2012-11-09 Thread Felipe Balbi
Hi Greg, Here are dwc3 patches for v3.8. This will also conflict with your usb-next branch and below you can find my resolution: diff --cc drivers/usb/dwc3/core.c index c14ebc9,2bd007d..4174054 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@@ -408,11 -355,6 +355,10 @@@ err0 stati

[GIT PULL] USB patches

2012-11-09 Thread Felipe Balbi
Hi Greg, Here are gadget patches for v3.8, and it also conflicts with your usb-next branch. Below you can find my resolution (suggested by Kuninori): diff --cc drivers/usb/renesas_usbhs/fifo.c index c021b20,72ad375..9538f0f --- a/drivers/usb/renesas_usbhs/fifo.c +++ b/drivers/usb/renesas_usbhs/fi

Re: [RFC PATCH 3/5] usb: expose usb port's pm qos flags to user space

2012-11-09 Thread Alan Stern
On Fri, 9 Nov 2012, Lan Tianyu wrote: > This patch is to expose usb port's pm qos flags(pm_qos_no_power_off, > pm_qos_remote_wakeup) to user space. The pm_qos_no_power_off will > be used to control usb port auto power off mechanism from user space. Something here doesn't look right... > @@ -1289

Re: kmemleak report on isp1763 and sierra MC8705

2012-11-09 Thread Richard Retanubun
On 29/10/12 06:14 PM, Alan Stern wrote: On Mon, 29 Oct 2012, Richard Retanubun wrote: Focusing down on one of the dumps: unreferenced object 0xd3849740 (size 8): comm "khubd", pid 1026, jiffies 232553037 (age 506.597s) hex dump (first 8 bytes): 4d 43 38 37 30 35 00 00