diff options
author | Tejun Heo <htejun@gmail.com> | 2007-03-21 00:13:59 +0900 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-03-20 12:06:20 -0500 |
commit | c3c94c5a2fb43a654e777f509d5032b0db8ed09f (patch) | |
tree | cbc9b0adfa0a83fc5859344d6f9911d3010a29ac /include/scsi/sd.h | |
parent | 3721050afc6cb6ddf6de0f782e2054ebcc225e9b (diff) | |
download | op-kernel-dev-c3c94c5a2fb43a654e777f509d5032b0db8ed09f.zip op-kernel-dev-c3c94c5a2fb43a654e777f509d5032b0db8ed09f.tar.gz |
[SCSI] sd: implement START/STOP management
Implement SBC START/STOP management. sdev->mange_start_stop is added.
When it's set to one, sd STOPs the device on suspend and shutdown and
STARTs it on resume. sdev->manage_start_stop defaults is in sdev
instead of scsi_disk cdev to allow ->slave_config() override the
default configuration but is exported under scsi_disk sysfs node as
sdev->allow_restart is.
When manage_start_stop is zero (the default value), this patch doesn't
introduce any behavior change.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Rejections fixed and
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/sd.h')
-rw-r--r-- | include/scsi/sd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/sd.h b/include/scsi/sd.h index 82e6a84..5261488 100644 --- a/include/scsi/sd.h +++ b/include/scsi/sd.h @@ -52,6 +52,8 @@ static void sd_rw_intr(struct scsi_cmnd * SCpnt); static int sd_probe(struct device *); static int sd_remove(struct device *); static void sd_shutdown(struct device *dev); +static int sd_suspend(struct device *dev, pm_message_t state); +static int sd_resume(struct device *dev); static void sd_rescan(struct device *); static int sd_init_command(struct scsi_cmnd *); static int sd_issue_flush(struct device *, sector_t *); |