[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dc(4) patch resend
the patch below fixes a kernel panic under -current with certain accton
nics. namely the nic in my laptop. without it, all kernels just panic
with with an unexpected page fault. anyway, i've been running this patch
for about a month now, and it seems ok.
CK
--
Chris Kuethe, GCIA: Secure Systems Specialist - U of A CNS
office: 157 General Services Bldg. 780.492.8135
chris.kuethe@[pyxis.cns.]ualberta.ca
Opinions expressed herein are solely the responsibility of
the author. And the author wouldn't have it any other way.
---------- Forwarded message ----------
Date: Wed, 3 Oct 2001 11:07:00 -0600 (MDT)
From: SysAdmin <root@desdemona.cns.ualberta.ca>
To: ckuethe@pyxis.cns.ualberta.ca
--- if_dc_pci.c.orig Sat Aug 25 04:13:29 2001
+++ if_dc_pci.c Sat Sep 29 15:26:11 2001
@@ -303,7 +303,6 @@
dc_eeprom_width(sc);
dc_read_srom(sc, sc->dc_romwidth);
break;
- case PCI_VENDOR_MACRONIX:
case PCI_VENDOR_ACCTON:
if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_ACCTON_EN2242) {
found = 1;
@@ -312,6 +311,10 @@
sc->dc_flags |= DC_TX_ADMTEK_WAR;
sc->dc_pmode = DC_PMODE_MII;
}
+ dc_eeprom_width(sc);
+ dc_read_srom(sc, sc->dc_romwidth);
+ break;
+ case PCI_VENDOR_MACRONIX:
if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_MACRONIX_MX98713) {
found = 1;
if (revision < DC_REVISION_98713A) {