]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[libata] ahci: Add SATA GEN3 related messages
authorShane Huang <shane.huang@amd.com>
Tue, 30 Dec 2008 03:00:37 +0000 (11:00 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 8 Jan 2009 21:09:57 +0000 (16:09 -0500)
The present AHCI driver seems to support SATA GEN 3 speed, but the related
messages should be modified.

Signed-off-by: Shane Huang <shane.huang@amd.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ahci.c
drivers/ata/libata-core.c

index 656448c7fef9df9965091d0d41c75d5db5778086..6dc462105688f2e3736544bf2f379af95b363c8c 100644 (file)
@@ -2446,6 +2446,8 @@ static void ahci_print_info(struct ata_host *host)
                speed_s = "1.5";
        else if (speed == 2)
                speed_s = "3";
+       else if (speed == 3)
+               speed_s = "6";
        else
                speed_s = "?";
 
index f178a450ec08e6b56db21736fe9ed438ccf76aa3..9ae583554c8b79791b42e544caf14648adbfddaf 100644 (file)
@@ -1007,6 +1007,7 @@ static const char *sata_spd_string(unsigned int spd)
        static const char * const spd_str[] = {
                "1.5 Gbps",
                "3.0 Gbps",
+               "6.0 Gbps",
        };
 
        if (spd == 0 || (spd - 1) >= ARRAY_SIZE(spd_str))