# \[PATCH\] multiple eth0 mixed PCI/ISA init

- List: netdev
- 2 messages, 2 authors
- Page: https://ratatoskr.run/netdev/2004/01/10738607/t

## \[PATCH\] multiple eth0 mixed PCI/ISA init

- From: Stephen Hemminger \<hidden\>
- Date: 2004-01-05 19:10:59 
- Message: https://ratatoskr.run/netdev/2004/01/10738607.md

```text
This patch for 2.6 fixes the problem found by Zoltan Farkas 
with mixed PCI/ISA and a non-modular config.  The problem is the old_netdev
ISA probing isn't skipping "eth0" which already got assigned by the PCI
initialization.


diff -Nru a/drivers/net/Space.c b/drivers/net/Space.c
--- a/drivers/net/Space.c	Fri Dec 19 15:10:50 2003
+++ b/drivers/net/Space.c	Fri Dec 19 15:10:50 2003
@@ -350,7 +350,7 @@
 	 * Backwards compatibility - historically an I/O base of 1 was 
 	 * used to indicate not to probe for this ethN interface 
 	 */
-	if (dev->base_addr == 1) {
+	if (__dev_get_by_name(dev->name) || dev->base_addr == 1) {
 		free_netdev(dev);
 		return -ENXIO;
 	}
```

## Re: \[PATCH\] multiple eth0 mixed PCI/ISA init

- From: David S. Miller \<hidden\>
- Date: 2004-01-05 20:56:59 
- Message: https://ratatoskr.run/netdev/2004/01/10738610.md

```text
On Mon, 5 Jan 2004 11:10:59 -0800
Stephen Hemminger [ref] wrote:

> This patch for 2.6 fixes the problem found by Zoltan Farkas 
> with mixed PCI/ISA and a non-modular config.  The problem is the old_netdev
> ISA probing isn't skipping "eth0" which already got assigned by the PCI
> initialization.

Applied, thanks Stephen.
```
