]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.drivers/libata-6gbps-message
Revert "Disable build of xen kernel."
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / libata-6gbps-message
1 From: Shane Huang <shane.huang@amd.com>
2 Subject: [PATCH] Add SATA GEN3 related messages
3 References: bnc#522911
4
5 The present AHCI driver seems to support SATA GEN 3 speed, but the related
6 messages should be modified.
7
8 Signed-off-by: Shane Huang <shane.huang@amd.com>
9 Signed-off-by: Tejun Heo <teheo@suse.de>
10 ---
11 drivers/ata/ahci.c | 2 ++
12 drivers/ata/libata-core.c | 1 +
13 2 files changed, 3 insertions(+)
14
15 Index: linux-2.6.27-SLE11_BRANCH/drivers/ata/ahci.c
16 ===================================================================
17 --- linux-2.6.27-SLE11_BRANCH.orig/drivers/ata/ahci.c
18 +++ linux-2.6.27-SLE11_BRANCH/drivers/ata/ahci.c
19 @@ -2441,6 +2441,8 @@ static void ahci_print_info(struct ata_h
20 speed_s = "1.5";
21 else if (speed == 2)
22 speed_s = "3";
23 + else if (speed == 3)
24 + speed_s = "6";
25 else
26 speed_s = "?";
27
28 Index: linux-2.6.27-SLE11_BRANCH/drivers/ata/libata-core.c
29 ===================================================================
30 --- linux-2.6.27-SLE11_BRANCH.orig/drivers/ata/libata-core.c
31 +++ linux-2.6.27-SLE11_BRANCH/drivers/ata/libata-core.c
32 @@ -930,6 +930,7 @@ static const char *sata_spd_string(unsig
33 static const char * const spd_str[] = {
34 "1.5 Gbps",
35 "3.0 Gbps",
36 + "6.0 Gbps",
37 };
38
39 if (spd == 0 || (spd - 1) >= ARRAY_SIZE(spd_str))