From: Jens Osterkamp Date: Thu, 13 Jul 2006 09:54:23 +0000 (+0200) Subject: [PATCH] spidernet: bug fix for init code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee962a5cee5b534666dbfa5e3ec3c633c90c6b1a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] spidernet: bug fix for init code We want to intitialize addr instead of data register first. Signed-off-by: Jens Osterkamp Signed-off-by: Arnd Bergmann Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/spider_net.c b/drivers/net/spider_net.c index fb1d5a8a45c..05b474f2c8b 100644 --- a/drivers/net/spider_net.c +++ b/drivers/net/spider_net.c @@ -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 +