]> git.hungrycats.org Git - linux/commit
[PATCH] Fix pcnet_cs network hotplug
authorRussell King <rmk+lkml@arm.linux.org.uk>
Tue, 14 Oct 2003 09:40:23 +0000 (05:40 -0400)
committerStephen Hemminger <shemminger@osdl.org>
Tue, 14 Oct 2003 09:40:23 +0000 (05:40 -0400)
commit019904d0dee2a4bf329f1778551dda0b3686a83a
treea21c77a60aba86b5ed8d241492a6785ae5cb34b4
parenta4e1e020d74c912095e3610077f5b83f2ed7e065
[PATCH] Fix pcnet_cs network hotplug

pcnet_cs registers the network device too early.  The effect of this
is that the networking hotplug scripts are unable to bring the device
up automatically.

There are two issues:
- we were registering the net device before we finished setting up
  the device (eg, reading the MAC address.)
- we were using DEV_CONFIG_PENDING to block the net device "open"
  callback, and as we know the other methods may be called prior
  to open.

My only concern with this patch is that we set info->node.dev_name
after we register the net device, so use of cardctl during the
hotplug scripts may give unexpected results.  However, I am not
aware of anyone using cardctl to read the device name in network
hotplug scripts.

Please review and merge.  Thanks.
drivers/net/pcmcia/pcnet_cs.c