Skip to content

Commit

Permalink
[libata] ahci: Add SATA GEN3 related messages
Browse files Browse the repository at this point in the history
The present AHCI driver seems to support SATA GEN 3 speed, but the related
messages should be modified.

Signed-off-by: Shane Huang <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
  • Loading branch information
Shane Huang authored and Jeff Garzik committed Jan 8, 2009
1 parent 2852bcf commit 8522ee2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/ata/ahci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "?";

Expand Down
1 change: 1 addition & 0 deletions drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8522ee2

Please sign in to comment.