]> git.karo-electronics.de Git - linux-beck.git/commit
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)
commitb01af4579ec41f48e9b9c774e70bd6474ad210db
tree7cedbc0e5304110e4043e4525ae386fbe95ea203
parent20e2a86485967c385d7c7befc1646e4d1d39362e
8139cp: set ring address before enabling receiver

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>
drivers/net/ethernet/realtek/8139cp.c