Browse Source

da850: fix the channel number for EMAC teardown init

TX and RX channel numbers programmed as '1' during EMAC
teardown initialization is wrong. This patch fixes the
same by setting channel number to '0' which is used by U-boot.

Signed-off-by: Sugumar Natarajan <sugumar@ti.com>
Signed-off-by: Nagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Nagabhushana Netagunte 13 năm trước cách đây
mục cha
commit
ba511f779a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      drivers/net/davinci_emac.c

+ 2 - 2
drivers/net/davinci_emac.c

@@ -457,7 +457,7 @@ static void davinci_eth_ch_teardown(int ch)
 
 
 	if (ch == EMAC_CH_TX) {
 	if (ch == EMAC_CH_TX) {
 		/* Init TX channel teardown */
 		/* Init TX channel teardown */
-		writel(1, &adap_emac->TXTEARDOWN);
+		writel(0, &adap_emac->TXTEARDOWN);
 		do {
 		do {
 			/*
 			/*
 			 * Wait here for Tx teardown completion interrupt to
 			 * 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);
 		writel(0, &adap_emac->TX0HDP);
 	} else {
 	} else {
 		/* Init RX channel teardown */
 		/* Init RX channel teardown */
-		writel(1, &adap_emac->RXTEARDOWN);
+		writel(0, &adap_emac->RXTEARDOWN);
 		do {
 		do {
 			/*
 			/*
 			 * Wait here for Rx teardown completion interrupt to
 			 * Wait here for Rx teardown completion interrupt to