diff options
Diffstat (limited to 'drivers/message/fusion')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 8 | ||||
-rw-r--r-- | drivers/message/fusion/mptsas.c | 5 |
2 files changed, 6 insertions, 7 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index ea3aafbbda44..d0d126c69354 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -1534,13 +1534,13 @@ mpt_mapresources(MPT_ADAPTER *ioc) | |||
1534 | 1534 | ||
1535 | pci_read_config_byte(pdev, PCI_CLASS_REVISION, &revision); | 1535 | pci_read_config_byte(pdev, PCI_CLASS_REVISION, &revision); |
1536 | 1536 | ||
1537 | if (!pci_set_dma_mask(pdev, DMA_64BIT_MASK) | 1537 | if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(64)) |
1538 | && !pci_set_consistent_dma_mask(pdev, DMA_64BIT_MASK)) { | 1538 | && !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(64))) { |
1539 | dinitprintk(ioc, printk(MYIOC_s_INFO_FMT | 1539 | dinitprintk(ioc, printk(MYIOC_s_INFO_FMT |
1540 | ": 64 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", | 1540 | ": 64 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", |
1541 | ioc->name)); | 1541 | ioc->name)); |
1542 | } else if (!pci_set_dma_mask(pdev, DMA_32BIT_MASK) | 1542 | } else if (!pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) |
1543 | && !pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) { | 1543 | && !pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { |
1544 | dinitprintk(ioc, printk(MYIOC_s_INFO_FMT | 1544 | dinitprintk(ioc, printk(MYIOC_s_INFO_FMT |
1545 | ": 32 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", | 1545 | ": 32 BIT PCI BUS DMA ADDRESSING SUPPORTED\n", |
1546 | ioc->name)); | 1546 | ioc->name)); |
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 12b732512e57..a9019f081b97 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -2279,9 +2279,8 @@ mptsas_delete_expander_phys(MPT_ADAPTER *ioc) | |||
2279 | mutex_lock(&ioc->sas_topology_mutex); | 2279 | mutex_lock(&ioc->sas_topology_mutex); |
2280 | list_for_each_entry_safe(port_info, n, &ioc->sas_topology, list) { | 2280 | list_for_each_entry_safe(port_info, n, &ioc->sas_topology, list) { |
2281 | 2281 | ||
2282 | if (port_info->phy_info && | 2282 | if (!(port_info->phy_info[0].identify.device_info & |
2283 | (!(port_info->phy_info[0].identify.device_info & | 2283 | MPI_SAS_DEVICE_INFO_SMP_TARGET)) |
2284 | MPI_SAS_DEVICE_INFO_SMP_TARGET))) | ||
2285 | continue; | 2284 | continue; |
2286 | 2285 | ||
2287 | if (mptsas_sas_expander_pg0(ioc, &buffer, | 2286 | if (mptsas_sas_expander_pg0(ioc, &buffer, |