summaryrefslogtreecommitdiff
path: root/include/usb_ether.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-04-13 20:35:58 -0700
committerSimon Glass <sjg@chromium.org>2011-08-24 09:56:22 -0700
commit965d042da6fe36b26b85391ad852d05f3f9e50a0 (patch)
tree94307bda707af43a54dd2aada8155d503f85c2b5 /include/usb_ether.h
parent9530dc99ee3539909935e8a60a2bb756499c8318 (diff)
usbeth: asix: Do a fast init if link already established
The Asix driver takes the link down during init() and then brings it back up. This commit changes this so that if a link has already been established successfully we simply check that the link is still good. This reduces the delay between successive network commands. TEST=bootp; tftp ... - see that delay is now shorter than before. Change-Id: I044e6d12f6c175a87ee3c93bf874b497f9379c3e BUG=chromium-os:14082 TEST=run U-boot; usb start; bootp; bootp See that second bootp happens quickly and link stays up. Change-Id: I79fdf4f099041ed0a077e8a833d66076c1b28402 Reviewed-on: http://gerrit.chromium.org/gerrit/200 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'include/usb_ether.h')
-rw-r--r--include/usb_ether.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/usb_ether.h b/include/usb_ether.h
index 825c27518f9..3599dc6b3a0 100644
--- a/include/usb_ether.h
+++ b/include/usb_ether.h
@@ -37,8 +37,9 @@
struct ueth_data {
/* eth info */
- struct eth_device eth_dev; /* used with eth_register */
- int phy_id; /* mii phy id */
+ struct eth_device eth_dev; /* used with eth_register */
+ int phy_id; /* mii phy id */
+ int has_been_running; /* 1 if we have had a link up */
/* usb info */
struct usb_device *pusb_dev; /* this usb_device */