Patchwork [U-Boot] DaVinci EMAC: teardown correct channel

login
register
mail settings
Submitter andreas.gaer@baslerweb.com
Date Feb. 14, 2011, 3:57 p.m.
Message ID <1297699048-16056-1-git-send-email-andreas.gaer@baslerweb.com>
Download mbox | patch
Permalink /patch/83110/
State Accepted
Commit ba511f779a584f77b4b798fc40685bfe8d3d5163
Headers show

Comments

andreas.gaer@baslerweb.com - Feb. 14, 2011, 3:57 p.m.
From: Andreas Gaeer <Andreas.Gaer@baslerweb.com>

Davinci_emac driver uses EMAC channel 0 for communication, so it should
also teardown EMAC channel 0 in davinci_eth_ch_teardown instead of 1.

Signed-off-by: Andreas Gaeer <Andreas.Gaer@baslerweb.com>
---
 drivers/net/davinci_emac.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index c359f54..4e01af4 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -457,7 +457,7 @@  static void davinci_eth_ch_teardown(int ch)
 
 	if (ch == EMAC_CH_TX) {
 		/* Init TX channel teardown */
-		writel(1, &adap_emac->TXTEARDOWN);
+		writel(0, &adap_emac->TXTEARDOWN);
 		do {
 			/*
 			 * Wait here for Tx teardown completion interrupt to
@@ -476,7 +476,7 @@  static void davinci_eth_ch_teardown(int ch)
 		writel(0, &adap_emac->TX0HDP);
 	} else {
 		/* Init RX channel teardown */
-		writel(1, &adap_emac->RXTEARDOWN);
+		writel(0, &adap_emac->RXTEARDOWN);
 		do {
 			/*
 			 * Wait here for Rx teardown completion interrupt to