Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp189937lqt; Thu, 6 Jun 2024 00:01:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVreSe3QzbRomhrZxm407+/BKQ3GR1jrfLbHWPBDE7e85oY82rq+udBv/mdsi42qnHtSqyJ+Srn0w4V6XCD6r3uEqsYnszcYkfaby/+8A== X-Google-Smtp-Source: AGHT+IGIQd4DI3UuxX2a6YohAuifZyUftugm2cwKISqyj2v3WulgI+fgapQnl9LCZh1pKCW4w90n X-Received: by 2002:a17:906:c10:b0:a62:cf3b:77ad with SMTP id a640c23a62f3a-a69a000e31fmr360648866b.49.1717657301229; Thu, 06 Jun 2024 00:01:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717657301; cv=pass; d=google.com; s=arc-20160816; b=Lao6sS71yKg6vMuzJjQoapab8HwcswJx/iy6BEsK2P9jvLWkkLRIJ9Pvm2aO68Tjip CQfyENXDYL3Xmyt0xGX88NMPVrWtm+je0+l7X1UzX7WhBUEd4aYpm/8IcsXvmroXRIzz CgB9o5qv0wrTv28Ou2bsocLw9wRkyd7mvIjSPBRcUmOccP0usuUNeCeSIKBgjk1W135U d5o3VBKo5WVC95alraypDAV/z1CsNOXZnsJrPWUhUSlvhq6q2D/ZCECLCy3LvrTei375 1eOdSnPXQA/T96u64i2WB+JVRtLxFRrlUMo2f3kLSHMly1tcG+dRK4Vgay77NsL4T95r zR4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=1N5I57/Revtp6UrX8p8blTZYOg7DzA2Hogau3tBSvvY=; fh=QpH6g6IyqBqPgUmnCdVM1468JM0sPOX69MwPrlNQxYM=; b=mkgyacVKCEW3f06qchbWB05lggT9hj9KETY0+ql2SCAQWVY6fMe333zJv+NeHGBopJ jS8pEOVAh5dC8w5UPVy3ma3ktUsSWKSD8/1Gtn6MUH4qxKFua5eslkpYIAcjO0s9/Q8v KJDifaxH3WP7JP2OHRFcrdREQzrja4bdqxiXxfT5xPpYdyIHGw0MdwUPpNnetJ4HJdtv GGwafTqQyK3bD+hBeojKkNvWNQbfLQQKewXIMIQ/+02zZJbBind+zZvSVpC4Ccmjp+4/ efiAF9IkRhJCxOxfGJ7aHh9bGj2GsbOwYpWa9qpDUIAG2PfYEkgl1XwCe2TgD5320sge yGsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=G+uhaYG7; arc=pass (i=1 spf=pass spfdomain=norik.com dkim=pass dkdomain=norik.com); spf=pass (google.com: domain of linux-kernel+bounces-203701-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203701-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c806dac81si35857066b.391.2024.06.06.00.01.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 00:01:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203701-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail header.i=@norik.com header.s=default header.b=G+uhaYG7; arc=pass (i=1 spf=pass spfdomain=norik.com dkim=pass dkdomain=norik.com); spf=pass (google.com: domain of linux-kernel+bounces-203701-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203701-linux.lists.archive=gmail.com@vger.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 am.mirrors.kernel.org (Postfix) with ESMTPS id EF74B1F246E6 for ; Thu, 6 Jun 2024 07:01:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD38213AA3E; Thu, 6 Jun 2024 07:01:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=norik.com header.i=@norik.com header.b="G+uhaYG7" Received: from cpanel.siel.si (cpanel.siel.si [46.19.9.99]) (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 12E061759F; Thu, 6 Jun 2024 07:01:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.19.9.99 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717657292; cv=none; b=h2rP8if852vVp5x08r/FtLm2Rnu+2xfRCbkN38p7JDQcPZpLtpVM+ibYa8BcfiKZhBfDn/D/Vs6EuqB4W6tPI2YaVYbgpzAnCz9hfaWqTsEC81+j5/3GoBarXfrM0BLlsyz3zU26/L7Op9STAPC9zU28tpy9KlaiveBJlYsoSus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717657292; c=relaxed/simple; bh=u2d9y4s5C/eawWNtQmjun0YrN8mP3uli7Ja1wgYHSD8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YSypGgasn8H9qWyDtvmriIHmuK8vcA3u6qsSI8JF0x6wcJHMbQKwmwXnoO5GDAP3ajLezPHRp9uSFci6BY5R3KI5/1nYGMxVV+Gd+d0f+kLiyaEoawBjpEwcy+fnegPppTAParrJv09MyHZbCaibRr+InSCcVBMks8JrtbzNSB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com; spf=pass smtp.mailfrom=norik.com; dkim=pass (2048-bit key) header.d=norik.com header.i=@norik.com header.b=G+uhaYG7; arc=none smtp.client-ip=46.19.9.99 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=norik.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=norik.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norik.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=1N5I57/Revtp6UrX8p8blTZYOg7DzA2Hogau3tBSvvY=; b=G+uhaYG7yrCCnSUOc58Vl1z72l mqrQHb/RNh6HIST9NUYkp9Mv2++m6K5lllfzvMoTcbXF29FQ8sjodHg7HYwcgSrJWCqkEQdR60fZf yiM2ebd8gJ74AB04SULfxqzI8Y2/sPmXoTlSRgbxEtZajnpqOKqr0QMuZUY9mhKIw+lIhS6fXkWwE iAhiWaPq88R0Sumrl8d54iwGYpukKwJIB4NR1bX80eIKB1HPxgjnsEZ78bGaKMKEMYSIwxAJAsRGB KCXB6J8oYRydUkje5BjcuBVf57EiFV5Azgg9quR0LNOLn8CtGT1Epa4imdED4nZjIpM07UqUUJujZ 4K2hWGsg==; Received: from [89.212.21.243] (port=54268 helo=localhost.localdomain) by cpanel.siel.si with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1sF77o-00BMJ2-2H; Thu, 06 Jun 2024 09:01:28 +0200 From: Primoz Fiser To: Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: upstream@lists.phytec.de Subject: [PATCH] OPP: ti: Fix ti_opp_supply_probe wrong return values Date: Thu, 6 Jun 2024 09:01:27 +0200 Message-Id: <20240606070127.3506240-1-primoz.fiser@norik.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel.siel.si X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - norik.com X-Get-Message-Sender-Via: cpanel.siel.si: authenticated_id: primoz.fiser@norik.com X-Authenticated-Sender: cpanel.siel.si: primoz.fiser@norik.com X-Source: X-Source-Args: X-Source-Dir: Function ti_opp_supply_probe() since commit 6baee034cb55 ("OPP: ti: Migrate to dev_pm_opp_set_config_regulators()") returns wrong values when all goes well and hence driver probing eventually fails. Fixes: 6baee034cb55 ("OPP: ti: Migrate to dev_pm_opp_set_config_regulators()") Signed-off-by: Primoz Fiser --- drivers/opp/ti-opp-supply.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c index e3b97cd1fbbf..ec0056a4bb13 100644 --- a/drivers/opp/ti-opp-supply.c +++ b/drivers/opp/ti-opp-supply.c @@ -393,10 +393,12 @@ static int ti_opp_supply_probe(struct platform_device *pdev) } ret = dev_pm_opp_set_config_regulators(cpu_dev, ti_opp_config_regulators); - if (ret < 0) + if (ret < 0) { _free_optimized_voltages(dev, &opp_data); + return ret; + } - return ret; + return 0; } static struct platform_driver ti_opp_supply_driver = { -- 2.25.1