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

2012-11-29 Thread Lan Tianyu
On 2012年11月29日 03:42, Alan Stern wrote: > On Sat, 17 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 >> prohi

Re: [try#1 PATCH 5/7] omap4: panda: add smsc95xx regulator and reset dependent on root hub

2012-11-29 Thread Andy Green (林安廸)
On 11/30/2012 04:58 AM, the mail apparently from Andy Green included: On 11/30/2012 01:57 AM, the mail apparently from Alan Stern included: On Thu, 29 Nov 2012, Andy Green wrote: However I think what you're saying about binding to hub power is good. The hub ports are not devices, but it would

Re: [PATCH 09/10] usb: expose usb port's pm qos flags to user space

2012-11-29 Thread Lan Tianyu
On 2012年11月29日 01:44, Alan Stern wrote: > On Sat, 17 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. User can set pm_qos_no_power_off >> flag to prohibit the port from being power off. > > Do we really n

[PATCH] usb: musb: Enable DMA Mode1 for device mode RX in ux500 platform

2012-11-29 Thread Supriya Karanth
From: supriya karanth Handles: 1) Known transfer length a) Non multiple of packet size b) Multiple of packet size 2) Unknown transfer lengths - Short packet indicates end of transfer ---> OUT Endpoint interrupt recieved | | | _

