Skip to content

ZPODD patches

Aaron Lu linux-ide linux-scsi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 5 repliesIn review
  2. v37 patches 8 repliesSuperseded

Changes in v4 from the cover letter

Rebase on top of Linus' tree, due to this, the problem of a missing flag in v3 is gone;
Add a new function scsi_autopm_put_device_autosuspend to first mark last busy for the device and then put autosuspend it as suggested by Oliver Neukum.
Typo fix as pointed by Sergei Shtylyov.
Check can_power_off flag before any runtime pm operations in sr.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7scsi: sr: check support for device busy class eventsdrivers/scsi/sr.c drivers/scsi/sr.h include/linux/cdrom.h+67 -00 replies
2/7scsi: pm: add interface to autosuspend scsi devicedrivers/scsi/scsi_pm.c include/scsi/scsi_device.h+9 -00 replies
3/7scsi: sr: support zero power ODD(ZPODD)drivers/ata/libata-acpi.c drivers/scsi/sr.c drivers/scsi/sr.h +1 more+136 -20 replies
4/7scsi: sr: block events when runtime suspendedblock/genhd.c drivers/scsi/sr.c+6 -33 replies
5/7scsi: pm: use runtime resume callback if availabledrivers/scsi/scsi_pm.c+10 -50 replies
6/7scsi: sr: balance sr disk events block depthdrivers/scsi/sr.c+23 -00 replies
7/7block: genhd: add an interface to set disk's poll intervalblock/genhd.c drivers/scsi/sr.c include/linux/genhd.h+19 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/7] ZPODD patches

v4:
Rebase on top of Linus' tree, due to this, the problem of a missing flag in v3 is gone;
Add a new function scsi_autopm_put_device_autosuspend to first mark last busy for the device and then put autosuspend it as suggested by Oliver Neukum.
Typo fix as pointed by Sergei Shtylyov.
Check can_power_off flag before any runtime pm operations in sr.

v3:
Rebase on top of scsi-misc tree;
Add the sr related patches previously in Jeff's libata tree; Re-organize the sr patches.
A problem for now: for patch
scsi: sr: support zero power ODD(ZPODD)
I can't set a flag in libata-acpi.c since a related function is missing in scsi-misc tree. Will fix this when 3.6-rc1 released.

v2:
Bug fix for v1;
Use scsi_autopm_* in sr driver instead of pm_runtime_*;

v1:
Here are some patches to make ZPODD easier to use for end users and a fix for using ZPODD with system suspend.

Aaron Lu (7):
scsi: sr: check support for device busy class events
scsi: pm: add interface to autosuspend scsi device
scsi: sr: support zero power ODD(ZPODD)
scsi: sr: block events when runtime suspended
scsi: pm: use runtime resume callback if available
scsi: sr: balance sr disk events block depth
block: genhd: add an interface to set disk's poll interval

 block/genhd.c              |  25 +++++--
 drivers/ata/libata-acpi.c  |   4 +-
 drivers/scsi/scsi_pm.c     |  22 ++++--
 drivers/scsi/sr.c          | 179 ++++++++++++++++++++++++++++++++++++++++++++-
 drivers/scsi/sr.h          |   3 +
 include/linux/cdrom.h      |  43 +++++++++++
 include/linux/genhd.h      |   1 +
 include/scsi/scsi_device.h |   3 +
 8 files changed, 267 insertions(+), 13 deletions(-)
Signature · 1 line
1.7.11.3