]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: fec: set dev->seq to priv->dev_id
authorPeng Fan <peng.fan@nxp.com>
Wed, 28 Mar 2018 12:54:13 +0000 (20:54 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 13 Apr 2018 20:47:38 +0000 (15:47 -0500)
commit8b203863560465f4dde981ecaa876e256e211017
tree68220bbcba388db706edf3a0ee28fd1c6b05d81b
parent1bcabd79215ece91ee8f79e768c4886efae182ba
net: fec: set dev->seq to priv->dev_id

To platforms has two enet interface, using dev->seq could
avoid conflict.

i.MX6UL/ULL evk board net get the wrong MAC address from fuse,
eth1 get MAC0 address, eth0 get MAC1 address from fuse. Set the
priv->dev_id to device->seq as the real net interface alias id then
.fec_get_hwaddr() read the related MAC address from fuse.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fec_mxc.c