]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.drivers/libata-pata_hpt366-fix-clock-detection
Merge branch 'master' of git://git.ipfire.org/ipfire-2.x
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.drivers / libata-pata_hpt366-fix-clock-detection
1 From: Tejun Heo <tj@kernel.org>
2 Subject: pata_hpt366: fix clock detection
3 References: bnc#362159
4
5 pata_hpt366 had its clock detection wrong and detected 25Mhz as 40Mhz
6 and vice-versa. Fix it.
7
8 Signed-off-by: Tejun Heo <tj@kernel.org>
9 Signed-off-by: Tejun Heo <teheo@suse.de>
10 ---
11 drivers/ata/pata_hpt366.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14 Index: work/drivers/ata/pata_hpt366.c
15 ===================================================================
16 --- work.orig/drivers/ata/pata_hpt366.c
17 +++ work/drivers/ata/pata_hpt366.c
18 @@ -382,10 +382,10 @@ static int hpt36x_init_one(struct pci_de
19 /* PCI clocking determines the ATA timing values to use */
20 /* info_hpt366 is safe against re-entry so we can scribble on it */
21 switch((reg1 & 0x700) >> 8) {
22 - case 5:
23 + case 9:
24 hpriv = &hpt366_40;
25 break;
26 - case 9:
27 + case 5:
28 hpriv = &hpt366_25;
29 break;
30 default:
31