8139cp: set ring address before enabling receiver
authorJason Wang <jasowang@redhat.com>
Thu, 31 May 2012 18:19:39 +0000 (18:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jun 2012 18:22:11 +0000 (14:22 -0400)
Currently, we enable the receiver before setting the ring address which could
lead the card DMA into unexpected areas. Solving this by set the ring address
before enabling the receiver.

btw. I find and test this in qemu as I didn't have a 8139cp card in hand. please
review it carefully.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found