fsl/fman: Workaround for Errata A-007273
authorIgal Liberman <igal.liberman@freescale.com>
Mon, 21 Mar 2016 21:08:11 +0000 (23:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 19:58:05 +0000 (15:58 -0400)
commit6e9bdc7271ac8e2af58a2c9a87551d9bd49337a1
treee6de1e304c14b71f150b377f44383b0cac11cf0a
parentad0ea1989cc4d5905941d0a9e62c63ad6d859cef
fsl/fman: Workaround for Errata A-007273

Errata A-007273 (For FMan V3 devices only):
FMan soft reset is not finished properly if one
of the Ethernet MAC clocks is disabled

Workaround:
Re-enable all disabled MAC clocks through the DCFG_CCSR_DEVDISR2
register prior to issuing an FMAN soft reset.
Re-disable the MAC clocks after the FMAN soft reset is done.

Signed-off-by: Igal Liberman <igal.liberman@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman.c