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

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: [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 rog...@ti.com CC: Paul Walmsley p...@pwsan.com ---

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

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

2012-11-29 Thread Alexander Shishkin
Peter Chen peter.c...@freescale.com writes: On Fri, Nov 16, 2012 at 01:53:09PM +0200, Alexander Shishkin wrote: Michael Grzeschik m.grzesc...@pengutronix.de 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

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 russell.w...@linux.intel.com 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

[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 kra...@redhat.com --- drivers/usb/storage/uas.c | 32 ++-- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git

[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 kra...@redhat.com --- drivers/usb/storage/uas.c | 16

[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

[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 kra...@redhat.com --- drivers/usb/storage/uas.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/storage/uas.c

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 kra...@redhat.com --- drivers/usb/storage/uas.c | 32 ++-- 1

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 v3 3/7] usb: chipidea: add otg id switch and vbus connect/disconnect detect

2012-11-29 Thread Alexander Shishkin
Peter Chen peter.c...@freescale.com 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);

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 @@ static int

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 gre...@linuxfoundation.org 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 ming@canonical.com wrote:

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 Right

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_unlock_irqrestore(devinfo-lock,

[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

[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

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', for

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 st...@rowland.harvard.edu 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

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: send

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

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

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: [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. In

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 the USB

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 stop it

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-

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

2012-11-29 Thread Supriya Karanth
From: supriya karanth supriya.kara...@stericsson.com 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: [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 need this?

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 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 prohibit usb