PD#SWPL-13132
Problem:
stammac release/open when resume will change the dma addr.
if stmmac_xmit and stmmac_tx_work are running at the same time
it will cause panic
Solution:
remove stmmac_release/open call in stmmac_resume for chip
g12a/g12b/tl1/tm2
Verify:
verify on TL1
Change-Id: I5abf2ccf72c39483bbd1cce7b9e24bf596f30d0f
Signed-off-by: qi duan <qi.duan@amlogic.com>
#include <linux/reset.h>
#include <linux/of_mdio.h>
#include "dwmac1000.h"
-
+#ifdef CONFIG_AMLOGIC_ETH_PRIVE
+#include "stmmac_platform.h"
+#endif
#ifdef CONFIG_DWMAC_MESON
#include <phy_debug.h>
#endif
phy_start(priv->phydev);
#ifdef TX_MONITOR
- stmmac_release(priv_monitor->dev);
- stmmac_open(priv_monitor->dev);
+ if (!ee_reset_base) {
+ stmmac_release(priv_monitor->dev);
+ stmmac_open(priv_monitor->dev);
+ }
#endif
return 0;
}
int stmmac_pltfr_resume(struct device *dev);
extern unsigned int external_rx_delay;
extern unsigned int external_tx_delay;
+extern void __iomem *ee_reset_base;
#endif
extern const struct dev_pm_ops stmmac_pltfr_pm_ops;