linux/drivers/net/ethernet/freescale
Gavin Schenk b82d44d784 net: fec: set mac address unconditionally
If the mac address origin is not dt, you can only safely assign a mac
address after "link up" of the device. If the link is off the clocks are
disabled and because of issues assigning registers when clocks are off the
new mac address cannot be written in .ndo_set_mac_address() on some soc's.
This fix sets the mac address unconditionally in fec_restart(...) and
ensures consistency between fec registers and the network layer.

Signed-off-by: Gavin Schenk <g.schenk@eckelmann.de>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fixes: 9638d19e48 ("net: fec: add netif status check before set mac address")
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-03 01:27:41 -04:00
..
fman net: Remove NO_IRQ from powerpc-only network drivers 2016-09-13 11:40:51 -04:00
fs_enet net: Remove NO_IRQ from powerpc-only network drivers 2016-09-13 11:40:51 -04:00
fec_main.c net: fec: set mac address unconditionally 2016-10-03 01:27:41 -04:00
fec_mpc52xx_phy.c mdio: Move allocation of interrupts into core 2016-01-07 14:31:26 -05:00
fec_mpc52xx.c net: ethernet: fec-mpc52xx: use phy_ethtool_{get|set}_link_ksettings 2016-05-16 22:20:06 -04:00
fec_mpc52xx.h
fec_ptp.c
fec.h ARM: SoC platform updates for v4.8 2016-08-01 18:27:08 -04:00
fsl_pq_mdio.c net/fsl_pq_mdio: use IS_ENABLED() instead of checking for built-in or module 2016-09-12 20:27:58 -07:00
gianfar_ethtool.c net: ethernet: gianfar: use phy_ethtool_{get|set}_link_ksettings 2016-05-16 21:51:40 -04:00
gianfar_ptp.c gianfar_ptp: replace get_of_u32 with of_property_read_u32 2016-02-25 16:22:02 -05:00
gianfar.c gianfar: fix size of scatter-gathered frames 2016-08-23 16:49:00 -07:00
gianfar.h gianfar: prevent fragmentation in DSA environments 2016-08-23 16:48:59 -07:00
Kconfig
Makefile net: fec: make driver endian-safe 2016-01-25 10:51:52 -08:00
ucc_geth_ethtool.c net: ethernet: ucc: move to new ethtool api {get|set}_link_ksettings 2016-05-03 13:03:52 -04:00
ucc_geth.c net: ucc_geth: fix spelling mistake "propperty" -> "property" 2016-08-28 23:41:46 -04:00
ucc_geth.h
xgmac_mdio.c net/fsl: use of_property_read_bool 2016-08-08 16:15:00 -07:00