]> git.karo-electronics.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)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:39 +0000 (09:54 +0800)
commitc7fcbedbfd702458bd2ba4a4b17a59a71f10106e
tree7e377f7bb400d91491194a33e9bb45b79dfa0be7
parent4a22a978582d8912ec9caefe61a68e50041f9cd1
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