diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/rndis_host.c | 6 | ||||
-rw-r--r-- | drivers/net/usb/usbnet.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c index 1d6bf0a28cec..08139030954f 100644 --- a/drivers/net/usb/rndis_host.c +++ b/drivers/net/usb/rndis_host.c | |||
@@ -336,6 +336,12 @@ int generic_rndis_bind(struct usbnet *dev, struct usb_interface *intf) | |||
336 | dev->hard_mtu, tmp, dev->rx_urb_size, | 336 | dev->hard_mtu, tmp, dev->rx_urb_size, |
337 | 1 << le32_to_cpu(u.init_c->packet_alignment)); | 337 | 1 << le32_to_cpu(u.init_c->packet_alignment)); |
338 | 338 | ||
339 | /* module has some device initialization code needs to be done right | ||
340 | * after RNDIS_INIT */ | ||
341 | if (dev->driver_info->early_init && | ||
342 | dev->driver_info->early_init(dev) != 0) | ||
343 | goto halt_fail_and_release; | ||
344 | |||
339 | /* Get designated host ethernet address */ | 345 | /* Get designated host ethernet address */ |
340 | reply_len = ETH_ALEN; | 346 | reply_len = ETH_ALEN; |
341 | retval = rndis_query(dev, intf, u.buf, OID_802_3_PERMANENT_ADDRESS, | 347 | retval = rndis_query(dev, intf, u.buf, OID_802_3_PERMANENT_ADDRESS, |
diff --git a/drivers/net/usb/usbnet.h b/drivers/net/usb/usbnet.h index 0b4bf09fc8b1..25b63d3339dc 100644 --- a/drivers/net/usb/usbnet.h +++ b/drivers/net/usb/usbnet.h | |||
@@ -116,6 +116,11 @@ struct driver_info { | |||
116 | struct sk_buff *(*tx_fixup)(struct usbnet *dev, | 116 | struct sk_buff *(*tx_fixup)(struct usbnet *dev, |
117 | struct sk_buff *skb, gfp_t flags); | 117 | struct sk_buff *skb, gfp_t flags); |
118 | 118 | ||
119 | /* early initialization code, can sleep. This is for minidrivers | ||
120 | * having 'subminidrivers' that need to do extra initialization | ||
121 | * right after minidriver have initialized hardware. */ | ||
122 | int (*early_init)(struct usbnet *dev); | ||
123 | |||
119 | /* for new devices, use the descriptor-reading code instead */ | 124 | /* for new devices, use the descriptor-reading code instead */ |
120 | int in; /* rx endpoint */ | 125 | int in; /* rx endpoint */ |
121 | int out; /* tx endpoint */ | 126 | int out; /* tx endpoint */ |