net: stmmac: xgmac: Disable MMC interrupts by default
MMC interrupts were being enabled, which is not what we want because it will lead to a storm of interrupts that are not handled at all. Fix it by disabling all MMC interrupts for XGMAC. Fixes: b6cdf09f51c2 ("net: stmmac: xgmac: Implement MMC counters") Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
132f2f20c9
commit
aeb18dd076
@ -176,6 +176,7 @@
|
|||||||
#define MMC_XGMAC_RX_PKT_SMD_ERR 0x22c
|
#define MMC_XGMAC_RX_PKT_SMD_ERR 0x22c
|
||||||
#define MMC_XGMAC_RX_PKT_ASSEMBLY_OK 0x230
|
#define MMC_XGMAC_RX_PKT_ASSEMBLY_OK 0x230
|
||||||
#define MMC_XGMAC_RX_FPE_FRAG 0x234
|
#define MMC_XGMAC_RX_FPE_FRAG 0x234
|
||||||
|
#define MMC_XGMAC_RX_IPC_INTR_MASK 0x25c
|
||||||
|
|
||||||
static void dwmac_mmc_ctrl(void __iomem *mmcaddr, unsigned int mode)
|
static void dwmac_mmc_ctrl(void __iomem *mmcaddr, unsigned int mode)
|
||||||
{
|
{
|
||||||
@ -333,8 +334,9 @@ static void dwxgmac_mmc_ctrl(void __iomem *mmcaddr, unsigned int mode)
|
|||||||
|
|
||||||
static void dwxgmac_mmc_intr_all_mask(void __iomem *mmcaddr)
|
static void dwxgmac_mmc_intr_all_mask(void __iomem *mmcaddr)
|
||||||
{
|
{
|
||||||
writel(MMC_DEFAULT_MASK, mmcaddr + MMC_RX_INTR_MASK);
|
writel(0x0, mmcaddr + MMC_RX_INTR_MASK);
|
||||||
writel(MMC_DEFAULT_MASK, mmcaddr + MMC_TX_INTR_MASK);
|
writel(0x0, mmcaddr + MMC_TX_INTR_MASK);
|
||||||
|
writel(MMC_DEFAULT_MASK, mmcaddr + MMC_XGMAC_RX_IPC_INTR_MASK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dwxgmac_read_mmc_reg(void __iomem *addr, u32 reg, u32 *dest)
|
static void dwxgmac_read_mmc_reg(void __iomem *addr, u32 reg, u32 *dest)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user