ag71xx_check_dma_stuck was introduced in r27975 and reads:
AG71XX_REG_FIFO_DEPTH
AG71XX_REG_RX_SM
AG71XX_REG_TX_SM

This patch add those registers in the whitelist of ag71xx_check_reg_offset.

Those registers can be used by ag71xx_check_dma_stuck under heavy traffic load.


Signed-off-by: Frédéric Moulins <[email protected]>

diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h 
b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index 0222cab..14387b2 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@ -356,6 +356,9 @@ static inline void ag71xx_check_reg_offset(struct ag71xx 
*ag, unsigned reg)
        case AG71XX_REG_MAC_CFG1 ... AG71XX_REG_MAC_MFL:
        case AG71XX_REG_MAC_IFCTL ... AG71XX_REG_INT_STATUS:
        case AG71XX_REG_MII_CFG:
+       case AG71XX_REG_FIFO_DEPTH:
+       case AG71XX_REG_RX_SM:
+       case AG71XX_REG_TX_SM:
                break;
 
        default:

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to