diff options
author | Dylan Hung <[email protected]> | 2021-11-25 10:44:32 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-11-25 07:44:42 -0800 |
commit | 9dbe33cf371bd70330858370bdbc35c7668f00c3 (patch) | |
tree | e47ef638c9b706e94f3badd262eca41cc131baf3 /lib/test_overflow.c | |
parent | eaeace60778e524a2820d0c0ad60bf80289e292c (diff) |
mdio: aspeed: Fix "Link is Down" issue
The issue happened randomly in runtime. The message "Link is Down" is
popped but soon it recovered to "Link is Up".
The "Link is Down" results from the incorrect read data for reading the
PHY register via MDIO bus. The correct sequence for reading the data
shall be:
1. fire the command
2. wait for command done (this step was missing)
3. wait for data idle
4. read data from data register
Cc: [email protected]
Fixes: f160e99462c6 ("net: phy: Add mdio-aspeed")
Reviewed-by: Joel Stanley <[email protected]>
Signed-off-by: Dylan Hung <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Russell King (Oracle) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions