diff options
author | Aaron Lu <aaron.lu@intel.com> | 2013-01-15 10:20:58 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2013-01-21 21:40:35 +0100 |
commit | afe759511808cd5bb508b598007cf0c7b0ca8e08 (patch) | |
tree | 26073c5a74b5fe2183aa457da6d9b5cc3d9912bb /drivers/ata/Makefile | |
parent | libata: export host controller number thru /sys (diff) | |
download | linux-afe759511808cd5bb508b598007cf0c7b0ca8e08.tar.xz linux-afe759511808cd5bb508b598007cf0c7b0ca8e08.zip |
libata: identify and init ZPODD devices
The ODD can be enabled for ZPODD if the following three conditions are
satisfied:
1 The ODD supports device attention;
2 The platform can runtime power off the ODD through ACPI;
3 The ODD is either slot type or drawer type.
For such ODDs, zpodd_init is called and a new structure is allocated for
it to store ZPODD related stuffs.
And the zpodd_dev_enabled function is used to test if ZPODD is currently
enabled for this ODD.
A new config CONFIG_SATA_ZPODD is added to selectively build ZPODD code.
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/Makefile')
-rw-r--r-- | drivers/ata/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile index 9329dafba91b..85e3de463ed1 100644 --- a/drivers/ata/Makefile +++ b/drivers/ata/Makefile @@ -107,3 +107,4 @@ libata-y := libata-core.o libata-scsi.o libata-eh.o libata-transport.o libata-$(CONFIG_ATA_SFF) += libata-sff.o libata-$(CONFIG_SATA_PMP) += libata-pmp.o libata-$(CONFIG_ATA_ACPI) += libata-acpi.o +libata-$(CONFIG_SATA_ZPODD) += libata-zpodd.o |