From 2263e27814f1db83745a9e65c373c957307c36a0 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 9 Aug 2012 15:49:51 +0800 Subject: net: introduce phylib Adapt phylib from linux switch all the driver to it reimplement mii bus This will allow to have - phy drivers - to only connect the phy at then opening of the device - if the phy is not ready or not up fail on open Same behaviour as in linux and will allow to share code and simplify porting. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/usb/usbnet.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/usb/usbnet.h') diff --git a/include/usb/usbnet.h b/include/usb/usbnet.h index 1609b2eb26..cb8ff038b2 100644 --- a/include/usb/usbnet.h +++ b/include/usb/usbnet.h @@ -23,7 +23,7 @@ #define __LINUX_USB_USBNET_H #include -#include +#include /* interface from usbnet core to each USB networking link we handle */ struct usbnet { @@ -40,7 +40,8 @@ struct usbnet { /* protocol/interface state */ struct eth_device edev; - struct mii_device miidev; + struct mii_bus miibus; + int phy_addr; int msg_enable; unsigned long data [5]; -- cgit v1.2.3