From: Mugunthan V N Date: Mon, 8 Jul 2013 16:04:38 +0530 Subject: [U-Boot] [PATCH 2/7] drivers: net: cpsw: Enable statistics for all port In-Reply-To: <1373279683-12421-1-git-send-email-mugunthanvnm@ti.com> References: <1373279683-12421-1-git-send-email-mugunthanvnm@ti.com> Message-ID: <1373279683-12421-3-git-send-email-mugunthanvnm@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Enable hardware statistics for all ports, enabling only to host port is useless Signed-off-by: Mugunthan V N --- drivers/net/cpsw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index dc0a2be..f1e9f72 100644 --- 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); -- 1.7.9.5