Re: [linux-usb-devel] USB autosuspend and turning of usb pendrive leds

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Hans de Goede <j.w.r.degoede@...>
Cc: linux-kernel <linux-kernel@...>, USB development list <linux-usb-devel@...>
Date: Saturday, September 22, 2007 - 10:29 am

On Sat, 22 Sep 2007, Hans de Goede wrote:


I don't know what went wrong.  It works fine on my systems.  You did 
fill in the correct device path for the "...", right?  And you don't 
need the "-n" -- adding it shouldn't matter, but you should try reading 
back the contents of those files to make sure the values did get 
written correctly.


Yes, that is naive.  The driver has no way to tell whether or not any 
partitions are mounted.  Furthermore, you might very well want to 
access the raw device without mounting any partitions (database 
managers frequently do such things to reduce I/O overhead), in which 
case you certainly would not the device to be autosuspended.


You can be absolutely certain by using usbmon (see 
Documentation/usb/usbmon.txt).  It will also show whether any suspends 
or resumes are actually being sent.

Alan Stern

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB autosuspend and turning of usb pendrive leds, Hans de Goede, (Fri Sep 21, 9:28 am)
Re: USB autosuspend and turning of usb pendrive leds, Bill Davidsen, (Fri Sep 28, 4:48 pm)
Re: USB autosuspend and turning of usb pendrive leds, Jiri Kosina, (Fri Sep 21, 10:18 am)
Re: [linux-usb-devel] USB autosuspend and turning of usb pen..., Alan Stern, (Sat Sep 22, 10:29 am)
Re: USB autosuspend and turning of usb pendrive leds, Hans de Goede, (Fri Sep 21, 10:20 am)
Re: USB autosuspend and turning of usb pendrive leds, Jiri Kosina, (Fri Sep 21, 11:15 am)
Re: USB autosuspend and turning of usb pendrive leds, Oliver Neukum, (Mon Sep 24, 6:36 am)
Re: USB autosuspend and turning of usb pendrive leds, Hans de Goede, (Mon Sep 24, 7:38 am)
Re: USB autosuspend and turning of usb pendrive leds, Oliver Neukum, (Mon Sep 24, 9:25 am)