diff options
author | Michael Brown <mcb30@ipxe.org> | 2020-07-03 20:17:25 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2020-07-03 20:23:39 +0100 |
commit | f727ed8a112355c964b25a472e6da361864ee574 (patch) | |
tree | f4681138f6abf1c799e8d4ec482c18ad9872f11e /src/drivers/net/axge.h | |
parent | 0f5d23433514de62eca1fadceb8c31df5c569431 (diff) | |
download | ipxe-f727ed8a112355c964b25a472e6da361864ee574.tar.gz |
[axge] Reapply USB device configuration when opening network device
When connected to a USB3 port, the AX88179 seems to have an
approximately 50% chance of producing a USB transaction error on each
of its three endpoints after being closed and reopened. The root
cause is unclear, but rewriting the USB device configuration value
seems to clear whatever internal error state has accumulated.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/axge.h')
-rw-r--r-- | src/drivers/net/axge.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/net/axge.h b/src/drivers/net/axge.h index 6183b4e70..e22e0ec47 100644 --- a/src/drivers/net/axge.h +++ b/src/drivers/net/axge.h @@ -145,6 +145,8 @@ struct axge_device { struct net_device *netdev; /** USB network device */ struct usbnet_device usbnet; + /** Device configuration */ + unsigned int config; /** Link state has changed */ int check_link; }; |