]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoe Jin <joe.jin@oracle.com>
Wed, 29 Aug 2012 00:22:20 +0000 (08:22 +0800)
commit6c3b133cb299af78ef844f33817cd3a4f357c902
tree3d0d9d2c0076444a56a37f833903354c9f12e09f
parent5d7ae66fd7aa887e9b884ddfb105bb9b35a62c74
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.

(cherry picked from commit b01af4579ec41f48e9b9c774e70bd6474ad210db)
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/8139cp.c