]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00275246-04: net: fec: fix phy reset operation
authorFugang Duan <B38611@freescale.com>
Wed, 14 Aug 2013 09:55:25 +0000 (17:55 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 15:08:16 +0000 (17:08 +0200)
commit62efe6d93662f889b87a0167e56f2252babbfa6a
tree65db5b671cf62d5ba0111aa558fc0b75a8591c93
parent60383167e6cb0a4c09eee372979cc4bf215b5394
ENGR00275246-04: net: fec: fix phy reset operation

Current driver only do phy reset in probe function, which is
not right. Since some phy clock is disabled after module probe,
the phy enter abnormal status, which needs do reset to recovery
the phy. And do ifconfig ethx up/down test, the phy also enter
abnormal status.

The log as:
libphy: 2188000.ethernet:04 - Link is Up - 10/Full
libphy: 2188000.ethernet:04 - Link is Up - 100/Full
libphy: 2188000.ethernet:04 - Link is Down
libphy: 2188000.ethernet:04 - Link is Up - 10/Half
libphy: 2188000.ethernet:04 - Link is Up - 10/Full
libphy: 2188000.ethernet:04 - Link is Up - 100/Full
...

So, do phy reset if ethx up/down or do clock enable/disable
operation.

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c