Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp876795lqd; Wed, 24 Apr 2024 22:08:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbv6+hPD/cDGOT/2hJ2lVSHfE7Jm8dMkwbzl/ZHXovWUrYZbcjn5zNjCvDutrYDq8V59Khvqi6SkUm1WNPPngh6obk/rBteyRuK/aikg== X-Google-Smtp-Source: AGHT+IECCRyq+f3w3mp/8s+2f465ADGhWouk9/1n0rafyfBij+N1u2pliI5XE8mf8RwN1YXO7+dp X-Received: by 2002:a17:906:2709:b0:a46:8daa:436f with SMTP id z9-20020a170906270900b00a468daa436fmr2636214ejc.69.1714021727338; Wed, 24 Apr 2024 22:08:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714021727; cv=pass; d=google.com; s=arc-20160816; b=pN1+0vpHoIz3NIzy3vdoWjTiLemLh1KGYIwy8VeEoOUkBhjW2Zg6D0wBd6agMYpjjv EPf+4hnOA0wIp6sPfkyzbPNYnJjxsDvUNwDLoJEBWC+7NomSck/vL5sGuQa6FTXbx5kN 61wcYH6DeBrsSGlocXp5IU80SPnCcB+a/4QpmmSLf0W2ZYt/PQRcgauRV9EnLp93rH0X DI7f2IzBE4FY03sLbVdxFyvgiJEG5I+Dml/CTeUFfOYWHcNh6XPJTC85bPEmAYeKxM9g 1OPh0z4bvH5Ry27K/eiSAOmYo2kKRRd58v0fYifa4w7FnQUzHlebe2F8VwXlEQTsS03G L0kQ== 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=qrmw5y3+0dGAzUFADTeqpuhqYtgOQVDO3UIxdvuDfY8=; fh=heFsUUj38dFXUKob4M0PYQUg3bXAx1cDMg49Rxm2WmA=; b=AccUvVjVUnEPDGIZyobExgkAZ/j7cHxz2lhpjhDmto/VkGzNokrUMq2C5+kmGacp6l JyFHT2fdPXq6vRpcFU9Q4HQUw91KielD9wRz2trTI6Vpy3x6jzSyYSDE/76+d+pN3JGK 8qVYRW4b29LFoxb/9/oJVt10OftN2VEiu1Liegk5QoQLlnKUqlADllgJhRLOAdLbd6Ly LQ0ZlxkAG8jReKrJ0+MTXOt81Po4rcpMa0mcU8zvyatUf9nG6wBUvOI7ihZc6edUCc1U 9EY1x6wjhV8j273KcwHhtbSgCJHQsSS3g/qIK2R5Z+3UHaZ6baddps8jTBhB8zR6TBu+ g5nw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=otpfreBf; 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-158012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158012-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n5-20020a1709061d0500b00a5888668d24si2287365ejh.448.2024.04.24.22.08.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 22:08:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=otpfreBf; 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-158012-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158012-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1224C1F22CFA for ; Thu, 25 Apr 2024 05:08:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE4573AC0C; Thu, 25 Apr 2024 05:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="otpfreBf" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 773D92C1A0 for ; Thu, 25 Apr 2024 05:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714021714; cv=none; b=OHr5dNiXgbFqmvDSxVtLZ6Vqg3GyT2cCOybQYNHa8b9LoR1rjAwwX4bZeN/z6Wqxi2P/DOP7djZH+eQ01+Bh/WF1+TEM+injjafgeZx0c/uklKcJ1NJi1gKU3MD4cO/XXqGheH5i1D9798wHmJPO/UkQAjOC2B3NzhDYRQ4Xaq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714021714; c=relaxed/simple; bh=N4Ty+El9tAcjw3QBXTN044KOd3tT2Ym9s58oTkqWx9s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JO3Gg2x9+MCFYCAN90o6e413siRp5VNmJ5N4eFt7o3Dxg0bItigdSC3m2bmjZssYJwV1F5wpZTYy/dNOOitgoRH0mmHBqsNMIw5aI06dNM65mcGa0MZ72N3fIpyXI7HUVT4fVXfeJyP6oXvgW9RSoQJCEDKyMdFEdAbsVaU+RcQ= 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=otpfreBf; arc=none smtp.client-ip=209.85.214.173 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-pl1-f173.google.com with SMTP id d9443c01a7336-1e2bbc2048eso4978265ad.3 for ; Wed, 24 Apr 2024 22:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714021711; x=1714626511; 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=qrmw5y3+0dGAzUFADTeqpuhqYtgOQVDO3UIxdvuDfY8=; b=otpfreBf0w1nb2icaPBDebv3Ur0n/ujJLJXh4Ssq3Rxdnky44X4rra0r6vKU+Vxx5I PoAAk30oB8tmLw9LRO5HupzJEIeCvP88ZpVlYr4Y9LtY4si0aBikZXuCBbcG2H2PKpld j8hg/XUbkaXhgoe9X15jPaY6y9MERgP+Q2fQ0vRbBqPw9CgpujHk8uEc9kwArQXq1SOb BfU4gx0h3gcLN72BOCCMrKFLLvgXt6YPt8a2wVNjga+SD/qbfCoLIE+Bpk9RHJrUEW77 bO3cEjkeyd4QYWOIvI30MO9EMVNu6s5qkR1nNNeqMOxqZ/dmpKb/LEskc42uAXxGHCpL NjSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714021711; x=1714626511; 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=qrmw5y3+0dGAzUFADTeqpuhqYtgOQVDO3UIxdvuDfY8=; b=MYCALOQ3PLLnSZwOrfw+TMYmxVSmWmKgT2rvLtNgUdtaWsAnjhogPX9y+mM+aJWgrQ pqTO8+dwq+faMEmvLWwWzBafquWLiSFCbVk+kOnZRLeJ33nt/RFRdYjmqTNASgMracyp mQAN2Fyw5Szqo/bavAeQv4nHtkEyJyf6vihnSaoQ4kW4a3ptxlIUqpY231UhL0KlIV0/ rZr8++/aw7KkURxBXvSlXDxXwSmi0PPxvV/J1HRoRr716YMVVRqfL4Q9yhAfRcvvP8XR 7vXebmwZ+WB81g1E0wXCcCdJuNMLgFzjKWL4+QPoTD3BMYUiUjJft/Ow27c9DRFM+KoU 8hHQ== X-Forwarded-Encrypted: i=1; AJvYcCUPCRTS3dwXhXGv0lsqlhJMMemBz6YhIBqBst54Bh+MmAub2e9Jd7GdZIMdQkU1XYxADn2zUEhzcJlzS3ZRfJJDwcM2Db2VTWd+/YnK X-Gm-Message-State: AOJu0YzXuI3H2kguFXWar5z7vt+jwmjd3Zzzf1nI2+t+35C+FIDIsXz2 3EJCc5LidetqMBtvvqM9lFHCTKs7SFmN4mSB6DXzlNUADQJ5JO5+NJ90gn3blYY= X-Received: by 2002:a17:903:41cf:b0:1e3:e1e8:bb5 with SMTP id u15-20020a17090341cf00b001e3e1e80bb5mr6077593ple.28.1714021710657; Wed, 24 Apr 2024 22:08:30 -0700 (PDT) Received: from localhost ([122.172.87.52]) by smtp.gmail.com with ESMTPSA id y17-20020a17090322d100b001e5572a99c3sm12756023plg.207.2024.04.24.22.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 22:08:30 -0700 (PDT) Date: Thu, 25 Apr 2024 10:38:28 +0530 From: Viresh Kumar To: Dan Carpenter Cc: Andre Przywara , Yangtao Li , "Rafael J. Wysocki" , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] cpufreq: sun50i: fix error returns in dt_has_supported_hw() Message-ID: <20240425050828.iqs7cjslxvb2fzn5@vireshk-i7> References: <9bfe5703-b39b-4d98-9995-f6a7d0ea558d@moroto.mountain> 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: <9bfe5703-b39b-4d98-9995-f6a7d0ea558d@moroto.mountain> On 24-04-24, 14:40, Dan Carpenter wrote: > The dt_has_supported_hw() function returns type bool. That means these > negative error codes are cast to true but the function should return > false instead. > > Fixes: fa5aec9561cf ("cpufreq: sun50i: Add support for opp_supported_hw") > Signed-off-by: Dan Carpenter > --- > drivers/cpufreq/sun50i-cpufreq-nvmem.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied. Thanks. -- viresh