Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2809398pxv; Sun, 18 Jul 2021 02:15:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhWHuRW/PJJFS4SlwVCOoCQx5LaqijnF//MBTkn4X94OT4adCEAm6o3Zut/k00PgZ8/ko5 X-Received: by 2002:a05:6e02:dcd:: with SMTP id l13mr12905227ilj.300.1626599752645; Sun, 18 Jul 2021 02:15:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626599752; cv=none; d=google.com; s=arc-20160816; b=wvSKGSm1EyWka43PQ2m58dbjoqlrBDq+leyTSpuO4XQ/ucbwng0lOvp3EovkGWzs2P bYWsYXkBQ8VssTz65uMYxQMpPBCuwT+aC/lUraT40geFzHFU7phEdFT1VD+ZTVkaFO+X IEz1JQ9zCZmI3cTz0102AX29fM4HTahlMhiUeusSkFjYzNjVUxFrmcbPK6IV0KND6s8z V52rYv1EjebxE6bozvLUsyQuEuKEzf7Auw2he532WbqTa0kpiEXyoJWNOY4ii/8icwym YdDeq/aJWMxCsZIhZ22gCyDaac2lmK767SIZSwmnMkCSC0WYdXbwBtfyWcuM1ECpwFqi pazA== 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=+n6vTR6vEb5q4GnaBxtd9sAyerVw/Z+LpE6XJYOpuCk=; b=aD+gOKA0pQOYXRUHHcyhIU1Cmq4M/J+AevVgZCjgSOxst21lgv5IQLhqxV6x8I2b+6 BEOFMiTJWKASZV07T5lZvpv4zQH2Ndr4AedDWoVLKofmWJ0v5Vmt9XiKbZcUWdK9dGSX BcHnwVC4scDMV2UJP6KJhcREBeaI2YMgLNTBwKDf4KXqcKld2Uwbex7+xGYHj50utrO0 RkjWfvLo8D8Ohk5ILlsU2JBsE8N0wmI9ktVJuRx7F0MPmdTAoBgb/vfoOkkdtbWCOCFD yTy56s0ZPseXyU/OfcaEiri0M+3xIVKpaHQdaZsPHwbRCdNplVlTkWbYzqy2etLD+Hux wWBA== 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 i1si16299234ils.142.2021.07.18.02.15.40; Sun, 18 Jul 2021 02:15:52 -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 S230457AbhGRJRH (ORCPT + 99 others); Sun, 18 Jul 2021 05:17:07 -0400 Received: from mxout02.lancloud.ru ([45.84.86.82]:35632 "EHLO mxout02.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbhGRJRH (ORCPT ); Sun, 18 Jul 2021 05:17:07 -0400 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout02.lancloud.ru B137E2327E2A Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH AUTOSEL 4.19 05/39] scsi: hisi_sas: Propagate errors in interrupt_init_v1_hw() To: Sasha Levin CC: , , John Garry , "Martin K . Petersen" , References: <20210710023204.3171428-1-sashal@kernel.org> <20210710023204.3171428-5-sashal@kernel.org> <3e2af821-00e3-6db9-5820-696fdbe003d6@omp.ru> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <24e2041e-8dab-dabf-2b74-5573e25ead6d@omp.ru> Date: Sun, 18 Jul 2021 12:13:45 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 18.07.2021 4:20, Sasha Levin wrote: [...] >>> [ 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 >> [...] >>> @@ -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; >> >>   This patch is borked too, we don't want to return 0 here... > > Looks like it's broken on <=4.19, I'll drop it. Thanks! You might to want backport the below patch (before this one), the same way yoo did for 5.x-stable): https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6c11dc060427e07ca144eacaccd696106b361b06 MBR, Sergei