PCI MSI: Fix MSI-X with NIU cards
authorMatthew Wilcox <matthew@wil.cx>
Fri, 8 May 2009 13:13:33 +0000 (07:13 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 12 May 2009 00:02:27 +0000 (17:02 -0700)
commit8d181018532dd709ec1f789e374cda92d7b01ce1
treeb693f6b993e7b324fe8cd3bee7d3e2d73c1c13bf
parent029091df01116aff8dea89ce96a0a2534401803a
PCI MSI: Fix MSI-X with NIU cards

The NIU device refuses to allow accesses to MSI-X registers before MSI-X
is enabled.  This patch fixes the problem by moving the read of the mask
register to after MSI-X is enabled.

Reported-by: David S. Miller <davem@davemloft.net>
Tested-by: David S. Miller <davem@davemloft.net>
Reviewed-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/msi.c