]> git.proxmox.com Git - mirror_qemu.git/commit
rtl8139: correctly check the opmode
authorJason Wang <jasowang@redhat.com>
Mon, 5 Mar 2012 03:08:59 +0000 (11:08 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Mar 2012 23:04:51 +0000 (01:04 +0200)
commiteb46c5eda7d8b38c1407dd55f67cf4a6aa3b7b23
tree7e05acadec1cee8610bb358976d993a6df9e28f2
parent7fc8d918b9674c3e9233d6d25da2457345d414a0
rtl8139: correctly check the opmode

According to the spec, only when opmode is "Config. Register Write
Enable" could driver write to CONFIG0,1,3,4 and bits 13,12,8 of BMCR.

Currently, we allow modifying to those registers also when 8139 is in
"Auto-load" mode and "93C46 (93C56) Programming" mode. This patch
fixes this.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/rtl8139.c