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
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
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
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
| |
| _
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-
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
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
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
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;
+
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
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
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
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
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
|# 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
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
+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
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
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,
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
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
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 +
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
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
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 -
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
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
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
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
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 +++
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
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
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
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/
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
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
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
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/
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
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
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
41 matches
Mail list logo