Re: [PATCH v2 Resend 9/9] usb: add usb_device_allow_power_off() function.

2013-01-04 Thread Lan Tianyu
On 2013年01月04日 23:59, Alan Stern wrote: > On Fri, 4 Jan 2013, Lan Tianyu wrote: > >> Some usb devices can't be resumed correctly after power off. This >> patch is to add usb_device_allow_power_off() for device's driver to allow or >> prohibit device to be power off the device. Call pm_runtime_get_

Re: [PATCH v2 7/9] usb: add usb port auto power off mechanism

2013-01-04 Thread Lan Tianyu
On 2013年01月04日 23:57, Alan Stern wrote: > On Fri, 4 Jan 2013, Lan Tianyu wrote: >> @@ -2862,6 +2880,20 @@ int usb_port_suspend(struct usb_device *udev, >> pm_message_t msg) >> udev->port_is_suspended = 1; >> msleep(10); >> } >> + >> +/* >> + * Check whether c

Re: [PATCH v2 6/9] usb: add runtime pm support for usb port device

2013-01-04 Thread Lan Tianyu
On 2013年01月04日 23:53, Alan Stern wrote: > On Fri, 4 Jan 2013, Lan Tianyu wrote: > >> This patch is to add runtime pm callback for usb port device. >> Set/clear PORT_POWER feature in the resume/suspend callbak. >> Add portnum for struct usb_port to record port number. Do >> pm_rumtime_get_sync/put(

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

2013-01-04 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 v7 6/6] USB: forbid memory allocation with I/O during bus reset

2013-01-04 Thread Ming Lei
If one storage interface or usb network interface(iSCSI case) exists in current configuration, memory allocation with GFP_KERNEL during usb_device_reset() might trigger I/O transfer on the storage interface itself and cause deadlock because the 'us->dev_mutex' is held in .pre_reset() and the storag

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

2013-01-04 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-rc2_orig/drivers/usb/storage/usb.c linux-3.8-rc2/dri

[PATCH v7 4/6] net/core: apply pm_runtime_set_memalloc_noio on network devices

2013-01-04 Thread Ming Lei
ller" Cc: Eric Dumazet Cc: David Decotigny Cc: Tom Herbert Cc: Ingo Molnar Signed-off-by: Ming Lei -- v7: - rebase on v3.8-rc2-next-20130104 v4: - call pm_runtime_set_memalloc_noio(ddev, true) after device_add --- net/core/net-sysfs.c |5 + 1 file changed, 5

[PATCH v7 5/6] PM / Runtime: force memory allocation with no I/O during Runtime PM callbcack

2013-01-04 Thread Ming Lei
This patch applies the introduced memalloc_noio_save() and memalloc_noio_restore() to force memory allocation with no I/O during runtime_resume/runtime_suspend callback on device with the flag of 'memalloc_noio' set. Cc: Alan Stern Cc: Oliver Neukum Cc: Rafael J. Wysocki Signed-off-by: Ming Lei

[PATCH v7 3/6] block/genhd.c: apply pm_runtime_set_memalloc_noio on block devices

2013-01-04 Thread Ming Lei
This patch applyes the introduced pm_runtime_set_memalloc_noio on block device so that PM core will teach mm to not allocate memory with GFP_IOFS when calling the runtime_resume and runtime_suspend callback for block devices and its ancestors. Cc: Jens Axboe Signed-off-by: Ming Lei -- v5:

[PATCH v7 2/6] PM / Runtime: introduce pm_runtime_set_memalloc_noio()

2013-01-04 Thread Ming Lei
The patch introduces the flag of memalloc_noio in 'struct dev_pm_info' to help PM core to teach mm not allocating memory with GFP_KERNEL flag for avoiding probable deadlock. As explained in the comment, any GFP_KERNEL allocation inside runtime_resume() or runtime_suspend() on any one of device in

[PATCH v7 1/6] mm: teach mm by current context info to not do I/O during memory allocation

2013-01-04 Thread Ming Lei
-- v7: - fix type of 'flags' in memalloc_noio_save()/memalloc_noio_restore() - rebase on v3.8-rc2-next-20130104 v6: - replace GFP_IO with __GFP_IO to fix compile failure v5: - use inline instead of macro to define memalloc_noio_* - replace memalloc_

[PATCH v7 0/6] solve deadlock caused by memory allocation with I/O

2013-01-04 Thread Ming Lei
ur concerns and looks no one objects these patches? Change logs: V7: - rebase on v3.8-rc2-next-20130104 - move memalloc_noio_save/memalloc_noio_restore into rpm_callback to avoid code duplication, as suggested by Rafael - optimize on pm_runtime_set_mem

Re: [V2 PATCH 00/27] mv-usb fix and enhancement patches

2013-01-04 Thread Chao Xie
hi, Felipe How about these patches? i see that 3.8-rc2 is tagged but these patches are not merged. Thanks. On Tue, Dec 4, 2012 at 3:34 PM, Haojian Zhuang wrote: > On Fri, Nov 30, 2012 at 10:10 PM, Felipe Balbi wrote: >> Hi, >> >> On Tue, Nov 27, 2012 at 10:05:59PM -0500, Chao Xie wrote: >>> The

Re: [PATCH 1/2] usbnet: allow status interrupt URB to always be active

2013-01-04 Thread Dan Williams
On Fri, 2013-01-04 at 23:16 +0100, Oliver Neukum wrote: > On Friday 04 January 2013 10:48:16 Dan Williams wrote: > > Some drivers (ex sierra_net) need the status interrupt URB > > active even when the device is closed, because they receive > > custom indications from firmware. Allow sub-drivers to

Re: [PATCH 1/2] usbnet: allow status interrupt URB to always be active

2013-01-04 Thread Oliver Neukum
On Friday 04 January 2013 10:48:16 Dan Williams wrote: > Some drivers (ex sierra_net) need the status interrupt URB > active even when the device is closed, because they receive > custom indications from firmware. Allow sub-drivers to set > a flag that submits the status interrupt URB on probe and

Re: new device for option and qmi_wwan

2013-01-04 Thread Thomas Schäfer
> Telekom Speedstick LTE II > Alcatel Alcatel One Touch L100V LTE only for completeness of data/infos: the device works in UMTS/HSPA mode also with IPv6 Thomas -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majo

[PATCH 2/2] sierra_net: keep status interrupt URB active over netdev open/close

2013-01-04 Thread Dan Williams
The driver and firmware sync up through SYNC messages, and the firmware's affirmative reply to these SYNC messages appears to be the "Reset" indication received via the status interrupt endpoint. Thus the driver needs the status interrupt endpoint always active so that the Reset indication can be

[PATCH 1/2] usbnet: allow status interrupt URB to always be active

2013-01-04 Thread Dan Williams
Some drivers (ex sierra_net) need the status interrupt URB active even when the device is closed, because they receive custom indications from firmware. Allow sub-drivers to set a flag that submits the status interrupt URB on probe and keeps the URB alive over device open/close. The URB is still

Re: Does USB isochronous mode work on EHCI port?

2013-01-04 Thread Frank Schäfer
Am 04.01.2013 14:20, schrieb Roger Quadros: > Hi Gary, > > On 01/04/2013 02:20 PM, Gary Thomas wrote: >> >> On Thursday, January 3, 2013 9:21:19 AM UTC-7, Felipe Balbi wrote: >> >> Hi, >> >> On Wednesday, January 2, 2013 10:44:50 PM UTC+2, Gary Thomas wrote: >> >> I have a video ada

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

2013-01-04 Thread Frank Schäfer
Am 03.01.2013 21:58, schrieb Alan Stern: ... > On Thu, 3 Jan 2013, Octavio Alvarez wrote: >> If not, then what would the sanest default be? Where to document >> this cas in a clean, user friendly way? > The sanest default is what my patch does: disable wakeup for OHCI > controllers on computers w

Re: [PATCH v2 Resend 9/9] usb: add usb_device_allow_power_off() function.

2013-01-04 Thread Alan Stern
On Fri, 4 Jan 2013, Lan Tianyu wrote: > Some usb devices can't be resumed correctly after power off. This > patch is to add usb_device_allow_power_off() for device's driver to allow or > prohibit device to be power off the device. Call pm_runtime_get_sync(portdev) > to increase port's usage count

Re: [PATCH v2 7/9] usb: add usb port auto power off mechanism

2013-01-04 Thread Alan Stern
On Fri, 4 Jan 2013, Lan Tianyu wrote: > This patch is to add usb port auto power off mechanism. > When usb device is suspending, usb core will suspend usb port and > usb port runtime pm callback will clear PORT_POWER feature to > power off port if all conditions were met. These conditions are > re

Re: [PATCH v2 6/9] usb: add runtime pm support for usb port device

2013-01-04 Thread Alan Stern
On Fri, 4 Jan 2013, Lan Tianyu wrote: > This patch is to add runtime pm callback for usb port device. > Set/clear PORT_POWER feature in the resume/suspend callbak. > Add portnum for struct usb_port to record port number. Do > pm_rumtime_get_sync/put(portdev) when a device is plugged/unplugged > to

Re: Linux USB file storage gadget with new UDC

2013-01-04 Thread Alan Stern
On Fri, 4 Jan 2013, victor yeo wrote: > Hi, > > >> Replying my email, i set the ep,name to ep1 for bulk out and bulk in > >> endpoints. The ep_matches() in epautoconf.c is able to auto-configure > >> the bulk out to endpoint 1. > > > > Are you sure the name string is set to "ep1" for both endpoin

[RESEND 2/2] musb: fix dependency on transceiver driver

2013-01-04 Thread Ming Lei
This patch let glue driver return -EPROBE_DEFER if the transceiver is not readly, so we can support defer probe on musb to fix the below error on 3.7-rc5 if transceiver drivers are built as module: [ 19.052490] unable to find transceiver of type USB2 PHY [ 19.072052] HS USB OTG: no transceiver

[RESEND PATCH 1/2] USB: musb: fix failure path

2013-01-04 Thread Ming Lei
In the fail1~fail5 failure path, pm_runtime_disable() should be called to avoid 'Unbalanced pm_runtime_enable' error in next probe() which may be triggered by defer probe or next 'modprobe musb_hdrc'. Cc: Sebastian Andrzej Siewior Cc: Felipe Balbi Cc: v3.8 Signed-off-by: Ming Lei --- drivers/

Su buzón ha superado el límite de almacenamiento de 2.GB

2013-01-04 Thread Webmail Sistema Administration.Correo
Su buzón ha superado el límite de almacenamiento de 2.GB Ajuste el administrador 2.30GB actualmente, no puede ser capaz de enviar o recibir nuevos mensajes hasta que vuelva a validar su dirección de e-mail Haga clic en el siguiente enlace para validar su dirección de e-mail https://docs.google

Re: [PATCH v5 00/22] OMAP USB Host cleanup

2013-01-04 Thread Roger Quadros
Hi Samuel, Below is the pull request for this series. I've addressed the recent indentation issue pointed out by Sergei. The following changes since commit cfa7abd7a92396923889fc870090b5d748c603ab: Merge branch 'heads/fixes' into for-next (2013-01-02 12:40:04 -0800) are available in the git r

Re: [PATCH v5 13/22] mfd: omap-usb-host: override number of ports from platform data

2013-01-04 Thread Roger Quadros
On 01/03/2013 02:52 PM, Sergei Shtylyov wrote: > Hello. > > On 02-01-2013 19:00, Roger Quadros wrote: > >> Both OMAP4 and 5 exhibit the same revision ID in the REVISION register >> but they have different number of ports i.e. 2 and 3 respectively. >> So we can't rely on REVISION register for numb

[PATCH v2 Resend 9/9] usb: add usb_device_allow_power_off() function.

2013-01-04 Thread Lan Tianyu
Some usb devices can't be resumed correctly after power off. This patch is to add usb_device_allow_power_off() for device's driver to allow or prohibit device to be power off the device. Call pm_runtime_get_sync(portdev) to increase port's usage count and then port will not be suspended. The device

[PATCH v2 7/9] usb: add usb port auto power off mechanism

2013-01-04 Thread Lan Tianyu
This patch is to add usb port auto power off mechanism. When usb device is suspending, usb core will suspend usb port and usb port runtime pm callback will clear PORT_POWER feature to power off port if all conditions were met. These conditions are remote wakeup disable, pm qos NO_POWER_OFF flag cle

[PATCH v2 8/9] usb: expose usb port's pm qos flags to user space

2013-01-04 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. User can set pm_qos_no_power_off flag to prohibit the port from being power off. Signed-off-by: Lan Tianyu --- drivers/usb/core/port.c |9 +++-- 1 file changed, 7 insertions(+), 2 de

[PATCH v2 9/9] usb: add usb_device_allow_power_off() function.

2013-01-04 Thread Lan Tianyu
To: gre...@linuxfoundation.org, sarah.a.sh...@linux.intel.com, st...@rowland.harvard.edu, r...@sisk.pl, oneu...@suse.de Cc: linux-usb@vger.kernel.org, tianyu@intel.com, sebastien.duf...@intel.com Some usb devices can't be resumed correctly after power off. This patch is

[PATCH v2 6/9] usb: add runtime pm support for usb port device

2013-01-04 Thread Lan Tianyu
This patch is to add runtime pm callback for usb port device. Set/clear PORT_POWER feature in the resume/suspend callbak. Add portnum for struct usb_port to record port number. Do pm_rumtime_get_sync/put(portdev) when a device is plugged/unplugged to prevent it from being power off when it is activ

[PATCH v2 5/9] usb: Register usb port's acpi power resources

2013-01-04 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/port.c |3 +++ drivers/usb/core/usb-acpi.c | 20 drivers/usb/core/usb.h |6 ++ 3

[PATCH v2 3/9] usb: Add "portX/connect_type" attribute to expose usb port's connect type

2013-01-04 Thread Lan Tianyu
Some platforms provide usb port connect types through ACPI. This patch is to add this new attribute to expose these information to user space. Signed-off-by: Lan Tianyu --- Documentation/ABI/testing/sysfs-bus-usb |9 +++ drivers/usb/core/port.c | 43

[PATCH v2 4/9] usb: Create link files between child device and usb port device.

2013-01-04 Thread Lan Tianyu
To show the relationship between usb port and child device, add link file "port" under usb device's sysfs directoy and "device" under usb port device's sysfs directory. They are linked to each other. Signed-off-by: Lan Tianyu --- drivers/usb/core/hub.c | 26 ++ 1 file c

[PATCH v2 1/9] usb: Add driver/usb/core/(port.c,hub.h) files

2013-01-04 Thread Lan Tianyu
This patch is to create driver/usb/core/(port.c,hub.h) files and move usb port related code into port.c. Signed-off-by: Lan Tianyu --- drivers/usb/core/Makefile |1 + drivers/usb/core/hub.c| 107 + drivers/usb/core/hub.h| 97

[PATCH v2 2/9] USB: Set usb port's DeviceRemovable according acpi information

2013-01-04 Thread Lan Tianyu
ACPI provide "_PLD" and "_UPC" aml methods to describe usb port visibility and connectability. This patch is to add usb_hub_adjust_DeviceRemovable() to adjust usb hub port's DeviceRemovable according ACPI information and invoke it in the rh_call_control(). When hub descriptor request is issued at

[PATCH V2 0/9] usb: usb port power off mechanism anc expose usb port connect type

2013-01-04 Thread Lan Tianyu
Change since v1: optimize the export connect type patch and adjust the DeviceRemovalbe flag in the rh_call_control() after GetHubDescriptor request being processed. move all debounce operation to usb port's runtime resume callback(). Add did_runtime_put in the struct usb_port to call

Re: Does USB isochronous mode work on EHCI port?

2013-01-04 Thread Roger Quadros
Hi Gary, On 01/04/2013 02:20 PM, Gary Thomas wrote: > > > On Thursday, January 3, 2013 9:21:19 AM UTC-7, Felipe Balbi wrote: > > Hi, > > On Wednesday, January 2, 2013 10:44:50 PM UTC+2, Gary Thomas wrote: > > I have a video adapter attached to my EHCI port which runs full >

[PATCH] usb: musb: Double buffering issues in host mode TX

2013-01-04 Thread Supriya Karanth
From: supriya karanth Whenever an URB is programmed for transfer, the TXFIFO is flushed. This results in valid packets of the previous transfer to get flushed when double buffering is enabled (The MUSB_TXCSR_FIFONOTEMPTY bit in TXCSR is set indicating that a packet in the FIFO is yet to be sent)

Re: Linux USB redirection

2013-01-04 Thread Abhijit Pawar
On 01/04/2013 02:46 PM, Anil Nair wrote: Hi Anil, > Hello Abhijit, > >> I have used the USBIP source for 2.6.30 kernel and tested it. The >> modules are loaded correctly and I was able to export the device as >> virtual USB device to another machine and perform operations on the device. >> You may

Re: Linux USB file storage gadget with new UDC

2013-01-04 Thread victor yeo
Hi, >> Replying my email, i set the ep,name to ep1 for bulk out and bulk in >> endpoints. The ep_matches() in epautoconf.c is able to auto-configure >> the bulk out to endpoint 1. > > Are you sure the name string is set to "ep1" for both endpoints? (Or > "ep1in" and "ep1out"?) If the string was