Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e708eb9bc0515f36d77477877e74b6b9056b5879
Commit:     e708eb9bc0515f36d77477877e74b6b9056b5879
Parent:     e1ddb4b6a2c9b2c72991eb8640ef2f50691ac502
Author:     Alan Cox <[EMAIL PROTECTED]>
AuthorDate: Thu Jul 26 18:37:28 2007 +0100
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:55:34 2007 -0400

    libata pata_amd: ACPI checks for 80wire cable
    
    We can make use of this on the pata_amd driver as many Nvidia devices
    don't have reliable cable detect.
    
    Signed-off-by: Alan Cox <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/ata/pata_amd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c
index 46f829c..c95922f 100644
--- a/drivers/ata/pata_amd.c
+++ b/drivers/ata/pata_amd.c
@@ -270,6 +270,9 @@ static int nv_cable_detect(struct ata_port *ap)
        pci_read_config_word(pdev, 0x62 - 2 * ap->port_no, &udma);
        if ((udma & 0xC4) == 0xC4 || (udma & 0xC400) == 0xC400)
                cbl = ATA_CBL_PATA80;
+       /* And a triple check across suspend/resume with ACPI around */
+       if (ata_acpi_cbl_80wire(ap))
+               cbl = ATA_CBL_PATA80;
        return cbl;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to