]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: Flush the register writes which setup the MSI-X table
authorBenjamin Li <benli@broadcom.com>
Fri, 8 Jan 2010 08:51:21 +0000 (00:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Jan 2010 08:51:21 +0000 (00:51 -0800)
commitb6a7e2ae818ce108b483cca4c14df723d6c2f441
treecdcf465e988219f50d5aff779e0b2d61c462cf5b
parent08dd1af57a2944eee5fe7c25744f4f00dc2a7ad0
bnx2: Flush the register writes which setup the MSI-X table

The MSI-X table size needs to be properly set before pci_enable_msix()
is called.  But on certain machines, the writes are delayed and the
MSI-X table size is incorrectly read.  By reading the
BNX2_PCI_MSIX_CONTROL register, the writes are flushed and now
ensure that the MSI-X table is set correctly before MSI-X
is enable on the device.

This patch was originally diagnosed and authored by
Kalyan Ram Chintalapati <kalyanc@vmware.com>.

Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Kalyan Ram Chintalapati <kalyanc@vmware.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c