Re: [try#1 PATCH 5/7] omap4: panda: add smsc95xx regulator and reset dependent on root hub

2012-11-29 Thread Andy Green
On 11/30/2012 01:57 AM, the mail apparently from Alan Stern included: On Thu, 29 Nov 2012, Andy Green wrote: However I think what you're saying about binding to hub power is good. The hub ports are not devices, but it would be possible to bind an asset array to them and make the pre- and post-

Re: [RFC 3/8] xHCI: Clear all USB 2.0 change bits on port disable.

2012-11-29 Thread Alan Stern
On Thu, 29 Nov 2012, Sarah Sharp wrote: > > It is driver-specific. (For example, under certain rare conditions > > uhci-hcd needs to poll for wakeup events while the controller is > > suspended.) The USB core does not automatically stop polling when the > > root hub is suspended; you have to

Re: [RFC 3/8] xHCI: Clear all USB 2.0 change bits on port disable.

2012-11-29 Thread Sarah Sharp
On Tue, Nov 27, 2012 at 04:36:41PM -0500, Alan Stern wrote: > On Tue, 27 Nov 2012, Sarah Sharp wrote: > > > Do I need to stop the polling when the host controller is suspended and > > restart it when it's resumed? It seems like OHCI does that, but I can't > > tell if it's host-specific. Or will

Re: [try#1 PATCH 5/7] omap4: panda: add smsc95xx regulator and reset dependent on root hub

2012-11-29 Thread Alan Stern
On Thu, 29 Nov 2012, Andy Green wrote: > However I think what you're saying about binding to hub power is good. > The hub ports are not devices, but it would be possible to bind an asset > array to them and make the pre- and post- code functions. In the 3.6 kernel, hub ports are not devices. I

Re: [RFC v2] usb/gadget: the start of the configfs interface

2012-11-29 Thread Sebastian Andrzej Siewior
On 11/29/2012 06:26 PM, Michal Nazarewicz wrote: +#define MAX_NAME_LEN 40 +static struct config_group *function_make( + struct config_group *group, + const char *name) +{ + struct usb_function *f; + char buf[MAX_NAME_LEN]; + char *func_name; +

Re: [PATCH] hub: handle claim of enabled remote wakeup after reset

2012-11-29 Thread Alan Stern
On Thu, 29 Nov 2012, Oliver Neukum wrote: > Some touchscreens have buggy firmware which claims > remote wakeup to be enabled after a reset. They nevertheless > crash if the feature is cleared by the host. > Add a check for reset resume before checking for > an enabled remote wakeup feature. On com

Re: [RFC v2] usb/gadget: the start of the configfs interface

2012-11-29 Thread Michal Nazarewicz
On Thu, Nov 29 2012, Sebastian Andrzej Siewior wrote: > |# modprobe dummy_hcd num=2 > > |# find /sys/kernel/config/ -ls > > | 5570 drwxr-xr-x 3 root root0 Nov 29 17:26 > /sys/kernel/config/ > | 5580 drwxr-xr-x 5 root root0 Nov 29 17:26 > /sys/kerne

Re: [PATCH 1/4] uas: new function to cancel data urbs

2012-11-29 Thread Alan Stern
On Thu, 29 Nov 2012, Gerd Hoffmann wrote: > Is it safe to call urb_unlink_urb twice on the same urb? Or must I take > care to not do that? It is safe. You only have to make certain that the URB is not deallocated before usb_unlink_urb returns. Alan Stern -- To unsubscribe from this list: sen

Re: USB 2.0: No giveback comes for one submitted URB

2012-11-29 Thread Alan Stern
On Thu, 29 Nov 2012, amit nagal wrote: > On Wed, Nov 28, 2012 at 9:58 PM, Alan Stern wrote: > > Vivek and Amit, are you two copies of the same person? > No . Actually vivek's post to linux-usb forum failed . so i ended up > posting for him. > sorry for inconvinience . No problem. > >> As urb p

Re: [RFC PATCH 1/5] drivers : introduce device_path api

2012-11-29 Thread Alan Stern
On Thu, 29 Nov 2012, Ming Lei wrote: > If we want to set up the association between usb port and power domain, > usb knowledge is required, at least bus info and port topology are needed. > > One difficulty is the fact that the device(such as usb port) is independent > with the 'power domain', fo

[RFC v2] usb/gadget: the start of the configfs interface

2012-11-29 Thread Sebastian Andrzej Siewior
|# modprobe dummy_hcd num=2 |# find /sys/kernel/config/ -ls | 5570 drwxr-xr-x 3 root root0 Nov 29 17:26 /sys/kernel/config/ | 5580 drwxr-xr-x 5 root root0 Nov 29 17:26 /sys/kernel/config/usb_gadget | 5610 drwxr-xr-x 4 root root

[PATCH] fs/configfs: allow to create groups on demand

2012-11-29 Thread Sebastian Andrzej Siewior
This patch adds a function add a group to an existing one and its counterart. The newly created group behaves as it would be created via default_groups[] which means the user can't rmdir it. This should be used by the upcomming USB gadget interface in order to add the currently available UDCs as a

Re: [PATCH 1/4] uas: new function to cancel data urbs

2012-11-29 Thread Gerd Hoffmann
+static void uas_unlink_data_urbs(struct uas_dev_info *devinfo, + struct uas_cmd_info *cmdinfo) +{ + unsigned long flags; + + spin_lock_irqsave(&devinfo->lock, flags); + if (cmdinfo->state & DATA_IN_URB_INFLIGHT) { + spin

Re: how to introduce uevent/Udev in the driver.

2012-11-29 Thread Greg KH
On Thu, Nov 29, 2012 at 06:00:17PM +0530, chetan cr123 wrote: > Hi, > > I am working on Android 4.0, Kernel Version 3.0.8 > I am working on USB mass storage driver. What is wrong with the existing USB mass storage driver we have in the kernel already? Why do you need to write a new one? > I Rig

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

2012-11-29 Thread Felipe Balbi
Hi, On Wed, Nov 28, 2012 at 08:34:25AM +0800, Ming Lei wrote: > On Wed, Nov 28, 2012 at 1:23 AM, Greg Kroah-Hartman > wrote: > > On Tue, Nov 27, 2012 at 11:48:41AM +0800, Ming Lei wrote: > >> Hi, > >> > >> On Thu, Nov 22, 2012 at 10:35 AM, Ming Lei wrote: > >> > In the fail1~fail5 failure path,

Re: [PATCH 4/4] uas: improve abort handler

2012-11-29 Thread Gerd Hoffmann
On 11/29/12 14:29, Oliver Neukum wrote: > On Thursday 29 November 2012 14:06:15 Gerd Hoffmann wrote: >> diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c >> index dd23b61..5f498db 100644 >> --- a/drivers/usb/storage/uas.c >> +++ b/drivers/usb/storage/uas.c >> @@ -717,8 +717,22 @@ s

Re: [PATCH 1/4] uas: new function to cancel data urbs

2012-11-29 Thread Oliver Neukum
On Thursday 29 November 2012 15:31:54 Gerd Hoffmann wrote: > On 11/29/12 14:20, Oliver Neukum wrote: > > On Thursday 29 November 2012 14:06:12 Gerd Hoffmann wrote: > >> Add uas_unlink_data_urbs function to cancel in-flight data urbs. > >> Moves existing code into a separate function. > >> > >> Sign

Re: [PATCH 1/4] uas: new function to cancel data urbs

2012-11-29 Thread Gerd Hoffmann
On 11/29/12 14:20, Oliver Neukum wrote: > On Thursday 29 November 2012 14:06:12 Gerd Hoffmann wrote: >> Add uas_unlink_data_urbs function to cancel in-flight data urbs. >> Moves existing code into a separate function. >> >> Signed-off-by: Gerd Hoffmann >> --- >> drivers/usb/storage/uas.c | 32 +

Re: [PATCH v3 3/7] usb: chipidea: add otg id switch and vbus connect/disconnect detect

2012-11-29 Thread Alexander Shishkin
Peter Chen writes: > +static void ci_otg_work(struct work_struct *work) > +{ > + struct ci13xxx *ci = container_of(work, struct ci13xxx, work); > + > + if (test_bit(CI_ID, &ci->events)) { > + clear_bit(CI_ID, &ci->events); > + ci_handle_id_switch(ci); > + } els

[ohci] Data Overrun errors on larger packet sizes

2012-11-29 Thread Tim Olmer
Hello all, I have the following situation: - Device 1 (SAM9G45, Linux kernel 3.2.30 with BusyBox): USB host device - Device 2 (OMAP4460, Android 4.0.3): USB slave device These devices are connected through USB1.1 (ohci) interface. I would like to use the ethernet protocol (CDC ECM) on top of the

[PATCH RESEND] usb: gadget: f_mass_storage: remove unused operations

2012-11-29 Thread Andrzej Pietrasiewicz
pre_eject and post_eject are not used by anyone. Removing them. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Kyungmin Park Acked-by: Michal Nazarewicz --- drivers/usb/gadget/f_mass_storage.c | 29 + 1 files changed, 1 insertions(+), 28 deletions(-) diff -

[PATCH] hub: handle claim of enabled remote wakeup after reset

2012-11-29 Thread Oliver Neukum
Some touchscreens have buggy firmware which claims remote wakeup to be enabled after a reset. They nevertheless crash if the feature is cleared by the host. Add a check for reset resume before checking for an enabled remote wakeup feature. On compliant devices the feature must be cleared after a re

Re: [PATCH v3 2/7] usb: chipidea: add otg file

2012-11-29 Thread Alexander Shishkin
Peter Chen writes: > diff --git a/drivers/usb/chipidea/ci.h b/drivers/usb/chipidea/ci.h > index d738603..8702871 100644 > --- a/drivers/usb/chipidea/ci.h > +++ b/drivers/usb/chipidea/ci.h > @@ -129,6 +129,7 @@ struct hw_bank { > * @vbus_active: is VBUS active > * @transceiver: pointer to USB

Re: [PATCH 4/4] uas: improve abort handler

2012-11-29 Thread Oliver Neukum
On Thursday 29 November 2012 14:06:15 Gerd Hoffmann wrote: > diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c > index dd23b61..5f498db 100644 > --- a/drivers/usb/storage/uas.c > +++ b/drivers/usb/storage/uas.c > @@ -717,8 +717,22 @@ static int uas_eh_abort_handler(struct scsi_cmnd

Re: [PATCH 1/4] uas: new function to cancel data urbs

2012-11-29 Thread Oliver Neukum
On Thursday 29 November 2012 14:06:12 Gerd Hoffmann wrote: > Add uas_unlink_data_urbs function to cancel in-flight data urbs. > Moves existing code into a separate function. > > Signed-off-by: Gerd Hoffmann > --- > drivers/usb/storage/uas.c | 32 ++-- > 1 files chan

[PATCH 0/4] uas: error handling fixes

2012-11-29 Thread Gerd Hoffmann
Hi, Trying to address https://bugzilla.kernel.org/show_bug.cgi?id=51031 cheers, Gerd Gerd Hoffmann (4): uas: new function to cancel data urbs uas: add UNLINK_DATA_URBS flag uas: add IS_IN_WORK_LIST flag uas: improve abort handler drivers/usb/storage/uas.c | 72 +++

[PATCH 3/4] uas: add IS_IN_WORK_LIST flag

2012-11-29 Thread Gerd Hoffmann
Keep track whenever the request is linked into the work list or not. Needed for request abort. Signed-off-by: Gerd Hoffmann --- drivers/usb/storage/uas.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index

[PATCH 4/4] uas: improve abort handler

2012-11-29 Thread Gerd Hoffmann
Two changes. First we check whenever the request is linked in the work list and if so take it out. Second check whenever the command is actually in flight before asking the device to cancel it via task management, and in case it isn't just zap the data urbs and finish it. Signed-off-by: Gerd Hof

[PATCH 2/4] uas: add UNLINK_DATA_URBS flag

2012-11-29 Thread Gerd Hoffmann
uas_unlink_data_urbs uses this to make sure the the scsi command is not released while looking at it. This will be needed when we start calling uas_unlink_data_urbs in the request cancel code paths. Signed-off-by: Gerd Hoffmann --- drivers/usb/storage/uas.c | 16 +--- 1 files chan

[PATCH 1/4] uas: new function to cancel data urbs

2012-11-29 Thread Gerd Hoffmann
Add uas_unlink_data_urbs function to cancel in-flight data urbs. Moves existing code into a separate function. Signed-off-by: Gerd Hoffmann --- drivers/usb/storage/uas.c | 32 ++-- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/drivers/usb/storage/

Re: [PATCH 1/1] xhci: Add Lynx Point LP to list of Intel switchable hosts

2012-11-29 Thread Sergei Shtylyov
Hello. On 28-11-2012 23:26, Sarah Sharp wrote: From: Russell Webb Like Lynx Point, Lynx Point LP is also switchable. See 1c12443ab8eba71a658fae4572147e56d1f84f66 for more details. Russell, specify the summary of that commit please. This patch should be backported to stable kernels a

Re: [PATCH 4/9] usb: chipidea: ci13xxx-imx: add "dr_mode" property to device tree bindings

2012-11-29 Thread Alexander Shishkin
Peter Chen writes: > On Fri, Nov 16, 2012 at 01:53:09PM +0200, Alexander Shishkin wrote: >> Michael Grzeschik writes: >> I'd prefer this function to live in ci13xxx_imx, since that's where it's >> used and it doesn't really need anything from core.c anyway. Or maybe it >> would make sense to mak

how to introduce uevent/Udev in the driver.

2012-11-29 Thread chetan cr123
Hi, I am working on Android 4.0, Kernel Version 3.0.8 I am working on USB mass storage driver. I Right now i am not able to get any uevents or Udev events in my driver when i plug or unplug the USB. Kindly guide me to get the uevents or introduce UDEV in my driver file so that i get the events eve

Re: [RFC] usb/gadget: slow start of the configfs interface

2012-11-29 Thread Sebastian Andrzej Siewior
On 11/29/2012 12:19 PM, Andrzej Pietrasiewicz wrote: Now: - the UDC (dummy_udc.[01]) is not within /usb_gadget/ folder where we have /gadgets/ and /functions/ subfolder. This is what spear13xx_pcie_gadget does as well. Is this okay or do we want to have them enumerated below /usb_gadget/

Re: [PATCH v2 21/22] ARM: OMAP2+: clock data: get rid of unused USB host clock aliases

2012-11-29 Thread Paul Walmsley
On Wed, 28 Nov 2012, Roger Quadros wrote: > We don't need multiple aliases for the OMAP USB host clocks so remove them. > Also use NULL dev_id for 'usb_tll_hs_usb_ch0_clk' and 'usb_tll_hs_usb_ch1_clk' > > Signed-off-by: Roger Quadros > CC: Paul Walmsley > --- > arch/arm/mach-omap2/clock3xxx_da

RE: [RFC] usb/gadget: slow start of the configfs interface

2012-11-29 Thread Andrzej Pietrasiewicz
On Wednesday, November 28, 2012 7:51 PM Sebastian Andrzej Siewior wrote: > Subject: [RFC] usb/gadget: slow start of the configfs interface > > |# modprobe dummy_hcd num=2 > > |# find /sys/kernel/config/ -ls > | 65470 drwxr-xr-x 5 root root0 Nov 28 19:39 > /sys/kernel/config

Re: [RFC] usb/gadget: slow start of the configfs interface

2012-11-29 Thread Sebastian Andrzej Siewior
On 11/28/2012 09:31 PM, Michal Nazarewicz wrote: On Wed, Nov 28 2012, Sebastian Andrzej Siewior wrote: |# modprobe dummy_hcd num=2 |# find /sys/kernel/config/ -ls | 65470 drwxr-xr-x 5 root root0 Nov 28 19:39 /sys/kernel/config/ | 5320 drwxr-xr-x 2 root root