Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1490217rwi; Thu, 3 Nov 2022 06:02:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5iFFsPZT0PrJsFqJtUloxhkx/HixOPoZz+xeSBWkyz/Ld59nqwii0H9y6BiMExZNC5p27f X-Received: by 2002:a05:6402:5:b0:463:39ab:c1da with SMTP id d5-20020a056402000500b0046339abc1damr23992565edu.166.1667480547019; Thu, 03 Nov 2022 06:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667480547; cv=none; d=google.com; s=arc-20160816; b=i1mYTUwjfyOsMMt9qXXQpbU5n83Z7rkjDd84FsbkCKuDqD+udN6T0NJIZb2Ya1TqYW O2S08GbMkyd2NAX8V27jL8x2hqtkBwNa9LTHj179ZLb1X7rSGsIOYwvtUss6dXHBfP75 HJ3UnHufa5mSVh0+fVoYVmZ8uIbgAjbv+i6SAjNv95oiNv3eD4VuoHf68mXxeMSW3oba ohryXHDiS5K8YoSt0hYF8a4HLII6XPuKWcTdGQyrTNdZpEPm2irt4bIT5LLIWtOImQbT lBeCiyQjYSurLo3xIjhmW1zdD586vWP1cD5K2XZbRT9D6g+wS/FMkVNjYZLT4c5RfYkX naPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SoyesS99Fc4fhJQxB70DEhu+bNqWB5Z2Q4GxLzfZjGs=; b=TuNkIHpZnQdHF4+Vn1b0MgcwSfTbwsycn0TDOe7P6xXTOt+UdJBZ73dCvg/p+JUKG/ cqSLs7zDr5/999L9sBWbPhrrIr1aRdAEKR0rk0oChniDjMwsKK9UZmOKS3ugoGw3gPQq Ot4LnBRcEVjXh9p199+VvMzt8R4wRS7x8z1vEWZBV/jiMZ6PRAUQy2PuyZlP5cGPx60i 87a+AEDoyhtD0QCe2OhLu133Ft3z/ICPBnfekrPPdbYM0QOuOBB+82iv9sjZ2k3GFoVp r0Wfz8QKuCwC/kDhVGgpzUdH/KCj9lYoyFMTAroyiJxaYlduE1FnCBqfDkdCIINGMvqa xEnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q1SxqeOy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020aa7d458000000b00462f85ee700si1123292edr.65.2022.11.03.06.01.46; Thu, 03 Nov 2022 06:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q1SxqeOy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231573AbiKCMZL (ORCPT + 97 others); Thu, 3 Nov 2022 08:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231374AbiKCMZJ (ORCPT ); Thu, 3 Nov 2022 08:25:09 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD9A0A455; Thu, 3 Nov 2022 05:25:08 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id p21so1746497plr.7; Thu, 03 Nov 2022 05:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SoyesS99Fc4fhJQxB70DEhu+bNqWB5Z2Q4GxLzfZjGs=; b=Q1SxqeOy5yvsxRTe2bAwnCmnDEciefYeJVHpiPnlaE4F6A3oVUOjcxg/UDC5JyAc+x Qx+9hq0WDVmCDCVDrZbt5rc8JhJtp9+3L3hK6trXaDeNtKbE3Kc0iJ4ZXUya1tMfh4at f7fOEeB2j64UCPNfaaYY34uDtLdEnafNu4ptTI4cKTvHwQmzPl7HRaFKfTXvD8rzpBjx QhzgrWeErKhVa2XtzZ6fHrJPI6ylQJ64icdWFQC402PmbiuWk98lft8Vt3oJGW8Io04m P9ZZAb0XHIUbyaynfuYnCDfSEccXCxxSpXc22MgbY+qnQthzKGRt3CzA1Sl5OCo5eTfG CXDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SoyesS99Fc4fhJQxB70DEhu+bNqWB5Z2Q4GxLzfZjGs=; b=YIyzYUgOOELJ/WzW940lm8rey/Wame3m1GW/GAI5ZDC/8O2McUTPTmi9IvUBrk7xJ1 rmdOWl63ogv5qmSzIO8mtScTimWDpzLb9TKwtYfHepBMPGQV/Kc1IXvxjRexNMbXRAJf Cd4jJFVw9wxxIn0p9z3oqAi1JMsrFk5gSlb5AmEXfpC74NjusK4WeXDGspqulsQ17xJ/ iaRifaUV4hWIPnvL4m/6+puV5FTu+rAmL2t6OHJLfEWP4KIoGGa4YfdGmOsMKXh1wlZd ODVG6joWS8mKJrywZQcPoU5uhSHMNesS2M4Atq/JDz+HeQiFtFRlc5fgjivFBAGp8T6n V4wQ== X-Gm-Message-State: ACrzQf2UUAy07DY4bHQz1/RlLcoiaWC276xJieRsU6E2Eui45JiWW0jV cFVm6ejuWHxyQEJ5nqg1gpY= X-Received: by 2002:a17:90b:4a09:b0:213:9911:5f07 with SMTP id kk9-20020a17090b4a0900b0021399115f07mr31640342pjb.160.1667478308284; Thu, 03 Nov 2022 05:25:08 -0700 (PDT) Received: from localhost.localdomain (2403-580a-80ed--90b3-8553.ip6.aussiebb.net. [2403:580a:80ed::90b3:8553]) by smtp.gmail.com with ESMTPSA id d190-20020a6236c7000000b0056c3a0dc65fsm633526pfa.71.2022.11.03.05.25.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 05:25:07 -0700 (PDT) From: James Calligeros To: viresh.kumar@linaro.org Cc: jcalligeros99@gmail.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, nm@ti.com, rafael@kernel.org, sboyd@kernel.org, vincent.guittot@linaro.org, vireshk@kernel.org Subject: Re: [PATCH V2 5/5] OPP: decouple dt properties in opp_parse_supplies() Date: Thu, 3 Nov 2022 22:24:25 +1000 Message-Id: <3519763.iIbC2pHGDl@makoto> X-Mailer: git-send-email 2.38.1 In-Reply-To: <5acd93462bff6c108d65802fd39f6002dfadd1a0.1667473008.git.viresh.kumar@linaro.org> References: <5acd93462bff6c108d65802fd39f6002dfadd1a0.1667473008.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, 3 November 2022 9:01:08 PM AEST Viresh Kumar wrote: > @@ -674,7 +677,7 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev, > bool triplet; > > microvolt = opp_parse_microvolt(opp, dev, opp_table, &triplet); > - if (IS_ERR_OR_NULL(microvolt)) > + if (IS_ERR(microvolt)) > return PTR_ERR(microvolt); Erroring out here will still block EM registration on platforms without the opp-microvolt prop so we're back to square one, which means the patch does not do what the description says it does. It behaves almost identically to the current code. I assume this is an intentional choice given the comments in opp_parse_microvolt(), so the commit message should drop references to fixing such platforms. If this is a hard sticking point and opp_parse_supplies() must return a regulator with opp-microvolt, then I am of the opinion that the parsing of opp-microwatt should be detangled entirely from the regulator infrastructure. Otherwise for the whole series, Tested-by: James Calligeros - James