Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1376081pxv; Sat, 10 Jul 2021 02:23:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBLOe3YyVZLWCn7wj14wGpKEZiFZIFfWG6CF+vnqfqFc6S+r3cBt3fzFuUBHOI/IbP1pV4 X-Received: by 2002:a92:c56c:: with SMTP id b12mr30716858ilj.13.1625908993191; Sat, 10 Jul 2021 02:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625908993; cv=none; d=google.com; s=arc-20160816; b=IaDfpX4R4VFrp2MKODAg8mG1dguE9o0RxGAUOnSI+PGqL72R3HleEvOM3OOmHHO5Iz dIJSwCXj+ooXP1Qza+jXUe293TSVgdbSPuIjuFid3KgIZb0Q71P4UQboLk125g7NO05a vC4D/mbxpJy3p4M4Cp8FqjXRDdFX8xxuvE0ke+YnCtGXuwzU7soVWh3Y93eF5P7HICTt L/ewHigs/SVTlr7Gc7RZouo7EvU8wW8SFz5ZPsS5hy1HiiNjntOOv6mEd/6qPraHO5iG 1IuOW7lUfqnnOBfmqw0WKrSBFE4tyHEp3jux6C2O/WdOdau/JChBLsUrUsdS4ub6oREA pQnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-filter; bh=d1BYtZDX5X4oiOk019VXTBFPcgXWhWwNFvOao081s9M=; b=vaDo0dI1hix/VcuSub2Ux+k2TXEV91IX30GJ7oK3IbHCGHLTj7zpmHmRmN29vg/BPb KP942UmKjnmRslvS/3+t9rxcKdtRoYAeNPFV85d0ZTUE4UN8YYw/zE7PsiSWmIXs2q5w W5XV6YrCYSwkxsRFn4yAwBrcZYd6sCAm83iFe9AhFZDUhSSfr0k8L4umCCJEzeNeYpaX +S0FbnE5/kWr2zMneGf5OoBPMN0Hc76W+NxakkKtMRB/HYCHkbB5wyZOMnq/FgXWWNao 7CdV481GYdwg1n1lMxq4jrD6SzK0GhpfHKpqcN7EDylcvM8r+hO1Z+UFDdTpGtqcN3Kv hbnQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x6si7121742ilj.25.2021.07.10.02.22.59; Sat, 10 Jul 2021 02:23:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232411AbhGJJZD (ORCPT + 99 others); Sat, 10 Jul 2021 05:25:03 -0400 Received: from mxout02.lancloud.ru ([45.84.86.82]:36286 "EHLO mxout02.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231877AbhGJJZC (ORCPT ); Sat, 10 Jul 2021 05:25:02 -0400 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout02.lancloud.ru D6FF323421C7 Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH AUTOSEL 4.14 05/33] scsi: hisi_sas: Propagate errors in interrupt_init_v1_hw() To: Sasha Levin , , CC: John Garry , "Martin K . Petersen" , References: <20210710023516.3172075-1-sashal@kernel.org> <20210710023516.3172075-5-sashal@kernel.org> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <56cc4caa-bf15-86c7-48f2-54f9e688b437@omp.ru> Date: Sat, 10 Jul 2021 12:14:47 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210710023516.3172075-5-sashal@kernel.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT01.lancloud.ru (fd00:f066::141) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.07.2021 5:34, Sasha Levin wrote: > 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 08eca20b0b81..8b41545ff8d9 100644 > --- a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c > +++ b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c [...] > @@ -1766,7 +1766,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; Wait! You apparently hadn't ported back the commit 6c11dc060427e07ca144eacaccd696106b361b06. Please either do that or drop this patch. [...] MBR, Sergey