Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1144470pxv; Fri, 9 Jul 2021 19:25:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNK0VwBoYHW2EBR0bd+PVmEABE3aXaQLpv7LwlaFXuWTb3F2p2f0TtG++H4x2fndY0PZwh X-Received: by 2002:a05:6402:2813:: with SMTP id h19mr50109581ede.39.1625883909965; Fri, 09 Jul 2021 19:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625883909; cv=none; d=google.com; s=arc-20160816; b=aodPhmvvcoqd51yDmbuHeqWA8mZts0wWwa2fdInPDSQ5QvBt90i6Q2EvM8Lmngg0jN mOWizvCpf3uFvEZZzBcHLTFz453tNwL/momt4NCa/TcDOXvu4BEh31HToZVwPC7L+phZ LCCk565MlNi6LWUub21p4+44/md7NDYd4hmf4R41s5wLJOqXpET0CHsq0dtKbcR1+JZY mHplyfMUiQDacVdtJQkulANJ02btI/CVvQW2PJR/oScQlbrHT7NKcafDNGTJ9FGX+fqS 58EnJm11shUCt/60qo4j7BOJ+ypGN+dL+IN9EULsrCIhDvQTDr0EEUnphz7GCNeidkvJ 2Rqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JmU6d7Og3Q53e9XG5ENuHdF/kT+ALdnLXp49U+HCbrQ=; b=XbQKxbaG7UzxmvqPOfe8q8YcmjsX5kiFxKFz6Hts05awu0PRongaIoIM0nzlhBg7dl KDCwQkyGKwCTlZM14/9ZqqpLJ7acWDriElRnJH4T3Z+E2fTmoGFdhaRjDwxb2PHFqumu ZJb7TeYJthnCkcwkcn+FN29Lm5up19oVQADCA/reUlwENIErZdh+9TEioPXwG8nYuKEm sJQRFQQKczcjr+2c+l7P5hUzCiBEvuazrU1vzgRWZ6Ps+daxjFxxyur6Z8EStOxeYKQW ZSYnCrSdoK/4FXvQm8NETm0MW19Of3Sg3sSTlS7iFYPxUQ9Qfy7Jqblu/m76x45xlWPr WCSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sOsDEvxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r23si9748431edo.404.2021.07.09.19.24.46; Fri, 09 Jul 2021 19:25:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sOsDEvxc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233380AbhGJCZy (ORCPT + 99 others); Fri, 9 Jul 2021 22:25:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:42236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232837AbhGJCZO (ORCPT ); Fri, 9 Jul 2021 22:25:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7798D613E1; Sat, 10 Jul 2021 02:22:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883750; bh=GALYTMi0q4oqnQg08S1v1yOu2ngih8jxNsM0/bWku4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sOsDEvxc4Q2d7O7OjIxutMnEeh/ykq5VdJWfeFJpbR2QLgcQLRs1ZI5xRYMbOQJ02 XFAq6sFb/jmhWRn5MUQeout6Tji7Pse5Um1JCYwQUKhp/fwNr4gDsXyd2FjgELAesB M0noW8MrJkxAksxJJMo+iU01qwsSKW6WscWRGqZV8oVpPUcfexOGlcsA9tu+Tyl9of kNrPnwIRB1CiF/oRyz55jLRJoiR9iPwUD/8VMgvhgwYdOhEo3rdun70oA9LFx3ePQK iCajBShBmstKsnuWsgjUs6245cqScB2oIBDMja9dwxW3636bcwuXik+BHfJ2ccEWza 8XxnRnzBZL7cA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Sergey Shtylyov , John Garry , "Martin K . Petersen" , Sasha Levin , linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 5.12 026/104] scsi: hisi_sas: Propagate errors in interrupt_init_v1_hw() Date: Fri, 9 Jul 2021 22:20:38 -0400 Message-Id: <20210710022156.3168825-26-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sergey Shtylyov [ Upstream commit ab17122e758ef68fb21033e25c041144067975f5 ] After commit 6c11dc060427 ("scsi: hisi_sas: Fix IRQ checks") we have the error codes returned by platform_get_irq() ready for the propagation upsream in interrupt_init_v1_hw() -- that will fix still broken deferred probing. Let's propagate the error codes from devm_request_irq() as well since I don't see the reason to override them with -ENOENT... Link: https://lore.kernel.org/r/49ba93a3-d427-7542-d85a-b74fe1a33a73@omp.ru Acked-by: John Garry Signed-off-by: Sergey Shtylyov Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c index 3e359ac752fd..3cba7bfba296 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c @@ -1649,7 +1649,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) if (irq < 0) { dev_err(dev, "irq init: fail map phy interrupt %d\n", idx); - return -ENOENT; + return irq; } rc = devm_request_irq(dev, irq, phy_interrupts[j], 0, @@ -1657,7 +1657,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) if (rc) { dev_err(dev, "irq init: could not request phy interrupt %d, rc=%d\n", irq, rc); - return -ENOENT; + return rc; } } } @@ -1668,7 +1668,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) if (irq < 0) { dev_err(dev, "irq init: could not map cq interrupt %d\n", idx); - return -ENOENT; + return irq; } rc = devm_request_irq(dev, irq, cq_interrupt_v1_hw, 0, @@ -1676,7 +1676,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) if (rc) { dev_err(dev, "irq init: could not request cq interrupt %d, rc=%d\n", irq, rc); - return -ENOENT; + return rc; } } @@ -1686,7 +1686,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) if (irq < 0) { dev_err(dev, "irq init: could not map fatal interrupt %d\n", idx); - return -ENOENT; + return irq; } rc = devm_request_irq(dev, irq, fatal_interrupts[i], 0, @@ -1694,7 +1694,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) if (rc) { dev_err(dev, "irq init: could not request fatal interrupt %d, rc=%d\n", irq, rc); - return -ENOENT; + return rc; } } -- 2.30.2