Skip to content
Snippets Groups Projects
Commit 454ac635 authored by Mugunthan V N's avatar Mugunthan V N Committed by Tom Rini
Browse files

drivers: net: cpsw: Enable statistics for all port


Enable hardware statistics for all ports, enabling only to host port is useless

Signed-off-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
parent 2bf36ac6
No related branches found
No related tags found
No related merge requests found
......@@ -772,6 +772,7 @@ static int cpsw_init(struct eth_device *dev, bd_t *bis)
/* enable statistics collection only on the host port */
__raw_writel(BIT(priv->host_port), &priv->regs->stat_port_en);
__raw_writel(0x7, &priv->regs->stat_port_en);
cpsw_ale_port_state(priv, priv->host_port, ALE_PORT_STATE_FORWARD);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment