Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1151862pxv; Fri, 9 Jul 2021 19:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJduJzyL9EiUHrTo0TaAVJwBKJ8ohp5KSHYznKkuflgYmjDScbs0U6CpLI8mOVBxqRPaHn X-Received: by 2002:a05:6e02:2163:: with SMTP id s3mr28078706ilv.3.1625884848283; Fri, 09 Jul 2021 19:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884848; cv=none; d=google.com; s=arc-20160816; b=jJ733m04DJKTk8wKsQ4aIFoRItP15l41DMpQTZ6zX383X2/MN4I2ByATiNRaFKP0Dc G10ZtO8cZG68KwcGK+a8bIeWgC/MnQYuV5SX5ZnmtiKSsN8edziYEvX4RQICcnyM3fr2 gxNvnFGJ6dtmCBlbsfpKu00VJIpZYaQZ5Q9+JMqCfI1RipbA+3T5wHdui0FEWf7XfbzZ J73Jnipxwi1+zGuPvI1KT9jDnnwJRRIEAt5FufkhASS/yYX/Xd6eW0PklNArZGeGP1sJ Ua1DXRDXQK9Cw3bW3SJ39xf0z0pj7+AI+NvshHoPscOHWm4rFV5/+U6uqpt8U24qqO/u hu5w== 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=QbVO7i60pbEhWfwMBBBgXXtCmY1WLcveC24eBreifhs=; b=fsckWwf9fUlx/AN+XsN8J24MmeLarwTB+p0kHeJonhZ1s4sFu30K6LcbUA64l6Oz7V qN3d+mmHhrofnpux7hPSHY46W54VrIjIioMDQN1MQuSj5DbqI4HA5oXrcMoeggPvKWM5 vDWpiLmflzjHLz/9wuMe2tkj3VZjBGKAx1fDbtkhetDPewYkh9A01FD+s/IQb7K3Oydm QIePKs0M/KZFeppoZEEV/YvaM+/kUgbue0Iu9K+ILja6Tb38zYXxJlp6vORocgZNod9U wgKpx2Y4KRFFzxTN2kwhfAOGOFmgh6XiTvHyGBVSrXBrz6tnKDSRSlOIpC+h3IrqV9th ZWAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OQQzjIdj; 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 c11si7740740iob.102.2021.07.09.19.40.35; Fri, 09 Jul 2021 19:40:48 -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=OQQzjIdj; 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 S235366AbhGJCmt (ORCPT + 99 others); Fri, 9 Jul 2021 22:42:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:58450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235811AbhGJCjr (ORCPT ); Fri, 9 Jul 2021 22:39:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 245D461441; Sat, 10 Jul 2021 02:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625884569; bh=Dij0Ao0YicGgV1e19xlHHk5GMgXy4+H8nCFRBrXWngI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OQQzjIdj0LBndY8RX82A1Rqv+tKymV2G9hPeh74fvTKGWcE2BuOqBnSgPW9CCy1G3 s4PjGzBBXPzy5EpUTei2vf2khNAsio0KVat17SOamaF6zZMs/LHT9ll8y1dubUuvFf 47X8M3GkSlgHWfQbdHV3jDYxVb4PBeKn9j1dRfnCa5DBrCwtq1vXJGOqeI3JvbjP6K D16Fp6AQMw1N0NkM7pJ9DFFcwsROBaiQWqv8D5+XyG1C0EKfmjyHccAe/2rn1E22AJ DgtDkwxe5TRqXmqwpO8/fn3ZGpPThVM/NLF1tWugMqNEk+XIw/h/MKQp12XDo1Yrcq DysbXf0L46kNQ== 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.9 04/26] scsi: hisi_sas: Propagate errors in interrupt_init_v1_hw() Date: Fri, 9 Jul 2021 22:35:42 -0400 Message-Id: <20210710023604.3172486-4-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710023604.3172486-1-sashal@kernel.org> References: <20210710023604.3172486-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 c0ac49d8bc8d..5c49806a7ae3 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c @@ -1709,7 +1709,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, @@ -1718,7 +1718,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; } } } @@ -1729,7 +1729,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, @@ -1737,7 +1737,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; } } @@ -1747,7 +1747,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, @@ -1756,7 +1756,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