Re: [PATCH 0/2] two ide fixes for -rc4

From: -
Date: Sat Oct 10 2009 - 13:55:41 EST


This latest patch (modifying only the SIS 5513 driver) WORKS FOR ME. :-)
- D. Stussy.

--- On Tue, 10/6/09, Bartlomiej Zolnierkiewicz <bzolnier@xxxxxxxxx> wrote:
> ...
> --- a/drivers/ide/sis5513.c
> +++ b/drivers/ide/sis5513.c
> @@ -281,11 +281,13 @@ static void config_drive_art_rwp(ide_dri
>
>     pci_read_config_byte(dev, 0x4b, &reg4bh);
>
> +    rw_prefetch = reg4bh & ~(0x11 << drive->dn);
> +
>     if (drive->media == ide_disk)
> -        rw_prefetch = 0x11 << drive->dn;
> +        rw_prefetch |= 0x11 << drive->dn;
>
> -    if ((reg4bh & (0x11 << drive->dn)) != rw_prefetch)
> -        pci_write_config_byte(dev, 0x4b, reg4bh|rw_prefetch);
> +    if (reg4bh != rw_prefetch)
> +        pci_write_config_byte(dev, 0x4b, rw_prefetch);
> }
>
> static void sis_set_pio_mode(ide_drive_t *drive, const u8 pio)
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/