Re: [PATCH 2/5] scsi: sr: runtime pm when ODD is open/closed

2012-07-23 Thread Alan Stern
On Mon, 23 Jul 2012, Aaron Lu wrote: > The ODD can either be runtime resumed by the user or by a software > request. And for the latter part, we only support runtime resume the ODD > when the eject request is received. We did this in sr's block ioctl > function, this looks ugly. > > Change this b

[PATCH 2/5] scsi: sr: runtime pm when ODD is open/closed

2012-07-22 Thread Aaron Lu
The ODD can either be runtime resumed by the user or by a software request. And for the latter part, we only support runtime resume the ODD when the eject request is received. We did this in sr's block ioctl function, this looks ugly. Change this by runtime resuming the ODD in its open function an