u-boot-brain/drivers/usb
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
..
common Merge branch 'master' of git://git.denx.de/u-boot-usb 2016-09-30 21:58:44 -04:00
dwc3 usb: dwc3: Makefile: Don't build gadget code if USB_GADGET is disabled 2016-05-27 15:39:49 -04:00
emul dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
eth net: smsc95xx: fix DM MAC address reading 2016-10-13 12:25:40 -05:00
gadget usb:gadget: Disallow DFU in SPL for now 2016-09-27 10:46:20 -04:00
host usb: pci: Fix cast for 64-bit compilation 2016-10-11 11:55:33 +08:00
musb Fix spelling of "occurred". 2016-05-02 18:37:09 -04:00
musb-new treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
phy treewide: replace #include <asm-generic/errno.h> with <linux/errno.h> 2016-09-23 22:25:27 -04:00
ulpi usb: ulpi: Fix compile warning in read/write on 64-bit machines. 2016-04-01 17:18:09 -04:00
Kconfig usb: gadget: Move CONFIG_USB_GADGET_DUALSPEED to Kconfig 2016-04-20 11:43:27 +02:00