aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2014-10-07 16:48:12 -0400
committerJames Bottomley <JBottomley@Parallels.com>2014-10-07 16:48:12 -0400
commit19ac97ff701ae3c0eda09dd88f590806f1c4eb2d (patch)
tree62bb6b6358783dc9d6c26f480fa378843abb0235 /drivers/message
parent24c20f10583647e30afe87b6f6d5e14bc7b1cbc6 (diff)
parente785060ea3a1c8e37a8bc1449c79e36bff2b5b13 (diff)
Merge remote-tracking branch 'scsi-queue/drivers-for-3.18' into for-linus
Diffstat (limited to 'drivers/message')
-rw-r--r--drivers/message/fusion/mptbase.c8
-rw-r--r--drivers/message/fusion/mptctl.c7
-rw-r--r--drivers/message/fusion/mptspi.c5
3 files changed, 7 insertions, 13 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index a896d948b79e..187f83629f7e 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -1400,7 +1400,6 @@ mpt_verify_adapter(int iocid, MPT_ADAPTER **iocpp)
1400 * @vendor: pci vendor id 1400 * @vendor: pci vendor id
1401 * @device: pci device id 1401 * @device: pci device id
1402 * @revision: pci revision id 1402 * @revision: pci revision id
1403 * @prod_name: string returned
1404 * 1403 *
1405 * Returns product string displayed when driver loads, 1404 * Returns product string displayed when driver loads,
1406 * in /proc/mpt/summary and /sysfs/class/scsi_host/host<X>/version_product 1405 * in /proc/mpt/summary and /sysfs/class/scsi_host/host<X>/version_product
@@ -3172,12 +3171,7 @@ GetIocFacts(MPT_ADAPTER *ioc, int sleepFlag, int reason)
3172 facts->FWImageSize = le32_to_cpu(facts->FWImageSize); 3171 facts->FWImageSize = le32_to_cpu(facts->FWImageSize);
3173 } 3172 }
3174 3173
3175 sz = facts->FWImageSize; 3174 facts->FWImageSize = ALIGN(facts->FWImageSize, 4);
3176 if ( sz & 0x01 )
3177 sz += 1;
3178 if ( sz & 0x02 )
3179 sz += 2;
3180 facts->FWImageSize = sz;
3181 3175
3182 if (!facts->RequestFrameSize) { 3176 if (!facts->RequestFrameSize) {
3183 /* Something is wrong! */ 3177 /* Something is wrong! */
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c
index b0a892a2bf1b..70bb7530b22c 100644
--- a/drivers/message/fusion/mptctl.c
+++ b/drivers/message/fusion/mptctl.c
@@ -1741,12 +1741,7 @@ mptctl_replace_fw (unsigned long arg)
1741 1741
1742 /* Allocate memory for the new FW image 1742 /* Allocate memory for the new FW image
1743 */ 1743 */
1744 newFwSize = karg.newImageSize; 1744 newFwSize = ALIGN(karg.newImageSize, 4);
1745
1746 if (newFwSize & 0x01)
1747 newFwSize += 1;
1748 if (newFwSize & 0x02)
1749 newFwSize += 2;
1750 1745
1751 mpt_alloc_fw_memory(ioc, newFwSize); 1746 mpt_alloc_fw_memory(ioc, newFwSize);
1752 if (ioc->cached_fw == NULL) 1747 if (ioc->cached_fw == NULL)
diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c
index 787933d43d32..613231c16194 100644
--- a/drivers/message/fusion/mptspi.c
+++ b/drivers/message/fusion/mptspi.c
@@ -1419,6 +1419,11 @@ mptspi_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1419 goto out_mptspi_probe; 1419 goto out_mptspi_probe;
1420 } 1420 }
1421 1421
1422 /* VMWare emulation doesn't properly implement WRITE_SAME
1423 */
1424 if (pdev->subsystem_vendor == 0x15AD)
1425 sh->no_write_same = 1;
1426
1422 spin_lock_irqsave(&ioc->FreeQlock, flags); 1427 spin_lock_irqsave(&ioc->FreeQlock, flags);
1423 1428
1424 /* Attach the SCSI Host to the IOC structure 1429 /* Attach the SCSI Host to the IOC structure