Commit 8522ee25 authored by Shane Huang's avatar Shane Huang Committed by Jeff Garzik

[libata] ahci: Add SATA GEN3 related messages

The present AHCI driver seems to support SATA GEN 3 speed, but the related
messages should be modified.
Signed-off-by: default avatarShane Huang <shane.huang@amd.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 2852bcf7
...@@ -2446,6 +2446,8 @@ static void ahci_print_info(struct ata_host *host) ...@@ -2446,6 +2446,8 @@ static void ahci_print_info(struct ata_host *host)
speed_s = "1.5"; speed_s = "1.5";
else if (speed == 2) else if (speed == 2)
speed_s = "3"; speed_s = "3";
else if (speed == 3)
speed_s = "6";
else else
speed_s = "?"; speed_s = "?";
......
...@@ -1007,6 +1007,7 @@ static const char *sata_spd_string(unsigned int spd) ...@@ -1007,6 +1007,7 @@ static const char *sata_spd_string(unsigned int spd)
static const char * const spd_str[] = { static const char * const spd_str[] = {
"1.5 Gbps", "1.5 Gbps",
"3.0 Gbps", "3.0 Gbps",
"6.0 Gbps",
}; };
if (spd == 0 || (spd - 1) >= ARRAY_SIZE(spd_str)) if (spd == 0 || (spd - 1) >= ARRAY_SIZE(spd_str))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment