diff options
-rw-r--r-- | drivers/ata/libata-core.c | 13 | ||||
-rw-r--r-- | include/linux/ata.h | 7 | ||||
-rw-r--r-- | include/linux/libata.h | 1 |
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 | */ | ||
2363 | int 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); | |||
7665 | EXPORT_SYMBOL_GPL(ata_cable_40wire); | 7677 | EXPORT_SYMBOL_GPL(ata_cable_40wire); |
7666 | EXPORT_SYMBOL_GPL(ata_cable_80wire); | 7678 | EXPORT_SYMBOL_GPL(ata_cable_80wire); |
7667 | EXPORT_SYMBOL_GPL(ata_cable_unknown); | 7679 | EXPORT_SYMBOL_GPL(ata_cable_unknown); |
7680 | EXPORT_SYMBOL_GPL(ata_cable_ignore); | ||
7668 | EXPORT_SYMBOL_GPL(ata_cable_sata); | 7681 | EXPORT_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); | |||
927 | extern int ata_cable_40wire(struct ata_port *ap); | 927 | extern int ata_cable_40wire(struct ata_port *ap); |
928 | extern int ata_cable_80wire(struct ata_port *ap); | 928 | extern int ata_cable_80wire(struct ata_port *ap); |
929 | extern int ata_cable_sata(struct ata_port *ap); | 929 | extern int ata_cable_sata(struct ata_port *ap); |
930 | extern int ata_cable_ignore(struct ata_port *ap); | ||
930 | extern int ata_cable_unknown(struct ata_port *ap); | 931 | extern int ata_cable_unknown(struct ata_port *ap); |
931 | 932 | ||
932 | /* | 933 | /* |