]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: asix: allow optionally getting mac address from device tree
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Tue, 3 Jul 2018 15:06:49 +0000 (17:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 13:09:23 +0000 (22:09 +0900)
commit8844ff96c0185c8baea5e0ca13eff4ef19d2eef5
tree759e8819919d2bd96cb33b1528e9ad7133d08443
parent9c5be5b7067b2eb9e1a64d95dcfc838a85d2af12
net: usb: asix: allow optionally getting mac address from device tree

For Embedded use where e.g. AX88772B chips may be used without external
EEPROMs the boot loader may choose to pass the MAC address to be used
via device tree. Therefore, allow for optionally getting the MAC
address from device tree data e.g. as follows (excerpt from a T30 based
board, local-mac-address to be filled in by boot loader):

/* EHCI instance 1: USB2_DP/N -> AX88772B */
usb@7d004000 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
asix@1 {
reg = <1>;
local-mac-address = [00 00 00 00 00 00];
};
};

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_devices.c