diff options
Diffstat (limited to 'drivers/scsi/ata_piix.c')
-rw-r--r-- | drivers/scsi/ata_piix.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/scsi/ata_piix.c b/drivers/scsi/ata_piix.c index deec0cef88d9..5f8688529041 100644 --- a/drivers/scsi/ata_piix.c +++ b/drivers/scsi/ata_piix.c | |||
@@ -68,8 +68,8 @@ enum { | |||
68 | PIIX_COMB_PATA_P0 = (1 << 1), | 68 | PIIX_COMB_PATA_P0 = (1 << 1), |
69 | PIIX_COMB = (1 << 2), /* combined mode enabled? */ | 69 | PIIX_COMB = (1 << 2), /* combined mode enabled? */ |
70 | 70 | ||
71 | PIIX_PORT_PRESENT = (1 << 0), | 71 | PIIX_PORT_ENABLED = (1 << 0), |
72 | PIIX_PORT_ENABLED = (1 << 4), | 72 | PIIX_PORT_PRESENT = (1 << 4), |
73 | 73 | ||
74 | PIIX_80C_PRI = (1 << 5) | (1 << 4), | 74 | PIIX_80C_PRI = (1 << 5) | (1 << 4), |
75 | PIIX_80C_SEC = (1 << 7) | (1 << 6), | 75 | PIIX_80C_SEC = (1 << 7) | (1 << 6), |
@@ -377,7 +377,9 @@ static void piix_pata_phy_reset(struct ata_port *ap) | |||
377 | * None (inherited from caller). | 377 | * None (inherited from caller). |
378 | * | 378 | * |
379 | * RETURNS: | 379 | * RETURNS: |
380 | * Non-zero if device detected, zero otherwise. | 380 | * Non-zero if port is enabled, it may or may not have a device |
381 | * attached in that case (PRESENT bit would only be set if BIOS probe | ||
382 | * was done). Zero is returned if port is disabled. | ||
381 | */ | 383 | */ |
382 | static int piix_sata_probe (struct ata_port *ap) | 384 | static int piix_sata_probe (struct ata_port *ap) |
383 | { | 385 | { |
@@ -401,7 +403,7 @@ static int piix_sata_probe (struct ata_port *ap) | |||
401 | */ | 403 | */ |
402 | 404 | ||
403 | for (i = 0; i < 4; i++) { | 405 | for (i = 0; i < 4; i++) { |
404 | mask = (PIIX_PORT_PRESENT << i) | (PIIX_PORT_ENABLED << i); | 406 | mask = (PIIX_PORT_ENABLED << i); |
405 | 407 | ||
406 | if ((orig_mask & mask) == mask) | 408 | if ((orig_mask & mask) == mask) |
407 | if (combined || (i == ap->hard_port_no)) | 409 | if (combined || (i == ap->hard_port_no)) |