aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@canonical.com>2012-05-04 17:15:10 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-07 15:32:23 -0400
commitdb63a4c8115a0bb904496e1cdd3e7488e68b0d06 (patch)
tree326448b28bf8de7c6205ed9e598070111e8a5020 /drivers/ata
parentd48b97b403d23f6df0b990cee652bdf9a52337a3 (diff)
libata: add a host flag to ignore detected ATA devices
Where devices are visible via more than one host we sometimes wish to indicate that cirtain devices should be ignored on a specific host. Add a host flag indicating that this host wishes to ignore ATA specific devices. Signed-off-by: Andy Whitcroft <apw@canonical.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 23763a1ec570..d31ee557b395 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1973,6 +1973,12 @@ retry:
1973 if (class == ATA_DEV_ATA) { 1973 if (class == ATA_DEV_ATA) {
1974 if (!ata_id_is_ata(id) && !ata_id_is_cfa(id)) 1974 if (!ata_id_is_ata(id) && !ata_id_is_cfa(id))
1975 goto err_out; 1975 goto err_out;
1976 if (ap->host->flags & ATA_HOST_IGNORE_ATA &&
1977 ata_id_is_ata(id)) {
1978 ata_dev_dbg(dev,
1979 "host indicates ignore ATA devices, ignored\n");
1980 return -ENOENT;
1981 }
1976 } else { 1982 } else {
1977 if (ata_id_is_ata(id)) 1983 if (ata_id_is_ata(id))
1978 goto err_out; 1984 goto err_out;