projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2bf36ac
)
drivers: net: cpsw: Enable statistics for all port
author
Mugunthan V N
<mugunthanvnm@ti.com>
Mon, 8 Jul 2013 10:34:38 +0000
(16:04 +0530)
committer
Tom Rini
<trini@ti.com>
Fri, 26 Jul 2013 20:39:11 +0000
(16:39 -0400)
Enable hardware statistics for all ports, enabling only to host port is useless
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
drivers/net/cpsw.c
patch
|
blob
|
history
diff --git
a/drivers/net/cpsw.c
b/drivers/net/cpsw.c
index
dc0a2be
..
f1e9f72
100644
(file)
--- a/
drivers/net/cpsw.c
+++ b/
drivers/net/cpsw.c
@@
-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);