Skip to content
Commit 331c99ee authored by Dylan Hung's avatar Dylan Hung Committed by Greg Kroah-Hartman
Browse files

net: ftgmac100: access hardware register after clock ready

[ Upstream commit 3d250452 ]

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: 137d23ce

 ("net: ftgmac100: Fix Aspeed ast2600 TX hang issue")
Signed-off-by: default avatarDylan Hung <dylan_hung@aspeedtech.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8f79ce22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment