Skip to content

Commit ed6de45

Browse files
James BottomleyJames Bottomley
authored andcommitted
Merge remote-tracking branch 'mkp-scsi/4.10/scsi-fixes' into fixes
2 parents ad3efdb + 2dfa668 commit ed6de45

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

drivers/s390/scsi/zfcp_fsf.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ static void zfcp_fsf_open_wka_port_handler(struct zfcp_fsf_req *req)
15831583
int zfcp_fsf_open_wka_port(struct zfcp_fc_wka_port *wka_port)
15841584
{
15851585
struct zfcp_qdio *qdio = wka_port->adapter->qdio;
1586-
struct zfcp_fsf_req *req = NULL;
1586+
struct zfcp_fsf_req *req;
15871587
int retval = -EIO;
15881588

15891589
spin_lock_irq(&qdio->req_q_lock);
@@ -1612,7 +1612,7 @@ int zfcp_fsf_open_wka_port(struct zfcp_fc_wka_port *wka_port)
16121612
zfcp_fsf_req_free(req);
16131613
out:
16141614
spin_unlock_irq(&qdio->req_q_lock);
1615-
if (req && !IS_ERR(req))
1615+
if (!retval)
16161616
zfcp_dbf_rec_run_wka("fsowp_1", wka_port, req->req_id);
16171617
return retval;
16181618
}
@@ -1638,7 +1638,7 @@ static void zfcp_fsf_close_wka_port_handler(struct zfcp_fsf_req *req)
16381638
int zfcp_fsf_close_wka_port(struct zfcp_fc_wka_port *wka_port)
16391639
{
16401640
struct zfcp_qdio *qdio = wka_port->adapter->qdio;
1641-
struct zfcp_fsf_req *req = NULL;
1641+
struct zfcp_fsf_req *req;
16421642
int retval = -EIO;
16431643

16441644
spin_lock_irq(&qdio->req_q_lock);
@@ -1667,7 +1667,7 @@ int zfcp_fsf_close_wka_port(struct zfcp_fc_wka_port *wka_port)
16671667
zfcp_fsf_req_free(req);
16681668
out:
16691669
spin_unlock_irq(&qdio->req_q_lock);
1670-
if (req && !IS_ERR(req))
1670+
if (!retval)
16711671
zfcp_dbf_rec_run_wka("fscwp_1", wka_port, req->req_id);
16721672
return retval;
16731673
}

drivers/scsi/aacraid/comminit.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ struct aac_common aac_config = {
5050

5151
static inline int aac_is_msix_mode(struct aac_dev *dev)
5252
{
53-
u32 status;
53+
u32 status = 0;
5454

55-
status = src_readl(dev, MUnit.OMR);
55+
if (dev->pdev->device == PMC_DEVICE_S6 ||
56+
dev->pdev->device == PMC_DEVICE_S7 ||
57+
dev->pdev->device == PMC_DEVICE_S8) {
58+
status = src_readl(dev, MUnit.OMR);
59+
}
5660
return (status & AAC_INT_MODE_MSIX);
5761
}
5862

drivers/scsi/mpt3sas/mpt3sas_scsih.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include <linux/workqueue.h>
5252
#include <linux/delay.h>
5353
#include <linux/pci.h>
54+
#include <linux/pci-aspm.h>
5455
#include <linux/interrupt.h>
5556
#include <linux/aer.h>
5657
#include <linux/raid_class.h>
@@ -8761,6 +8762,8 @@ _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id)
87618762

87628763
switch (hba_mpi_version) {
87638764
case MPI2_VERSION:
8765+
pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S |
8766+
PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
87648767
/* Use mpt2sas driver host template for SAS 2.0 HBA's */
87658768
shost = scsi_host_alloc(&mpt2sas_driver_template,
87668769
sizeof(struct MPT3SAS_ADAPTER));

0 commit comments

Comments
 (0)