Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp952734lqm; Thu, 2 May 2024 00:08:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCULFSCd80tJ28u3payAXBjWNFh45laycyt9017M5qwH1l96Bv3at4LutUTYmKJD+DF7NpF49tG2txFQLuXXtb6MsxT+shdZRP2FENBhfA== X-Google-Smtp-Source: AGHT+IGH3v0O4q5MCyJJ9/7Cr27SewgvMhzVPLt3fn24fbrmddewvgVd1OZ/Y0T9M+rc9snu7t4F X-Received: by 2002:a17:90a:b82:b0:2ac:fd66:52f9 with SMTP id 2-20020a17090a0b8200b002acfd6652f9mr4723333pjr.27.1714633738003; Thu, 02 May 2024 00:08:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714633737; cv=pass; d=google.com; s=arc-20160816; b=oyV0bMZIF/Wwu62uXI6w1vtmaWOvixHaXU8yQAOZ3QdNoVp0toa4pJ5/JVpSFSS+GI vJkbpEwx0Co/LRjw9vRYkT6m2WAGzcmA/aom5/hAIl7wsnPqaUPzAI1SWRJTLlBS0vSs n0XrBVI7p/U+P6fhGQW4hyCFsDlcgOIX/rHA2Cb4EUKb4sdBnD9zHJ1uL7auJrDeJfsy uTtgijm1fhd5Zdl73IA0t0GtkdmCPZGBSzstZ4IN9iHg7cjF3wJEUg+LWb0XmfXsfNXV 90aoZh0LWMj0tkLOztlRQmjz+j2X/grbNn0dJ0CNiD1SjPj7foDfKYv8ykxyYuFA5POS t24Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GcpO4YIhi4cMr/3aRrZ2Ono6fZHeRtd6mWwLqXNR7eI=; fh=KaXRxSKd6YOj/2a06Slj8cXTvWk1hr/xjvH+k0/of40=; b=Q2fSq2E1VB3GPrkFqIxZ7ZyhtX+RvgNy/55yMr+R5cMhLZlBCT3viKOO9AJ3Zgo07w F43UJZK3AAQtaC/9nz8YfC9BQIRjCjQd4F6SPq4w0QEujqDyu4m76NQvJWy31axBe8tf gQjolNoPQGLCt14rTzptSjC8kyxGb1DX7LcrkWu29fA77if8HaZOI2vRJsHTyWPl6U96 wPUxt+UuY8hArV+iQ/JQDH2C9+Tl60veIoldMHluXiaKPQpvpJg/A70NIDaTc/dSJW2l VZksH6VBRqX/ak52HoJRD0TZFHRqwURYWq3aJrAdzk8SYBtQ12bC0P6nU7mpgLiBrXD8 o0Tg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X0q9sNLd; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-166038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z11-20020a170903018b00b001eb57a953edsi477110plg.40.2024.05.02.00.08.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 00:08:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X0q9sNLd; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-166038-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166038-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1CD50B2119F for ; Thu, 2 May 2024 07:08:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1036224EF; Thu, 2 May 2024 07:08:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="X0q9sNLd" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 637F02032D for ; Thu, 2 May 2024 07:08:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714633718; cv=none; b=YqgXbSIqCE6VWg4Kyc5i79mdQiYt+vw0FZb1U2Bs3RvIVV/ng13R3cSyqsRQqeU910wtnH6QGKLMsoPir95lRZ2k77d2GXL2HJ1eEu2bB0UZqnnh6iKs/WlNYVz/JRIEmbTwbPUlUgcOAS5UFd0p7Y8H4yCiyOTCv49HIh3lsJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714633718; c=relaxed/simple; bh=E/JYmqvpE2HASs6arYE5LbOOv0IH0iOwjjlIdgyafdA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fzJmIN5WFRhxWGg2rEJH7w3GLa0OX26ZAePc2EabW9F7+rAwm8QC90e0iQfuDuqqbkIGXSI5lPsl28l/z+wdT/FrNRi4y2d8NxIi8Hl3Zl5XH++PBrpWeT/IdicBL7AU82mrQaqa/uR4ZIOnothXgg93VXWNahH4h0Opn/B+w64= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=X0q9sNLd; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-51f0b6b682fso627752e87.1 for ; Thu, 02 May 2024 00:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714633714; x=1715238514; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GcpO4YIhi4cMr/3aRrZ2Ono6fZHeRtd6mWwLqXNR7eI=; b=X0q9sNLdjwTzcKAbqDVccGO00VB2KjvPN/6bo5QeBiA9bScpid2pp+F8xtWTtoM+a5 IGkCUnfvuxXln6V2reu/jBJWliy/sGDHgAqQF2E/TisJMwqjY1IDhSyY/OWfxvjNWUI7 HlK+oaOKJqugMrQ6+hdBxV5U3kZd2IT90vwrzERSJcI3R/KLL5vQxd49nEH5+zUZqCgN ohaSdCncegxI2hSDABKQbk+25CICMzm3lbOEvQHdvoqzepc9csZ/yRBSkqmnc/k2r48V x/n7MLGZMOgz5D+GPc5iiKqbzJVL84Y1pulinTHEW7RYBJGK/Io6p+oDWb5w743ZTVB8 ScTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714633714; x=1715238514; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GcpO4YIhi4cMr/3aRrZ2Ono6fZHeRtd6mWwLqXNR7eI=; b=saljCeg1UeF4e+P93E/H6lCBImkQMkH58jwxXV4K50ZQ6bq5XA6OPPTEHyRSh6n38w DcC7WMaSLvWmSl9YhlyXAuH4XJl1QSdC3GP2RdTcGbkrY3IId324N/omi+3cB3uNuy4P kY5crkA39Kddux3q6RXDhRZ+5TwrX7C8h6nqRJGGARCBIwtIbGiPvjzG9SJ5GqCSTD7d jKqKrlD5IbvsRv5ooVWi+2bVhEO6jEtHz2sL5JgbGul+InEInGLXRFN2HMXTvJNKOGI/ /xSltx3Cpuh7buwKx29r6W8mgZp0QZGU3bE2Acw7df53luGfcXAO46i0PUiajpaBqu1t wgpg== X-Forwarded-Encrypted: i=1; AJvYcCVzTuV0y8/eBAugGZvuPtN3LG4mSCKBCDeUeWuOPZv6bjY3O3jSs0Sk2iopDGMw/4rGai1xjvbQxl6HMrtNgoBk8YmsHBBkKv5r+Kaj X-Gm-Message-State: AOJu0Yz4/sAkZM+OfbFQqM+8j+MkHtqOfMj5i1GWUTOisl6sUyBo8TOc bhs/Ypt+a5uujIGwUn1Psv/K9c26GQQ4ZQcM/4xsdJ5kI3D36xenyQIn7mAxEbY= X-Received: by 2002:a05:6512:20c2:b0:515:d1a6:1b07 with SMTP id u2-20020a05651220c200b00515d1a61b07mr685682lfr.15.1714633714220; Thu, 02 May 2024 00:08:34 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id b26-20020a056512025a00b0051f026412b5sm66082lfo.141.2024.05.02.00.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 00:08:33 -0700 (PDT) Date: Thu, 2 May 2024 10:08:29 +0300 From: Dan Carpenter To: Stephen Boyd Cc: Abel Vesa , Neil Armstrong , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] spmi: pmic-arb: Fix of_irq_get_byname() error checking Message-ID: References: <53c31752-c8a2-4098-837e-2f84f03c8748@moroto.mountain> <0d26a80d9b595954aabd8f6c6e18c710.sboyd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d26a80d9b595954aabd8f6c6e18c710.sboyd@kernel.org> 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 <= 0. > > > > Fixes: 932282f154ac ("spmi: pmic-arb: Register controller for bus instead of arbiter") > > Sadly this isn't stable because I just send patches over email. > If you're going to send these as email then you should fold it into the original commit or otherwise people will be confused. > > Signed-off-by: Dan Carpenter > > --- > > Applied to spmi-next Thanks! regards, dan carpenter