Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1443811lqm; Thu, 2 May 2024 15:24:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvelSSxykgRDmyVrAuLirCIcpRthPwz4trVjTttLBvpaqwFM8YKwAsyT7lbp/CZEfLIVV+H68oSGJ/Yq1dhF1GMjVA1WMIbRPgx9nWSg== X-Google-Smtp-Source: AGHT+IE+wanaWOPEEmZsXjgSiY6RzpB+bO1j2Cev5RiYIXdxMfXkQsFD1De7+auTCT+wSpJKbhAf X-Received: by 2002:a05:6a20:e687:b0:1af:3857:e653 with SMTP id mz7-20020a056a20e68700b001af3857e653mr1235191pzb.12.1714688683348; Thu, 02 May 2024 15:24:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714688683; cv=pass; d=google.com; s=arc-20160816; b=yXuYhd5cNwfnIlwvVE+40vp+Y8zZvZ9BgsiB/iu6A5HadIySxUIwXIA3+n6eD8bZWh TZC5Rfd9tFyJleCPB6EeHU2biaektLeo8LluOPpv0UhFqNA9tUbVTDKzdCd1K5R3zz4o jhM7SP1IUVGrT3cEDyEEiD2BTkmoptwWwVPCOjKS+4eDjH9AW9TZVEzeZwX9+rEOjEqY yuolg8cGRk21IuND/Kq9j90Zs4mogiRcJCQuMeKFAE9yssykljeut8X9VpaBqhgcQC+W M+4wRrMASaHAbN0XzvsXMhvFHfXy8esiO6vxpxJjW5GRz6CyUbOJvyr3lO3L5tK4JMhg Tpvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=6UnHVHxGt4g/kpal6iHU1JS1ImDuQUbHnBQXWyhfxt0=; fh=j0CsUbSaOMOZukK1/TzLWZ12Go+LyoTdBpG7YVY/FqU=; b=tpgKWElzgLiwC35opyWMqblR3Ks9u8XVhwm1Uhk2l+Uj782kXBpg9bu0LJrTHKxz// QMP8TLT81QF3pqUObyVRxfIq5DGGKAbUjPISQaaQfB4dlu+VbmonkmoNF5tpO8M1HvJM LV0pziSqr1CkPzShP7VlV5lupY55h1vy5ox8cAI9oWAr4G8q+Y3BmNk894ryNEesYq+6 lJtHrX+rdbdTPqD+flb8/G68DTf6KfWHo5iDWb+LAvH7Y3P2REsulunQnrNDSSljhzpe wL6XHja7b/qjNJHyFQMiQSo4ylj10FDFyqRx7J2TXngAFx0B6R03c4xvmEjXkMseAWvt m+3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uYZzqwa9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166995-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j38-20020a635966000000b005dc4f8a376asi1780630pgm.884.2024.05.02.15.24.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 15:24:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uYZzqwa9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166995-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166995-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C1BDF283087 for ; Thu, 2 May 2024 22:24:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C41CD57CB7; Thu, 2 May 2024 22:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uYZzqwa9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E88F957CA1; Thu, 2 May 2024 22:24:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714688674; cv=none; b=FBcmFjynVbRCssImzYLg/iIjac9kbGX997JS7MfeQLtm9RVAonF1uCfyD7AUzl4sYxfwPTeZjwUDsFn2PVVKamju4I3z6lmXSDEziI2C/Hqpvw5fKtpmx1Xnt/xrVORFZDzJvcUeNHURmJxqWnEgvv22svBw0Jwp3cCsuz9E0Zk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714688674; c=relaxed/simple; bh=m5C4VvNJit1RDhJf8i/dqNorHaLtupPY9uTZKx4YgMk=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=TFe4A69hjja9/V5ngbC0nXo9itjCSt9TYTXZ9isyr4fTFWl5mAsLVGu7uOkZ9XVIOV7/ybQ94mA4pQmk2lKuYlXP2roQzeBJ+MzHkEpKJDR6G6eZ17ur9rpQ93p8OO+HGxGTw9fMZ9gNJFklp+gwBBiMprrv60UTRbS1Hcza+bA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uYZzqwa9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 695BBC113CC; Thu, 2 May 2024 22:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714688673; bh=m5C4VvNJit1RDhJf8i/dqNorHaLtupPY9uTZKx4YgMk=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=uYZzqwa9Si6ERcU4prohokGVGpCgcznEp7GWeOlppK/Pq6cLNoYar7f5z/7Eji7wC ZuFbIRLT8BpVa1uQFffLCfDeHirKHm3ta7WsrjmCDWK9TEbJIsLCIp2kUkVBsn9241 uA+JuA4cAVd2yDpaENSWAxA0mIaetVR/7c9Xm5Cbe49ZfvifLYP/bU3KLeKh+UoANA 9kPSz2qAZhlYg6Wp1829y7tJOI2rw46hUbQ4ax7zH8ucADbeI+Y8LzHQ8WRnaekS6N Hb2EnjgiiswInjoZa9HOkGqHXvT/Z+NtlmyNxxdw0bss/ux1XgYfqp6ydZpNryL9Je jwQr8PP5y0qcQ== Message-ID: Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <53c31752-c8a2-4098-837e-2f84f03c8748@moroto.mountain> <0d26a80d9b595954aabd8f6c6e18c710.sboyd@kernel.org> Subject: Re: [PATCH] spmi: pmic-arb: Fix of_irq_get_byname() error checking From: Stephen Boyd Cc: Abel Vesa , Neil Armstrong , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org To: Dan Carpenter Date: Thu, 02 May 2024 15:24:31 -0700 User-Agent: alot/0.10 Quoting Dan Carpenter (2024-05-02 00:08:29) > On Wed, May 01, 2024 at 05:55:03PM -0700, Stephen Boyd wrote: > > Quoting Dan Carpenter (2024-04-24 04:42:46) > > > There are two bugs in this code: > > > 1) The "irq" variable needs to be signed for the error handling to > > > work. > > > 2) The of_irq_get_byname() also returns zero on error so change the > > > comparison from < 0 to <=3D 0. > > >=20 > > > Fixes: 932282f154ac ("spmi: pmic-arb: Register controller for bus ins= tead of arbiter") > >=20 > > Sadly this isn't stable because I just send patches over email. > >=20 >=20 > If you're going to send these as email then you should fold it into the > original commit or otherwise people will be confused. I removed the fixes tag. I will fold it in with your SoB, thanks!