Initialization fails in sys/arch/prep/pnpbus/if_we_pnpbus.c
Hisanobu Tomari <[email protected]> Wed, 6 Mar 2013 12:26:51 +0900
| Newsgroups | gmane.os.netbsd.ports.prep |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm using NetBSD/prep on IBM 7248-120. An IBM genuine ISA PNP Ethernet card fails to initialize with NetBSD 5* and 6*. This is because of an error in the driver. Just adding one line in the initialization code resolves this problem. The patch is attached. I'm glad if someone merges my patch to the repository, as I don't want to patch the source everytime I update the kernel. (without the attached patch) we2 at pnpbus0: port 0x300-0x31f, iomem 0xe8000-0xebfff, irq 11 we2: WD8013EBT Ethernet (16-bit) ??: Ethernet address 00:20:35:56:87:4f sysctl_createv: sysctl_create(??) returned 22 ??: could not attach sysctl nodes (with the patch) we2 at pnpbus0: port 0x300-0x31f, iomem 0xe8000-0xebfff, irq 11 we2: WD8013EBT Ethernet (16-bit) we2: Ethernet address 00:20:35:56:87:4f Best regards, Hisanobu Tomari
if_we_pnpbus.patch
(text/x-patch, 556 B)
Index: sys/arch/prep/pnpbus/if_we_pnpbus.c =================================================================== RCS file: /cvs/cvsroot/src/sys/arch/prep/pnpbus/if_we_pnpbus.c,v retrieving revision 1.8 diff -c -r1.8 if_we_pnpbus.c *** sys/arch/prep/pnpbus/if_we_pnpbus.c 1 Jul 2011 16:55:42 -0000 1.8 --- sys/arch/prep/pnpbus/if_we_pnpbus.c 6 Mar 2013 03:25:23 -0000 *************** *** 154,159 **** --- 154,160 ---- const char *typestr; int memfound = 0, i, irqnum; + sc->sc_dev = self; nict = asict = pna->pna_iot; memt = pna->pna_memt;