lan78xx: Read MAC address from DT if present
authorPhil Elwell <phil@raspberrypi.org>
Thu, 19 Apr 2018 16:59:38 +0000 (17:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:42:59 +0000 (09:42 +0100)
commita4977f3e8a3a668878543828ceaf40d69b5bfc32
treef8a1a3d2f6a9cd03455e34da79407eb098fd9999
parent7bcfd8f985f2c7bf7be6a08333dfaf31ed58ccd4
lan78xx: Read MAC address from DT if present

commit 760db29bdc97b73ff60b091315ad787b1deb5cf5 upstream.

There is a standard mechanism for locating and using a MAC address from
the Device Tree. Use this facility in the lan78xx driver to support
applications without programmed EEPROM or OTP. At the same time,
regularise the handling of the different address sources.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Tested-by: Paolo Pisati <p.pisati@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/lan78xx.c