diff options
author | Jens Axboe <axboe@suse.de> | 2006-01-06 03:28:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:36:09 -0500 |
commit | 9b847548663ef1039dd49f0eb4463d001e596bc3 (patch) | |
tree | 105a0eece522b1347bea57f609f6c04ed673fdb3 /include/scsi | |
parent | 88202a0c84e1951d6630d1d557d4801a8cc5b5ef (diff) |
[PATCH] Suspend support for libata
This patch adds suspend patch to libata, and ata_piix in particular. For
most low level drivers, they should just need to add the 4 hooks to
work. As I can only test ata_piix, I didn't enable it for more
though.
Suspend support is the single most important feature on a notebook, and
most new notebooks have sata drives. It's quite embarrassing that we
_still_ do not support this. Right now, it's perfectly possible to
suspend the drive in mid-transfer.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_host.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 6cbb1982ed0..6297885a35e 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -296,6 +296,12 @@ struct scsi_host_template { | |||
296 | int (*proc_info)(struct Scsi_Host *, char *, char **, off_t, int, int); | 296 | int (*proc_info)(struct Scsi_Host *, char *, char **, off_t, int, int); |
297 | 297 | ||
298 | /* | 298 | /* |
299 | * suspend support | ||
300 | */ | ||
301 | int (*resume)(struct scsi_device *); | ||
302 | int (*suspend)(struct scsi_device *); | ||
303 | |||
304 | /* | ||
299 | * Name of proc directory | 305 | * Name of proc directory |
300 | */ | 306 | */ |
301 | char *proc_name; | 307 | char *proc_name; |