rtl8139: correctly handle PHY reset
commit30a3e70167d0b8db9ea057f270cf18d93c153ed1
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 13 Dec 2016 19:44:41 +0000 (13 20:44 +0100)
committerJason Wang <jasowang@redhat.com>
Fri, 6 Jan 2017 02:38:05 +0000 (6 10:38 +0800)
tree4b86cfd815ddec20c4051611c9b353fca78ce9c4
parent646c5478c04297485e3e045cd8969d2ae7642004
rtl8139: correctly handle PHY reset

According to datasheet:
"[Bit 15 of Basic Mode Control Register] sets the status and control registers
of the PHY (register 0062-0074) in a default state. This bit is self-clearing.
1 = software reset; 0 = normal operation."

This fixes the netcard detection failure in Minoca OS.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/rtl8139.c