Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp526850ybd; Sat, 22 Jun 2019 08:32:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3l1zu4NrL5//1Z4QUy6Y2kwYunloKyQcZ4acMerfEvg9R5epqoAHGKxp+OmVUJhgVP2Cn X-Received: by 2002:a63:1322:: with SMTP id i34mr24348155pgl.424.1561217531846; Sat, 22 Jun 2019 08:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561217531; cv=none; d=google.com; s=arc-20160816; b=nPISyaFIdY01WQnrTV70wQRm7UkHetuCv89j0QxpCKsa0FgGtPBnplv+Y/julwDZHN G5cTIe2SYhfzyqUacvuh0hqHujstGvC1dGrD/mh+D8nFWXCjLyeZohUtQztBze1pAkM5 rr3RF5FcGCNZXsmk9Qp+FmUp+EgBcYGu8sP7ohdc881tdk2TmioPg0s0UcoENehxH2o7 WM33C9jm9DQlNBjmMhNxnNKGda8PLPMwoUsorCakpC3yLdr/1Mg81fT6MZ2KJ30AuJP/ q5ilmg8Gi9pLj2rY6l9JW40bYzwRaK41lBwQIaE7Gkg6Fova0JpA+SHW44Ki5fTvnGF+ TcjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:cc:to:from:subject:message-id:dkim-signature:dkim-signature; bh=CPiue1Ln8epuCap7jR8j4Sd2N0G5Bi3YMey6ssmVh6w=; b=Pyl82+bA/i0QBF2ZGfFTlqC/8AJVdyFdIMaPeHjURT60OQMj/RvkIdl1ikNAYWXKwQ Y0HkaGk2Dbo3judXRrVkUPncugZucD6Rzq6jhH8hxo3tmDI+FytrmYT4cj3dkZfipctE MUyMRXbGdFQF8VacooQmsgSYVe7Rc5TNXvhWxzK+sCm7QM1JdgjvXD8VJLD7D9K5Y2TG sTKvL0o6CtloP256z1Kpx7H4gUEr0uEbIwSaEbG8tAHXfdo3Cr7KSiAQzLil5ebW1pKF 1UVl9LhrM36pBvcGGWgYdNLGN0iAk1JMd/QALMXo9e2Mm9ft6ZWFBEIHyBS5lJajw1o2 gocQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=p72xwm+x; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=ALNjQzy7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n3si5141753pgh.53.2019.06.22.08.31.55; Sat, 22 Jun 2019 08:32:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=p72xwm+x; dkim=fail header.i=@hansenpartnership.com header.s=20151216 header.b=ALNjQzy7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726334AbfFVPbw (ORCPT + 99 others); Sat, 22 Jun 2019 11:31:52 -0400 Received: from bedivere.hansenpartnership.com ([66.63.167.143]:51274 "EHLO bedivere.hansenpartnership.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbfFVPbw (ORCPT ); Sat, 22 Jun 2019 11:31:52 -0400 Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 3FBA88EE105; Sat, 22 Jun 2019 08:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1561217511; bh=T65+vk73Z2CaX9Tc5+vGvjBb20vMTuCAgO9aJXpwF4Q=; h=Subject:From:To:Cc:Date:From; b=p72xwm+xQ+vBm3M1v+K5P/Nu1txCJNxGl2N36mk3KCkE5j6UypR4Thb0EU9mipNfx sNsevNE9ZWTwl0Jy45+occEVyy9FNAM8ypxLvTwbw5DiLzjnFP59FWUj0aT8HAknwf h/9mCEd7/NbMDR9wETMqlo+/NgLY3V0qFxcoA9uA= Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id emMTLkq_VslB; Sat, 22 Jun 2019 08:31:51 -0700 (PDT) Received: from jarvis.lan (unknown [50.35.68.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id BD77D8EE0D7; Sat, 22 Jun 2019 08:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hansenpartnership.com; s=20151216; t=1561217510; bh=T65+vk73Z2CaX9Tc5+vGvjBb20vMTuCAgO9aJXpwF4Q=; h=Subject:From:To:Cc:Date:From; b=ALNjQzy7sKBavhitCPabl8p/5nFr775EgND8esZd5m1Ee80LVQA3aISlAw1A0UwAj +CPcbtIjuUmU3KNQQA6ysDhpCBZIgbpWjGWr1TO9nTnErLbXzXURgr434WI42zbcCT vpX5ZUTzr/PELiBRv20myxjZrIzH4D17e7O8UjAg= Message-ID: <1561217509.3260.5.camel@HansenPartnership.com> Subject: [GIT PULL] SCSI fixes for 5.2-rc5 From: James Bottomley To: Andrew Morton , Linus Torvalds Cc: linux-scsi , linux-kernel Date: Sat, 22 Jun 2019 08:31:49 -0700 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. The patch is available here: git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes The short changelog is: Arun Easi (1): scsi: qla2xxx: Fix hardlockup in abort command during driver remove Nilesh Javali (2): scsi: qedi: update driver version to 8.37.0.20 scsi: qedi: Check targetname while finding boot target information Stanley Chu (1): scsi: ufs: Avoid runtime suspend possibly being blocked forever And the diffstat: drivers/scsi/qedi/qedi_main.c | 3 +++ drivers/scsi/qedi/qedi_version.h | 6 +++--- drivers/scsi/qla2xxx/qla_os.c | 2 +- drivers/scsi/ufs/ufshcd-pltfrm.c | 11 ++++------- 4 files changed, 11 insertions(+), 11 deletions(-) With full diff below James --- diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c index e5db9a9954dc..a6ff7be0210a 100644 --- a/drivers/scsi/qedi/qedi_main.c +++ b/drivers/scsi/qedi/qedi_main.c @@ -990,6 +990,9 @@ static int qedi_find_boot_info(struct qedi_ctx *qedi, if (!iscsi_is_session_online(cls_sess)) continue; + if (!sess->targetname) + continue; + if (pri_ctrl_flags) { if (!strcmp(pri_tgt->iscsi_name, sess->targetname) && !strcmp(pri_tgt->ip_addr, ep_ip_addr)) { diff --git a/drivers/scsi/qedi/qedi_version.h b/drivers/scsi/qedi/qedi_version.h index 41bcbbafebd4..2c17544c7785 100644 --- a/drivers/scsi/qedi/qedi_version.h +++ b/drivers/scsi/qedi/qedi_version.h @@ -7,8 +7,8 @@ * this source tree. */ -#define QEDI_MODULE_VERSION "8.33.0.21" +#define QEDI_MODULE_VERSION "8.37.0.20" #define QEDI_DRIVER_MAJOR_VER 8 -#define QEDI_DRIVER_MINOR_VER 33 +#define QEDI_DRIVER_MINOR_VER 37 #define QEDI_DRIVER_REV_VER 0 -#define QEDI_DRIVER_ENG_VER 21 +#define QEDI_DRIVER_ENG_VER 20 diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 172ef21827dd..d056f5e7cf93 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -1731,8 +1731,8 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res, !test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) && !qla2x00_isp_reg_stat(ha))) { sp->comp = ∁ - rval = ha->isp_ops->abort_command(sp); spin_unlock_irqrestore(qp->qp_lock_ptr, *flags); + rval = ha->isp_ops->abort_command(sp); switch (rval) { case QLA_SUCCESS: diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.c b/drivers/scsi/ufs/ufshcd-pltfrm.c index 8a74ec30c3d2..d7d521b394c3 100644 --- a/drivers/scsi/ufs/ufshcd-pltfrm.c +++ b/drivers/scsi/ufs/ufshcd-pltfrm.c @@ -430,24 +430,21 @@ int ufshcd_pltfrm_init(struct platform_device *pdev, goto dealloc_host; } - pm_runtime_set_active(&pdev->dev); - pm_runtime_enable(&pdev->dev); - ufshcd_init_lanes_per_dir(hba); err = ufshcd_init(hba, mmio_base, irq); if (err) { dev_err(dev, "Initialization failed\n"); - goto out_disable_rpm; + goto dealloc_host; } platform_set_drvdata(pdev, hba); + pm_runtime_set_active(&pdev->dev); + pm_runtime_enable(&pdev->dev); + return 0; -out_disable_rpm: - pm_runtime_disable(&pdev->dev); - pm_runtime_set_suspended(&pdev->dev); dealloc_host: ufshcd_dealloc_host(hba); out: