VFIO: platform: clear IRQ_NOAUTOEN when de-assigning the IRQ
authorEric Auger <eric.auger@linaro.org>
Wed, 14 Oct 2015 15:32:56 +0000 (15:32 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 27 Oct 2015 21:02:53 +0000 (15:02 -0600)
commit1276ece32c5d18790e8bcff89e692fd3c1790bab
treed7151d776c28879bf2ddeabdfea4fe1ed8371270
parent4e1a635552d3df7bb743de8c2be156293c53839e
VFIO: platform: clear IRQ_NOAUTOEN when de-assigning the IRQ

The vfio platform driver currently sets the IRQ_NOAUTOEN before
doing the request_irq to properly handle the user masking. However
it does not clear it when de-assigning the IRQ. This brings issues
when loading the native driver again which may not explicitly enable
the IRQ. This problem was observed with xgbe driver.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_irq.c