diff options
author | Dylan Hung <dylan_hung@aspeedtech.com> | 2020-10-14 08:06:32 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-10-17 00:36:34 +0200 |
commit | 137d23cea1c044b2d4853ac71bc68126b25fdbb2 (patch) | |
tree | 42cbb47f753ede9c9c4fcb1e709372296f3f4eb9 /drivers/net/ethernet/faraday/ftgmac100.h | |
parent | tipc: fix incorrect setting window for bcast link (diff) | |
download | linux-137d23cea1c044b2d4853ac71bc68126b25fdbb2.tar.xz linux-137d23cea1c044b2d4853ac71bc68126b25fdbb2.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/faraday/ftgmac100.h')
-rw-r--r-- | drivers/net/ethernet/faraday/ftgmac100.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.h b/drivers/net/ethernet/faraday/ftgmac100.h index e5876a3fda91..63b3e02fab16 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.h +++ b/drivers/net/ethernet/faraday/ftgmac100.h @@ -170,6 +170,14 @@ #define FTGMAC100_MACCR_SW_RST (1 << 31) /* + * test mode control register + */ +#define FTGMAC100_TM_RQ_TX_VALID_DIS (1 << 28) +#define FTGMAC100_TM_RQ_RR_IDLE_PREV (1 << 27) +#define FTGMAC100_TM_DEFAULT \ + (FTGMAC100_TM_RQ_TX_VALID_DIS | FTGMAC100_TM_RQ_RR_IDLE_PREV) + +/* * PHY control register */ #define FTGMAC100_PHYCR_MDC_CYCTHR_MASK 0x3f |