Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp824743lqm; Wed, 1 May 2024 17:55:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlC70PX63Jm9ogkAhm4VIK8OmXhnFZW+jWfpqTCuEfvUYT6UtWQhIgicKmQv4kX62BX97aHAPdFXuz2aKdupxUawRrQQBAbas1hiCueg== X-Google-Smtp-Source: AGHT+IF9R8vUspQuly9+QYD+Ts0DqNebSMGQnDrsqJ7gUUnVcd0owdXrBqmyfpnxd+DJYBBgS51G X-Received: by 2002:a05:622a:593:b0:43a:ccb2:e8c5 with SMTP id c19-20020a05622a059300b0043accb2e8c5mr2313311qtb.30.1714611314679; Wed, 01 May 2024 17:55:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714611314; cv=pass; d=google.com; s=arc-20160816; b=LxCP4RHQ5D5Dosikj+0VUh4xxY4eGDEMwFvH4yaVSEaizFQ4UfDgtYnc/E47d9qrpB /GhXZHNoHSASwloH6aZeOtPT1NZws4X2LMePI/M7fynFU+XXIpJORQ3Ea0sIJDTAS21t a4YdLm/ewoQWaG/+6XC3zuI4Dq0kJF2cJKBnASwLMiAz4iCmc1VfYNK1OUbxU1cZflUp bFq2oB0k1DYMaePAiFc3U10fVdKr2ifRYMQfxlcpK+XVmLK/isqYkWcxWQO9cLoHW6ee p+/+BhGYIMz+CWgQWQksn/0ZuQ0ZvD3uvQpbTCxB5Ndy4ag5zH+emeO41m7W/UqAD3V5 n0Qw== 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=slKATlwGCBcVdkruXcVCaTMiYfDQnAUDa7nVTOjIKkM=; fh=I+DwHGP6wC1zV0HyLLiA4Da5hIzEC5v2F36SEulyCPc=; b=GuOVRKpvJO2AEfQ1GMUM5M/nvWt8QSBl4hs/MylhJsFvVw5fRtjkR4Y16aPPvOAZSn AY8XeUjQgKINh90N3AmFd41A8g8/QcunKiDX/fKVX2brgfMAHnz8qvY6gkj7XBok9Rp2 XvXbXYCPzof4EufKIR7iqJmtMiUTl9EgSXtbRZslUNh0N9fxzl8AcFJyYq9vMTmW2B9K dV0fCE0nFPazQZFaF9udmBd9qJb/DNLXAV/p+9kYF4c7t/RdTguZxFp+y8ykSma4VBQ8 s1cg8XzLuLdmacq2b+JC298OP2b501nwXkF7rA7bOtEPl5qDEbsrkuxNRMqZRakHTbJy B8tA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tugMIuPB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165888-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ge20-20020a05622a5c9400b0043af202cf08si7840542qtb.313.2024.05.01.17.55.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 17:55:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tugMIuPB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-165888-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165888-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4E0EA1C2152D for ; Thu, 2 May 2024 00:55:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C78A512B77; Thu, 2 May 2024 00:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tugMIuPB" 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 EF94E611E; Thu, 2 May 2024 00:55:05 +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=1714611306; cv=none; b=HYpPWT8Qo+JsMaGEBmLEIiwXwk3O+3m0OahWZvGYlMVDxLuDdUlg9y2vhAEbstMOT5TpnUU73Feb/I9smzDDppIUvjdNN6CbdzuItnHPYWNo7J/txJ7wwXc9aJyhrEXGWXf1JlzNXfsHryCJC9B9Ba3Sv10OSykgDv/JI+yr+s0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714611306; c=relaxed/simple; bh=GklK4yTgkFlnxlWT//xyWXtmzZrzJQjUd2bgLzM+u8g=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=HCFVSL6qzLL/Pq1DQ9272j90wcQLUmUW7n9lW/pt48OsTly/+RgpKHArbaGezOC1jKWxvCpcpJ0EdMxMbmbxD2ZEITS+jlNtIfO3bHCTzNNFMuNE3TifrNbkAk2UelcnFmJFalhMd4fO6MUMrrSls7q7IPZMH5u2f3jXzv+WUNY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tugMIuPB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 653A6C072AA; Thu, 2 May 2024 00:55:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714611305; bh=GklK4yTgkFlnxlWT//xyWXtmzZrzJQjUd2bgLzM+u8g=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=tugMIuPBuBNFKchBKTJkl+6kQxDpq/5EoyZ/9DcLD0bCf1jY3bsQ55f1ytujiXqo5 bBXtgGyj4V9XfYrsSw2c+vr3nl1wt5vxj0cYozDn5C+f6XN4kWp0rlcSNvwCVEsmW7 Nf9AtmpXcjXi+ogdEF0+We+55XNIQhWMpfgXUiWkSr3kBwzy99GoneDnnkakFzFZEL DW0OL9mMNllJpgmn8Mh2z2pkkxUjHllWN4fI4U/hcNQ35F+6kqYCtUL+45nzKoFgDk Z+GmYauYQbavOTi6naEDDkF4CjGc4ofANoQVmNyT/9M6vXuF354xr0wmst92/gvu0i GRNRoVhjF/Dtw== Message-ID: <0d26a80d9b595954aabd8f6c6e18c710.sboyd@kernel.org> 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: <53c31752-c8a2-4098-837e-2f84f03c8748@moroto.mountain> References: <53c31752-c8a2-4098-837e-2f84f03c8748@moroto.mountain> Subject: Re: [PATCH] spmi: pmic-arb: Fix of_irq_get_byname() error checking From: Stephen Boyd Cc: Neil Armstrong , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org To: Abel Vesa , Dan Carpenter Date: Wed, 01 May 2024 17:55:03 -0700 User-Agent: alot/0.10 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 instead= of arbiter") Sadly this isn't stable because I just send patches over email. > Signed-off-by: Dan Carpenter > --- Applied to spmi-next