Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1150020pxv; Fri, 9 Jul 2021 19:36:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygNUhvnieWp/np3gL/wJfD6oUGlAIZavb9FGpUE5nYgIkWV0Qn8fkWo4LLNlM/hUOqOTXD X-Received: by 2002:a05:6402:358b:: with SMTP id y11mr24857729edc.43.1625884611407; Fri, 09 Jul 2021 19:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884611; cv=none; d=google.com; s=arc-20160816; b=Udq/yYBC5H2R/DeKUQyiogj8z50VXzl29t2dDtEWRGscTTCMeLVys+h4slzLBoxWgE y5mCgHkodXfAiMRkDFQnyV8BXuMY3bjVQpbqibvd0TWK9f17Gb6+BwhRXLErFXiftoR4 4bH3wfTJK+K0DSyDEjgSmXiAfSXESc/q0ra5PsEsMg540kprWyJ8wyjF+DJfdPe3aQJz I5Lk4j6B4oJZ/qBWu9761TfMIruvwaLNDb1ovFH156zpacLLqxZ6bfKW6KhQO9OFvrkX rjNZvaTrAQ05bBjtOGlEgAswgy5qkhegZNNgzqy5I0MeqsdR5Zaj/R7D+0pZGJf/pWM/ W1QQ== 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=mDImXnk7D6HoJIKokfWHWwSnw8aYzihisd0tiTfTLAE=; b=Swpx1+QjSoJw4BiGbhjN3SYMgYaYJqOGFI0c3d4ezGDRV3SqPP7VqaO6dV7efhB9RR ATJG1/Hosw0SJKugUjsighSRAyd7nlMfPPsQi0LKtHyzkXQdGrLObAKFTuNLotQiGGj+ dtfuEKWu4RVtXVpcxLaYOffoI+GXwnJmFmTU+JnZ7YuNKzXwvt4drjxBENJXehPWlgT8 Ixg49pkHmra9EgA3lCGccigkwrfQKgA7VkqchTCMdUSbc/Kk0vO4Qy3UIXdYFD4qpqme OqRSRtkRzIuY2O0fBQnEGUfMx6H5lhVFcQ5hBHUB0NtgMvLjEfiKZt/40yQ7av4W7vWP hwAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VYPx3+bH; 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 bl4si10869910ejb.689.2021.07.09.19.36.27; Fri, 09 Jul 2021 19:36:51 -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=VYPx3+bH; 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 S233380AbhGJCiY (ORCPT + 99 others); Fri, 9 Jul 2021 22:38:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:53380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235691AbhGJCe7 (ORCPT ); Fri, 9 Jul 2021 22:34:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3199461407; Sat, 10 Jul 2021 02:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625884331; bh=mxqQrdLG/E9N+IMHQqsVt7/SN+k6aipg4GiStHlgieg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VYPx3+bHhpffrrBU9Uw7CeIcGMHy1alJ3gdugXV8JZwrFmZrbpo2oIXqGTeOwtUfR 5RR0Fdzjbbh8lC+6bjMT9wHEvkNGobW54Jjv+2vubO+7ci9VI5NIsKkC+Go2CCDcVh LNHax8DlXvRA/MKpgNW1jHlAmYMxlPqwt1DCETdkshZKUhBLaoa6eMx8Gj52RsOXHE nqZUwj/99FO4dfn2qmRgOBAZ4VOOsjvYNhN/Eecd5WATbNVmPq9DMsF2S7J0XI62om W8I+9nZXb4FLjVysHBgImkn0RA7k5sWMHn4vz652wTuKOyjW5/8rVuYemkrB8S/+2q 9GEKodATRkQyw== 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 4.19 05/39] scsi: hisi_sas: Propagate errors in interrupt_init_v1_hw() Date: Fri, 9 Jul 2021 22:31:30 -0400 Message-Id: <20210710023204.3171428-5-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710023204.3171428-1-sashal@kernel.org> References: <20210710023204.3171428-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 8aa3222fe486..5a777e48963b 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c @@ -1697,7 +1697,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) 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, @@ -1706,7 +1706,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) dev_err(dev, "irq init: could not request " "phy interrupt %d, rc=%d\n", irq, rc); - return -ENOENT; + return rc; } } } @@ -1717,7 +1717,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) if (!irq) { 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, @@ -1725,7 +1725,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; } } @@ -1735,7 +1735,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) if (!irq) { 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, @@ -1744,7 +1744,7 @@ static int interrupt_init_v1_hw(struct hisi_hba *hisi_hba) dev_err(dev, "irq init: could not request fatal interrupt %d, rc=%d\n", irq, rc); - return -ENOENT; + return rc; } } -- 2.30.2