mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
usbnet: introduce usbnet_link_change API
This patch introduces the API of usbnet_link_change, so that usbnet can handle link change centrally, which may help to implement killing traffic URBs for saving USB bus bandwidth and host controller power. Signed-off-by: Ming Lei <ming.lei@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
763eff57de
commit
ac64995da8
2 changed files with 14 additions and 0 deletions
|
@ -245,5 +245,6 @@ extern void usbnet_get_drvinfo(struct net_device *, struct ethtool_drvinfo *);
|
|||
extern int usbnet_nway_reset(struct net_device *net);
|
||||
|
||||
extern int usbnet_manage_power(struct usbnet *, int);
|
||||
extern void usbnet_link_change(struct usbnet *, bool, bool);
|
||||
|
||||
#endif /* __LINUX_USB_USBNET_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue