misc: mic: bug fix for interrupt acknowledgement in MSI/INTx case.
authorDasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Tue, 10 Dec 2013 17:51:12 +0000 (09:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:34:01 +0000 (11:34 -0800)
commit2c457ffeb38442be473836d64d414cba2143a694
tree5d229c1c59e1b8c9053ecd67dc980fee864d2266
parent96ce677076dbac9b1a7f44a91e204762e1355b57
misc: mic: bug fix for interrupt acknowledgement in MSI/INTx case.

commit df5e4e8b576108f88f79e5b4c984d51d460d2360 upstream.

The interrupt handler (mic_interrupt), called in the MSI/INTx mode,
writes to the interrupt sources register to acknowledge the
interrupt and then calls the corresponding callback handlers to handle
the same. These callback handlers acknowledge the interrupts again
leading to missed interrupts. This patch fixes the issue by removing
the interrupt acknowlegment code from the callback handlers.

Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com>
Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
Reviewed-by: Siva Krishna Kumar Reddy Yerramreddy <siva.krishna.kumar.reddy.yerramreddy@intel.com>
Signed-off-by: Dasaratharaman Chandramouli <dasaratharaman.chandramouli@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/host/mic_device.h
drivers/misc/mic/host/mic_main.c
drivers/misc/mic/host/mic_virtio.c
drivers/misc/mic/host/mic_x100.c