Re: [RFC] IDE 80-core cable detect - chipset-specific code to over-ride eighty_ninty_three()

From: Willy Tarreau
Date: Mon Feb 09 2004 - 15:07:11 EST


Hi,

On Mon, Feb 09, 2004 at 02:50:31AM +0000, Athol Mullen wrote:

> This patch inserts the piix code into eighty_ninty_three() - obviously
> this is for testing purposes only. The patch was diff'd against 2.4.22,
> but patches okay to 2.6.1 with:
> Hunk #1 succeeded at 719 (offset -10 lines).

OK, I will try it ASAP on 2.4.25-rc1.

BTW, are you sure that the trick is needed for all the chipsets below,
or should it be necessary only for some of them ? perhaps word93 is already
OK for a few ones ?

> + switch(hwif->pci_dev->device) {
> + case PCI_DEVICE_ID_INTEL_82801BA_8:
> + case PCI_DEVICE_ID_INTEL_82801BA_9:
> + case PCI_DEVICE_ID_INTEL_82801CA_10:
> + case PCI_DEVICE_ID_INTEL_82801CA_11:
> + case PCI_DEVICE_ID_INTEL_82801E_11:
> + case PCI_DEVICE_ID_INTEL_82801DB_10:
> + case PCI_DEVICE_ID_INTEL_82801DB_11:
> + case PCI_DEVICE_ID_INTEL_82801EB_11:
> + case PCI_DEVICE_ID_INTEL_82801AA_1:
> + case PCI_DEVICE_ID_INTEL_82372FB_1:
> + {
> + pci_read_config_word(dev, 0x54, &reg54);
> + return ((reg54 & cr_flag) ? 1 : 0);
> + }
> + }

Regards,
Willy

-
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/