]> git.baikalelectronics.ru Git - kernel.git/commit
8139cp: properly config rx mode after resuming
authorJason Wang <jasowang@redhat.com>
Fri, 30 Dec 2011 23:44:42 +0000 (23:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2012 17:47:50 +0000 (12:47 -0500)
commit28ee16fa630fd0c4c152439f3c88f265b7ea5e63
tree02cea369e33f73f09cb4c77f208b4de33d79617b
parent88f38e43ee51ac1165b10e66c77815c6017c48b1
8139cp: properly config rx mode after resuming

Rx mode should be reset after resming, so unconditionally updating rx
mode rather than conditionally updating based on the value we
remembered, otherwise unexpected value may be used by the nic after
resuming.

btw. I find and test this when debugging guest hibernation in qemu, as
I did not have a 8139cp card in hand, this patch is untested in a
physical 8139cp card, plase 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