]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.20.2/pata_amd-fix-an-obvious-bug-in-cable-detection.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 2.6.20.2 / pata_amd-fix-an-obvious-bug-in-cable-detection.patch
1 From stable-bounces@linux.kernel.org Mon Feb 5 00:02:58 2007
2 From: Tejun Heo <htejun@gmail.com>
3 Date: Mon, 5 Feb 2007 17:01:28 +0900
4 Subject: pata_amd: fix an obvious bug in cable detection
5 To: Jeff Garzik <jeff@garzik.org>, Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-ide@vger.kernel.org
6 Cc: stable@kernel.org
7 Message-ID: <20070205080128.GH1625@htj.dyndns.org>
8 Content-Disposition: inline
9
10
11 80c test mask is at bits 18 and 19 of EIDE Controller Configuration
12 not 22 and 23. Fix it.
13
14 Signed-off-by: Tejun Heo <htejun@gmail.com>
15 Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
16
17 ---
18 drivers/ata/pata_amd.c | 4 ++--
19 1 file changed, 2 insertions(+), 2 deletions(-)
20
21 --- linux-2.6.20.1.orig/drivers/ata/pata_amd.c
22 +++ linux-2.6.20.1/drivers/ata/pata_amd.c
23 @@ -128,7 +128,7 @@ static void timing_setup(struct ata_port
24
25 static int amd_pre_reset(struct ata_port *ap)
26 {
27 - static const u32 bitmask[2] = {0x03, 0xC0};
28 + static const u32 bitmask[2] = {0x03, 0x0C};
29 static const struct pci_bits amd_enable_bits[] = {
30 { 0x40, 1, 0x02, 0x02 },
31 { 0x40, 1, 0x01, 0x01 }
32 @@ -247,7 +247,7 @@ static void amd133_set_dmamode(struct at
33 */
34
35 static int nv_pre_reset(struct ata_port *ap) {
36 - static const u8 bitmask[2] = {0x03, 0xC0};
37 + static const u8 bitmask[2] = {0x03, 0x0C};
38 static const struct pci_bits nv_enable_bits[] = {
39 { 0x50, 1, 0x02, 0x02 },
40 { 0x50, 1, 0x01, 0x01 }