That's a very surprising statement. How do you justify it?
Certainly sr is much more of a device driver than something like the
gendisk layer, which manages logical disks and partitions. These
things don't have an independent physical existence, but they show up
in the device tree anyway.
It might not know in all cases, but it definitely does know in some
cases. We must not ignore that knowledge.
The example of suspending the USB transport to a cdrom device playing
music is an interesting one. We really don't know whether suspending
the link would suspend the device, i.e., whether it would allow the
music to continue playing or not. The behavior will vary from one
device to another, so we would have to be conservative and avoid
autosuspending the drive.
"Opened by user space" is too strong. It would include any device with
a mounted filesystem, I think. Also it doesn't handle the "cd drive
playing music" example; once the PLAY AUDIO command has been sent, the
device file can be closed and the music will continue autonomously.
Shouldn't go down the device tree, yes. (Runtime PM notifications do
go up the tree.) You are claiming that my earlier opinion was wrong;
I'm not so sure it was. Even if things could be done another way, my
approach is the most straightforward.
Yes, but what about non-default situations where sd_resume() isn't a
nop?
I disagree. While it's true that SCSI isn't cognizant of actual power
levels, Power Management includes several other attributes which _are_
relevant to SCSI, including special states, functionality, and latency.
To this extent it makes sense for the SCSI drivers to be involved in PM
decisions.
Alan Stern
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel