e1000e: Fix EIAC register implementation
commitb38636b83727d611a354217fa9d17de5872d7da4
authorDmitry Fleytman <dmitry@daynix.com>
Thu, 15 Sep 2016 06:14:30 +0000 (15 09:14 +0300)
committerJason Wang <jasowang@redhat.com>
Tue, 27 Sep 2016 09:54:22 +0000 (27 17:54 +0800)
tree8cd7abcf94abac3cfee1ff8ed26976f1ff29be08
parent4100c026b69001f774bfff30b5773a2418306f8c
e1000e: Fix EIAC register implementation

This patch fixes 2 issues:

1. Bits set in EIAC register should be cleared
   from IMS when EIAM is not used.
2. Only bit that corresonds to the interrupt being
   raised should be cleared.

See spec. 10.2.4.7 Interrupt Auto Clear

Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e_core.c