]> git.baikalelectronics.ru Git - kernel.git/commit
net: ftgmac100: access hardware register after clock ready
authorDylan Hung <dylan_hung@aspeedtech.com>
Tue, 12 Apr 2022 11:48:59 +0000 (19:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2022 11:43:55 +0000 (12:43 +0100)
commit18abf394413b10ccb1137c886b326a846f464469
treed157369c18444feeb103b99d16bb752d75bb72d9
parentf30427528bcbe70759dbea921ad323d13d26a1f9
net: ftgmac100: access hardware register after clock ready

AST2600 MAC register 0x58 is writable only when the MAC clock is
enabled.  Usually, the MAC clock is enabled by the bootloader so
register 0x58 is set normally when the bootloader is involved.  To make
ast2600 ftgmac100 work without the bootloader, postpone the register
write until the clock is ready.

Fixes: c6646b96c82f ("net: ftgmac100: Fix Aspeed ast2600 TX hang issue")
Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c