Commit 0c824b51 authored by Tony Battersby's avatar Tony Battersby Committed by Bartlomiej Zolnierkiewicz

ide: fix serverworks.c UDMA regression

The patch described by the following excerpt from ChangeLog-2.6.22 makes
it impossible to use UDMA on a Tyan S2707 motherboard (SvrWks CSB5):

commit 2d5eaa6d
Author: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Date:   Thu May 10 00:01:08 2007 +0200

    ide: rework the code for selecting the best DMA transfer mode (v3)

    ...

This one-line patch against 2.6.23 fixes the problem.
Signed-off-by: default avatarTony Battersby <tonyb@cybernetics.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 821f3eff
...@@ -97,6 +97,7 @@ static u8 svwks_udma_filter(ide_drive_t *drive) ...@@ -97,6 +97,7 @@ static u8 svwks_udma_filter(ide_drive_t *drive)
mode = 2; mode = 2;
switch(mode) { switch(mode) {
case 3: mask = 0x3f; break;
case 2: mask = 0x1f; break; case 2: mask = 0x1f; break;
case 1: mask = 0x07; break; case 1: mask = 0x07; break;
default: mask = 0x00; break; default: mask = 0x00; break;
......
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