u-boot/drivers/usb/eth
Stephen Warren c9abfbdd66 net: smsc95xx: fix DM MAC address reading
eth-uclass.c expects DM-capable Ethernet adapters to implement ops->
read_rom_hwaddr(), or for some other mechanism to set pdata->enetaddr, or
for the user to set environment variable $usbethaddr. Without any of
these, it will refuse to initialize the device since no valid MAC address
is known. Implement this function for the smsc95xx driver.

With this feature implemented, there is no point smsc95xx_init_common()
re-reading the MAC address from ROM, so ifdef out this code when DM_ETH
is enabled.

This allows (at least) the built-in Ethernet on the NVIDIA Harmony board
to operate again.

Fixes: 0990fcb772 ("net: smsc95xx: Add driver-model support")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2016-10-13 12:25:40 -05:00
..
asix.c net: asix: Fix ASIX 88772B with driver model 2016-09-27 23:30:14 +02:00
asix88179.c eth: asix88179: Add support for the driver model 2016-08-09 12:52:05 +02:00
Makefile usb: eth: add Realtek RTL8152B/RTL8153 DRIVER 2016-01-23 16:22:34 +01:00
mcs7830.c dm: net: usb: Convert mcs7830 driver to support driver model 2016-01-12 10:19:09 -07:00
r8152.c net: usb: r8152: Add DM support 2016-08-07 21:55:42 +02:00
r8152.h net: usb: r8152: Add DM support 2016-08-07 21:55:42 +02:00
r8152_fw.c net: usb: r8152: Add DM support 2016-08-07 21:55:42 +02:00
smsc95xx.c net: smsc95xx: fix DM MAC address reading 2016-10-13 12:25:40 -05:00
usb_ether.c usb: eth: fix memalign() parameter order 2016-02-24 19:12:33 +01:00