* [KJ] Re: [Kernel-janitors] [PATCH 6/6] janitor: net/tulip:
@ 2004-10-20 23:11 maximilian attems
0 siblings, 0 replies; only message in thread
From: maximilian attems @ 2004-10-20 23:11 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 2128 bytes --]
On Sat, 02 Oct 2004, Scott Feldman wrote:
> Replace pci_find_device with pci_dev_present. Compile tested.
>
> Signed-off-by: Scott Feldman <sfeldma@pobox.com>
>
> --- linux-2.6.9-rc3/drivers/net/tulip/tulip_core.c 2004-08-14 03:55:34.000000000 -0700
> +++ linux-2.6.9-rc3-dsf/drivers/net/tulip/tulip_core.c 2004-10-02 22:01:22.000000000 -0700
> @@ -1236,6 +1236,11 @@ static int __devinit tulip_init_one (str
> struct tulip_private *tp;
> /* See note below on the multiport cards. */
> static unsigned char last_phys_addr[6] = {0x00, 'L', 'i', 'n', 'u', 'x'};
> + static struct pci_device_id early_486_chipsets[] = {
> + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82424) },
> + { PCI_DEVICE(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_496) },
> + { },
> + };
> static int last_irq;
> static int multiport_cnt; /* For four-port boards w/one EEPROM */
> u8 chip_rev;
> @@ -1289,17 +1294,15 @@ static int __devinit tulip_init_one (str
> * without the workarounds being on.
> */
>
> - /* Intel Saturn. Switch to 8 long words burst, 8 long word cache aligned
> - Aries might need this too. The Saturn errata are not pretty reading but
> - thankfully it's an old 486 chipset.
> + /* 1. Intel Saturn. Switch to 8 long words burst, 8 long word cache
> + aligned. Aries might need this too. The Saturn errata are not
^
> + pretty reading but thankfully it's an old 486 chipset.
> +
> + 2. The dreaded SiS496 486 chipset. Same workaround as Intel
> + Saturn.
> */
>
> - if (pci_find_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82424, NULL)) {
> - csr0 = MRL | MRM | (8 << BurstLenShift) | (1 << CALShift);
> - force_csr0 = 1;
> - }
> - /* The dreaded SiS496 486 chipset. Same workaround as above. */
> - if (pci_find_device(PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_496, NULL)) {
> + if (pci_dev_present(early_486_chipsets)) {
> csr0 = MRL | MRM | (8 << BurstLenShift) | (1 << CALShift);
> force_csr0 = 1;
> }
>
white space junk.
--
maks
kernel janitor http://janitor.kernelnewbies.org/
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-20 23:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-20 23:11 [KJ] Re: [Kernel-janitors] [PATCH 6/6] janitor: net/tulip: maximilian attems
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.