Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1375440pxv; Sat, 10 Jul 2021 02:22:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb7N0UvCYqerRcF7KgoDxXwVQLpypc69gtgHaZX53PAM93lXTB/F+IXPNVYdVay+ufrSH+ X-Received: by 2002:a17:906:150c:: with SMTP id b12mr42823677ejd.275.1625908928633; Sat, 10 Jul 2021 02:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625908928; cv=none; d=google.com; s=arc-20160816; b=gyaXtj0T8jIDKDWkJqtkjW5vlESaPlyQ6sXoqXiFe4CE+BT6b+1u8rXE94JO2OWVqY jtX8u8spOxksVrFgkf6DGGT0eBm04xTycZP8k2sQQPe7aJW0f1ar3X9qu6xlyqb2FcYu WEeojIKgzQKtbi9EyfLuC3e4FLJ378oqiPY7WWu5tyCAu3mFdoaIyAfcbph0UucozfqC JZOg/z2sKArQG6nxkbrcKUh3kGLgIjJ/0788BGP78BXACNiD5hpn6rpYqrqDltf/o+gn GNUKdlCx0YIuoZLAWU066oXIrlBmbFytVysZHxvR+HFWxrhG2LBc6dUe8GkQySy58ien lyPg== 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=uI3l7+i2VRR7eLrOLH8xsJTGxIT8jLo5UIZfriX8FbM=; b=ssyxsZOd8nx8xiGZV43UmMUYDVw4bDTk39KUqBBWOX43wAc5TlrrecCHj5MPpfV83T HLjSJ6/CHRJtOWcyEIAC7o8WtvEMAsOan+j86+67LcF9rNnIiGE6o+OJivAq50YhlnDO iDKGKt1NGiThOGmNFCDvRpbRnoLW1aXxSwlBMRC2NVxw3Sqtjgj/poTTKh0u/dXgA/11 oeMBrdrV073fi9A6abKrTommBDk4D24Lo2Tkl6JuO2CTU0WQZUDIa3gcK/F1t9u/SNro BmIydqO/Thduz5xOqkWF2EZwhHI3MEVX+EzGcsOhCJvJTwAY9HX6bOcAki4mEwFBXuPB Vwog== 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 b7si5020150edd.497.2021.07.10.02.21.44; Sat, 10 Jul 2021 02:22:08 -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 S232261AbhGJJXc (ORCPT + 99 others); Sat, 10 Jul 2021 05:23:32 -0400 Received: from mxout04.lancloud.ru ([45.84.86.114]:54206 "EHLO mxout04.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231877AbhGJJXb (ORCPT ); Sat, 10 Jul 2021 05:23:31 -0400 X-Greylist: delayed 353 seconds by postgrey-1.27 at vger.kernel.org; Sat, 10 Jul 2021 05:23:30 EDT Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout04.lancloud.ru 2035420ABA32 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> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <3e2af821-00e3-6db9-5820-696fdbe003d6@omp.ru> Date: Sat, 10 Jul 2021 12:20:43 +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: <20210710023204.3171428-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: 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 On 10.07.2021 5:31, 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 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... [...] MBR, Sergei