]> 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)
commit30bb6dd627909b03aa53fb8d7f9fc823298585c8
treed157369c18444feeb103b99d16bb752d75bb72d9
parent18fed07678810bc72c69cf2e2613811f9b15b1fc
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: 6f6500ee9514 ("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