Skip to content

Commit f410276

Browse files
committed
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley: "Three driver fixes (and one version number update): a suspend hang in ufs, a qla hard lock on module removal and a qedi panic during discovery" * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: scsi: qla2xxx: Fix hardlockup in abort command during driver remove scsi: ufs: Avoid runtime suspend possibly being blocked forever scsi: qedi: update driver version to 8.37.0.20 scsi: qedi: Check targetname while finding boot target information
2 parents a8282bf + 5589b08 commit f410276

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

drivers/scsi/qedi/qedi_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,9 @@ static int qedi_find_boot_info(struct qedi_ctx *qedi,
987987
if (!iscsi_is_session_online(cls_sess))
988988
continue;
989989

990+
if (!sess->targetname)
991+
continue;
992+
990993
if (pri_ctrl_flags) {
991994
if (!strcmp(pri_tgt->iscsi_name, sess->targetname) &&
992995
!strcmp(pri_tgt->ip_addr, ep_ip_addr)) {

drivers/scsi/qedi/qedi_version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Copyright (c) 2016 Cavium Inc.
55
*/
66

7-
#define QEDI_MODULE_VERSION "8.33.0.21"
7+
#define QEDI_MODULE_VERSION "8.37.0.20"
88
#define QEDI_DRIVER_MAJOR_VER 8
9-
#define QEDI_DRIVER_MINOR_VER 33
9+
#define QEDI_DRIVER_MINOR_VER 37
1010
#define QEDI_DRIVER_REV_VER 0
11-
#define QEDI_DRIVER_ENG_VER 21
11+
#define QEDI_DRIVER_ENG_VER 20

drivers/scsi/qla2xxx/qla_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,8 +1731,8 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res,
17311731
!test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) &&
17321732
!qla2x00_isp_reg_stat(ha))) {
17331733
sp->comp = ∁
1734-
rval = ha->isp_ops->abort_command(sp);
17351734
spin_unlock_irqrestore(qp->qp_lock_ptr, *flags);
1735+
rval = ha->isp_ops->abort_command(sp);
17361736

17371737
switch (rval) {
17381738
case QLA_SUCCESS:

drivers/scsi/ufs/ufshcd-pltfrm.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -430,24 +430,21 @@ int ufshcd_pltfrm_init(struct platform_device *pdev,
430430
goto dealloc_host;
431431
}
432432

433-
pm_runtime_set_active(&pdev->dev);
434-
pm_runtime_enable(&pdev->dev);
435-
436433
ufshcd_init_lanes_per_dir(hba);
437434

438435
err = ufshcd_init(hba, mmio_base, irq);
439436
if (err) {
440437
dev_err(dev, "Initialization failed\n");
441-
goto out_disable_rpm;
438+
goto dealloc_host;
442439
}
443440

444441
platform_set_drvdata(pdev, hba);
445442

443+
pm_runtime_set_active(&pdev->dev);
444+
pm_runtime_enable(&pdev->dev);
445+
446446
return 0;
447447

448-
out_disable_rpm:
449-
pm_runtime_disable(&pdev->dev);
450-
pm_runtime_set_suspended(&pdev->dev);
451448
dealloc_host:
452449
ufshcd_dealloc_host(hba);
453450
out:

0 commit comments

Comments
 (0)