Function fec_enet_clk_enable() was disabling this line leaving the PHY
authorJosep Orga <jorga@somdevices.com>
Thu, 2 May 2019 18:19:04 +0000 (20:19 +0200)
committerJosep Orga <jorga@somdevices.com>
Thu, 2 May 2019 18:19:04 +0000 (20:19 +0200)
commitb3c74a7d693c9a5e555d23b07a6d2b0cc4a62eb8
tree5b425a9b99a4ecb0654ee04ffebeecd67f3ba3c7
parent6507266728a7806d850ce22ec923d90cf4aa4318
Function fec_enet_clk_enable() was disabling this line leaving the PHY
without a running clock. This makes the PHY lose its internal state
requiring a reset of the PHY to be reactivated.

This patch enables the clk_enet_out once at probe() so that it remains
enabled during all MDIO accesses.

References: https://github.com/digi-embedded/linux/commit/fa3f9ab2d2650ba6b24f2ef62ddedbf971e56d07#diff-28c0935b4b5bf1738a0ee788d25a18ffR1952
https://patchwork.ozlabs.org/patch/549391/

Signed-off-by: Josep Orga <jorga@somdevices.com>
drivers/net/ethernet/freescale/fec_main.c