فهرست منبع

Merge pull request #183 in PROCESSOR-SDK/processor-sdk-linux from PLSDK-2899 to processor-sdk-linux-4.19.y

* commit '9d8ff393a8a5e6ed584fc05dd960b02e0c7ade5f':
  net: ethernet: prueth: fix storm prev enable for DualEMAC
Aaron Kramer 6 سال پیش
والد
کامیت
fa9e464bd7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      drivers/net/ethernet/ti/prueth.c

+ 1 - 1
drivers/net/ethernet/ti/prueth.c

@@ -1466,7 +1466,7 @@ static enum hrtimer_restart prueth_timer(struct hrtimer *timer)
 	enum prueth_mac mac;
 
 	hrtimer_forward_now(timer, ktime_set(0, prueth->tbl_check_period));
-	if (prueth->emac_configured !=
+	if (PRUETH_HAS_RED(prueth) && prueth->emac_configured !=
 		(BIT(PRUETH_PORT_MII0) | BIT(PRUETH_PORT_MII1)))
 		return HRTIMER_RESTART;