e1000: conditionally raise irq at the end of MDI cycle
commit17fbbb0b3d0b09f07d288991248c81f441bf6941
authorJason Wang <jasowang@redhat.com>
Thu, 22 Mar 2012 10:01:50 +0000 (22 18:01 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 25 Apr 2012 07:53:48 +0000 (25 10:53 +0300)
treea89efb5a31522621472291ebd6937f1a68fd314f
parent2e54cc21ad60219229df569a857a453285795565
e1000: conditionally raise irq at the end of MDI cycle

According to the spec:

"When set to 1b by software, it causes an Interrupt to be
asserted to indicate the end of an MDI cycle."

We need check the Interrupt Enable bit and raise irq only when it is
set.

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