]> git.sur5r.net Git - u-boot/commitdiff
da850: fix the channel number for EMAC teardown init
authorNagabhushana Netagunte <nagabhushana.netagunte@ti.com>
Sun, 4 Sep 2011 02:20:33 +0000 (22:20 -0400)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sun, 4 Sep 2011 09:36:19 +0000 (11:36 +0200)
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>
drivers/net/davinci_emac.c

index 66c0d13c2bd9ec42ba2eab1ffca39f6349430fcd..c0b89292580119747e508d786fb078031111e401 100644 (file)
@@ -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