]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f6500ee9514dc663bf8a6b86f38204c5d658d91
tree42cbb47f753ede9c9c4fcb1e709372296f3f4eb9
parent170ad8f26c2043c1fcbe721fb8f7a9cc30760cf4
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: bb58dabda9b0 ("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