|
@@ -3984,12 +3984,12 @@ static int megasas_probe_one(struct pci_dev *pdev,
|
|
|
if (reset_devices) {
|
|
|
pos = pci_find_capability(pdev, PCI_CAP_ID_MSIX);
|
|
|
if (pos) {
|
|
|
- pci_read_config_word(pdev, msi_control_reg(pos),
|
|
|
+ pci_read_config_word(pdev, pos + PCI_MSIX_FLAGS,
|
|
|
&control);
|
|
|
if (control & PCI_MSIX_FLAGS_ENABLE) {
|
|
|
dev_info(&pdev->dev, "resetting MSI-X\n");
|
|
|
pci_write_config_word(pdev,
|
|
|
- msi_control_reg(pos),
|
|
|
+ pos + PCI_MSIX_FLAGS,
|
|
|
control &
|
|
|
~PCI_MSIX_FLAGS_ENABLE);
|
|
|
}
|