]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] spidernet: bug fix for init code
authorJens Osterkamp <jens@de.ibm.com>
Thu, 13 Jul 2006 09:54:23 +0000 (11:54 +0200)
committerJeff Garzik <jeff@garzik.org>
Mon, 17 Jul 2006 17:30:12 +0000 (13:30 -0400)
We want to intitialize addr instead of data register first.

Signed-off-by: Jens Osterkamp <Jens.Osterkamp@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/spider_net.c

index fb1d5a8a45cf996c47623402b9a406dd7df8fa56..05b474f2c8b5f6752a916a575ec848dc4aa2e2cc 100644 (file)
@@ -1938,7 +1938,7 @@ spider_net_workaround_rxramfull(struct spider_net_card *card)
        /* empty sequencer data */
        for (sequencer = 0; sequencer < SPIDER_NET_FIRMWARE_SEQS;
             sequencer++) {
-               spider_net_write_reg(card, SPIDER_NET_GSnPRGDAT +
+               spider_net_write_reg(card, SPIDER_NET_GSnPRGADR +
                                     sequencer * 8, 0x0);
                for (i = 0; i < SPIDER_NET_FIRMWARE_SEQWORDS; i++) {
                        spider_net_write_reg(card, SPIDER_NET_GSnPRGDAT +