mirror of https://gitee.com/openkylin/linux.git
[PATCH] spidernet: bug fix for init code
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>
This commit is contained in:
parent
caa0371e8b
commit
ee962a5cee
|
@ -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 +
|
||||
|
|
Loading…
Reference in New Issue