android_kernel_oneplus_msm8998/drivers/net/ethernet/freescale
Gavin Schenk bc5d8ced3c net: fec: set mac address unconditionally
[ Upstream commit b82d44d78480faff7456e9e0999acb9d38666057 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-15 07:46:37 +01:00
..
fs_enet 82xx: FCC: Fixing a bug causing to FCC port lock-up 2015-12-16 18:32:35 -05:00
fec.h net: fec: introduce fec_ptp_stop and use in probe fail path 2015-07-26 21:51:53 -07:00
fec_main.c net: fec: set mac address unconditionally 2016-11-15 07:46:37 +01:00
fec_mpc52xx.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00
fec_mpc52xx.h
fec_mpc52xx_phy.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00
fec_ptp.c net: fec: avoid timespec use 2015-10-05 03:16:39 -07:00
fsl_pq_mdio.c net: fsl: avoid 64-bit warning on pq_mdio 2015-12-08 22:51:56 -05:00
gianfar.c gianfar: Don't enable RX Filer if not supported 2015-12-16 18:31:00 -05:00
gianfar.h gianfar: Don't enable RX Filer if not supported 2015-12-16 18:31:00 -05:00
gianfar_ethtool.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-11-01 00:15:30 -04:00
gianfar_ptp.c net: fsl: Fix error checking for platform_get_irq() 2015-11-30 15:19:44 -05:00
Kconfig net: fsl: expands dependencies of NET_VENDOR_FREESCALE 2015-11-23 12:11:58 -05:00
Makefile
ucc_geth.c net: fix phy refcounting in a bunch of drivers 2015-09-24 23:04:53 -07:00
ucc_geth.h
ucc_geth_ethtool.c drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
xgmac_mdio.c net/fsl: constify of_device_id array 2015-03-17 15:00:21 -04:00