Hi Peter,
On Tue, Jan 06, 2009 at 09:04:58AM +0100, Peter Korsgaard wrote:
I confirmed based on both code review and tests.
The logic goes like this in usbnet.c:
80 // randomly generated ethernet address
81 static u8 node_id [ETH_ALEN];
...
1118 int
1119 usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
1120 {
...
1168 dev->net = net;
1169 strcpy (net->name, "usb%d");
1170 memcpy (net->dev_addr, node_id, sizeof node_id);
...
1192 // allow device-specific bind/init procedures
1193 // NOTE net->name still not usable ...
1194 if (info->bind) {
1195 status = info->bind (dev, udev);
I'll do that in another patch. Since I'd like to add one more similar
warning to dm9601_set_mac_address(). That warning helped me identify
this bug.
Thanks,
Fengguang
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html