2.6.25-rc6: CONFIG_USB_PERSIST forced on

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pavel Machek
Date: Friday, June 6, 2008 - 2:25 am

Hi!

In 2.6.26-rc5, 

-config USB_PERSIST
-       bool "USB device persistence during system suspend (DANGEROUS)"

is now on. Given that it was previously marked "DANGEROUS", that seems
quite a change to me.

-
-               WARNING: This option can be dangerous!
-
-         If a USB device is replaced by another of the same type while
-         the system is asleep, there's a good chance the kernel won't
-         detect the change.  Likewise if the media in a USB storage
-         device is replaced.  When this happens it's almost certain to
-         cause data corruption and maybe even crash your system.
-
-         If you are unsure, say N here.

Besides, it seems to have broken usblp hibernation support, and maybe
other devices that does not have reset_resume() present. (Big thanks
for Oliver for doing investigation).

[Or is it that now USB_PERSIST is conditional on /sys fs setting, so
while setting it on individual device is dangerous, it is still N by
default? Changelog does not tell me...?]

Commit is:

USB: remove CONFIG_USB_PERSIST setting

This patch (as1047) removes the USB_PERSIST Kconfig option, enabling
it permanently.  It also prevents the power/persist attribute from
being created for hub devices; there's no point in having it since
USB-PERSIST is always turned on for hubs.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

								Pavel
---
commit feccc30d90155bcbc937f87643182a43d25873eb
tree 96394e24075a885f1a8bb3e53203f8397e78ea46
parent 5e6effaed6da94e727cd45f945ad2489af8570b3
author Alan Stern <stern@rowland.harvard.edu> Mon, 03 Mar 2008 15:15:59 -0500
committer Greg Kroah-Hartman <gregkh@suse.de> Thu, 24 Apr 2008 21:16:32 -0700



-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25-rc6: CONFIG_USB_PERSIST forced on, Pavel Machek, (Fri Jun 6, 2:25 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Alan Stern, (Fri Jun 6, 7:39 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Pavel Machek, (Sat Jun 7, 12:52 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Linus Torvalds, (Sat Jun 7, 3:26 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Pavel Machek, (Mon Jun 9, 1:00 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Alan Stern, (Mon Jun 9, 8:03 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Oliver Neukum, (Mon Jun 9, 8:12 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Linus Torvalds, (Mon Jun 9, 8:35 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Alan Stern, (Mon Jun 9, 8:44 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Greg KH, (Mon Jun 9, 12:50 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Oliver Neukum, (Mon Jun 9, 12:56 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Pavel Machek, (Mon Jun 9, 1:59 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Linus Torvalds, (Mon Jun 9, 2:39 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Oliver Neukum, (Mon Jun 9, 2:52 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Pavel Machek, (Mon Jun 9, 2:56 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Linus Torvalds, (Mon Jun 9, 3:19 pm)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Oliver Neukum, (Tue Jun 10, 1:55 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Alan Stern, (Tue Jun 10, 7:59 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Linus Torvalds, (Tue Jun 10, 8:50 am)
Re: 2.6.25-rc6: CONFIG_USB_PERSIST forced on, Linus Torvalds, (Tue Jun 10, 9:36 am)