aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/ata/libata-core.c13
-rw-r--r--include/linux/ata.h7
-rw-r--r--include/linux/libata.h1
3 files changed, 18 insertions, 3 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 711595390996..62c4b328b0b6 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2354,6 +2354,18 @@ int ata_cable_unknown(struct ata_port *ap)
2354} 2354}
2355 2355
2356/** 2356/**
2357 * ata_cable_ignore - return ignored PATA cable.
2358 * @ap: port
2359 *
2360 * Helper method for drivers which don't use cable type to limit
2361 * transfer mode.
2362 */
2363int ata_cable_ignore(struct ata_port *ap)
2364{
2365 return ATA_CBL_PATA_IGN;
2366}
2367
2368/**
2357 * ata_cable_sata - return SATA cable type 2369 * ata_cable_sata - return SATA cable type
2358 * @ap: port 2370 * @ap: port
2359 * 2371 *
@@ -7665,4 +7677,5 @@ EXPORT_SYMBOL_GPL(ata_dev_try_classify);
7665EXPORT_SYMBOL_GPL(ata_cable_40wire); 7677EXPORT_SYMBOL_GPL(ata_cable_40wire);
7666EXPORT_SYMBOL_GPL(ata_cable_80wire); 7678EXPORT_SYMBOL_GPL(ata_cable_80wire);
7667EXPORT_SYMBOL_GPL(ata_cable_unknown); 7679EXPORT_SYMBOL_GPL(ata_cable_unknown);
7680EXPORT_SYMBOL_GPL(ata_cable_ignore);
7668EXPORT_SYMBOL_GPL(ata_cable_sata); 7681EXPORT_SYMBOL_GPL(ata_cable_sata);
diff --git a/include/linux/ata.h b/include/linux/ata.h
index 43fecf62773a..c17e9404c88d 100644
--- a/include/linux/ata.h
+++ b/include/linux/ata.h
@@ -286,9 +286,10 @@ enum {
286 ATA_CBL_NONE = 0, 286 ATA_CBL_NONE = 0,
287 ATA_CBL_PATA40 = 1, 287 ATA_CBL_PATA40 = 1,
288 ATA_CBL_PATA80 = 2, 288 ATA_CBL_PATA80 = 2,
289 ATA_CBL_PATA40_SHORT = 3, /* 40 wire cable to high UDMA spec */ 289 ATA_CBL_PATA40_SHORT = 3, /* 40 wire cable to high UDMA spec */
290 ATA_CBL_PATA_UNK = 4, 290 ATA_CBL_PATA_UNK = 4, /* don't know, maybe 80c? */
291 ATA_CBL_SATA = 5, 291 ATA_CBL_PATA_IGN = 5, /* don't know, ignore cable handling */
292 ATA_CBL_SATA = 6,
292 293
293 /* SATA Status and Control Registers */ 294 /* SATA Status and Control Registers */
294 SCR_STATUS = 0, 295 SCR_STATUS = 0,
diff --git a/include/linux/libata.h b/include/linux/libata.h
index d9eb20c67bb6..bdb7c6e13993 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -927,6 +927,7 @@ extern u8 ata_irq_on(struct ata_port *ap);
927extern int ata_cable_40wire(struct ata_port *ap); 927extern int ata_cable_40wire(struct ata_port *ap);
928extern int ata_cable_80wire(struct ata_port *ap); 928extern int ata_cable_80wire(struct ata_port *ap);
929extern int ata_cable_sata(struct ata_port *ap); 929extern int ata_cable_sata(struct ata_port *ap);
930extern int ata_cable_ignore(struct ata_port *ap);
930extern int ata_cable_unknown(struct ata_port *ap); 931extern int ata_cable_unknown(struct ata_port *ap);
931 932
932/* 933/*