]> git.baikalelectronics.ru Git - kernel.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)
commit83036ad2fe5a73f2a6b11400d269334efcfa859b
tree7cedbc0e5304110e4043e4525ae386fbe95ea203
parent893291c78414d86476a3e34c292c2ac410d5574c
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