net: ftgmac100: Fix Aspeed ast2600 TX hang issue
authorDylan Hung <dylan_hung@aspeedtech.com>
Wed, 14 Oct 2020 06:06:32 +0000 (14:06 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Oct 2020 22:36:34 +0000 (15:36 -0700)
commit137d23cea1c044b2d4853ac71bc68126b25fdbb2
tree42cbb47f753ede9c9c4fcb1e709372296f3f4eb9
parentec78e31852c9bb7d96b6557468fecb6f6f3b28f3
net: ftgmac100: Fix Aspeed ast2600 TX hang issue

The new HW arbitration feature on Aspeed ast2600 will cause MAC TX to
hang when handling scatter-gather DMA.  Disable the problematic feature
by setting MAC register 0x58 bit28 and bit27.

Fixes: 39bfab8844a0 ("net: ftgmac100: Add support for DT phy-handle property")
Signed-off-by: Dylan Hung <dylan_hung@aspeedtech.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/faraday/ftgmac100.c
drivers/net/ethernet/faraday/ftgmac100.h