Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3986948rwa; Tue, 23 Aug 2022 14:00:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR7lkLNDd1JjYeHEtiv8IGthC6OBJn10AtU/I4vuHzACsj68GaPnA/H0/BIhBcQdWBnPy+My X-Received: by 2002:a17:907:2c4a:b0:73d:1d15:4a8f with SMTP id hf10-20020a1709072c4a00b0073d1d154a8fmr828840ejc.573.1661288437365; Tue, 23 Aug 2022 14:00:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661288437; cv=none; d=google.com; s=arc-20160816; b=qRmHG+UsjOcT5VR4xAahvUCDAAYm0hhBKoe89kuRJbFJAjhm6q6EwM2LbyPILDPv+r SP8+oxVi01msTcC91swtKs04ImR7MJE4F/L8XIBAdY2hzljjZiJaU54b0kKaK4KjUoMO h/9rbC5YzhD8ckd5/4eohIPUIxasMDAo2X07NuGeZo3vYru+hfKfpbn7+QdL2n5EqkUh hoRKYWlOQyZaA/3Dqym0Zjz2Cyt6xHHB9EDYJ1nv11eyAsqvMQoRJZ/C5DotTOSu6/nB WpDTMCG9cAVuEUCCq4O/8tSRfwuCQCTE0JQElYMpmIvnI0Vvbuygck/GL0hNeUBQbVpd QtJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=l1iBTcJ+I4g1JTfLPRirKOb7WIUh6Sd18iAIN/V+zHQ=; b=Ow5ejq2T27lhN5jiwtxJ2tLdNyot+6i2NssjWZpvE9L7eX3a76sCUR3aXZXIAu3FL+ L36kLrAs+AOIOL22i0A12VQs8ycEzkvTJCAQpElcJEmZrcTdDaOfLE0nkWSN1vWQ7R2M yqNkO47zvyKmV0GHjyvoLS5yffLw2i0bNbwjU2c9Y6EBeLNcBqeCQS22YUo9YncqrR6I 5aaHRBdY40vhIiyIb0vZi0ZMRmOc6ZBkFTOXdloCNM8tRa9b82FyKwccyDxDYr+J2o1G 7WHBgVH+P8XVFetrrtZINWa5UiXXKLt50vcZZrQ0CF76FQJ7IeHSO6Lvp9+7Y6WW1ulY okEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=c8YudHng; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a1709067c4a00b0072efc11c532si448161ejp.41.2022.08.23.14.00.10; Tue, 23 Aug 2022 14:00:37 -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=@chromium.org header.s=google header.b=c8YudHng; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230050AbiHWUhA (ORCPT + 99 others); Tue, 23 Aug 2022 16:37:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbiHWUgf (ORCPT ); Tue, 23 Aug 2022 16:36:35 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECD77265 for ; Tue, 23 Aug 2022 13:19:00 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id c39so19480072edf.0 for ; Tue, 23 Aug 2022 13:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=l1iBTcJ+I4g1JTfLPRirKOb7WIUh6Sd18iAIN/V+zHQ=; b=c8YudHngMrJ4MJ/hfh+NjYvkynkWBEcm198z3KwNDaSkrf1RxEwqATZXSwqBGDFOTT hlQPvg5TesRDlRGUuREBGEinJDUhhl1SRcCV7VC9o4AYNQB37qJ+t2nQXkBvWmX+j4No 3cW0/JEE7YEr4J5wK93gzjyGDLNaFzJp88t0Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=l1iBTcJ+I4g1JTfLPRirKOb7WIUh6Sd18iAIN/V+zHQ=; b=sId/tGp2Q0wtHoKs1QmCrnRKHtNeX6Ioyk7OhkHY/X98Zyb1Db2ODlHlgAzAP/AWdu qNqPVixHbPABFNas1QNHg/Yn5NDSHTmhLjORRyT1oiDl8/CPjobkTgXZl4mqvulPn4GK WDCelXiurQtNZM31pQ8I1B6KDwxRYsa/RYKG0Z/aiMBC1k1L7LP7ZrUdDCqEAv/gOTEC KBCiOCO5E/BOTtoLgnFQ0Be352FCs1XkI2oMUDwXi5f3OYaMM+WQuT7iLbLQvwHYvnlG jZcrStn5Zq4rimub/WIIhuyp6vGX/ee0Llm3oDIaFx8qCtmeTNoLf+Dd0mB6l2Zy1Ek+ DkCg== X-Gm-Message-State: ACgBeo0gn+LcPP2CQhcsqIq6jlmu4bkju+8BMeynrd4RXU7+Ku/AqxkO Yyeia02NI0DfLJTG9qw1dkoFPPKG8Fp13p7pn/w= X-Received: by 2002:a05:6402:4411:b0:437:b723:72 with SMTP id y17-20020a056402441100b00437b7230072mr5124189eda.38.1661285939301; Tue, 23 Aug 2022 13:18:59 -0700 (PDT) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com. [209.85.221.46]) by smtp.gmail.com with ESMTPSA id ky9-20020a170907778900b0073d64fcd8aesm232174ejc.219.2022.08.23.13.18.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Aug 2022 13:18:58 -0700 (PDT) Received: by mail-wr1-f46.google.com with SMTP id n7so18303037wrv.4 for ; Tue, 23 Aug 2022 13:18:58 -0700 (PDT) X-Received: by 2002:adf:f90d:0:b0:20c:de32:4d35 with SMTP id b13-20020adff90d000000b0020cde324d35mr14338202wrr.583.1661285938285; Tue, 23 Aug 2022 13:18:58 -0700 (PDT) MIME-Version: 1.0 References: <20220726102024.1.Icc838fe7bf0ef54a014ab2fee8af311654f5342a@changeid> <20220822193153.zn2oxljmd76awqot@halaneylaptop> In-Reply-To: From: Doug Anderson Date: Tue, 23 Aug 2022 13:18:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] regulator: qcom-rpmh: Implement get_optimum_mode(), not set_load() To: Mark Brown Cc: Andrew Halaney , Andy Gross , Bjorn Andersson , Konrad Dybcio , Liam Girdwood , linux-arm-msm , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi, On Tue, Aug 23, 2022 at 6:06 AM Mark Brown wrote: > > On Mon, Aug 22, 2022 at 01:13:55PM -0700, Doug Anderson wrote: > > > I guess at this point I'll wait for Mark to give his suggestion for > > what to do. Options I'm aware of: > > > a) ${SUBJECT} patch was written as a cleanup as per Mark's request and > > we could just revert it. > > > b) We could make it so that failures to get the input/output voltages > > doesn't count as an error when going through the get_optimum_mode() > > path. > > We could push the checks for a valid voltage down into the drivers, a > lot of things aren't particularly sensitive to the output voltage here > and are much more sensitive to the current draw. Depending on people's > attitudes to DT stability for Qualcomm platforms we could also fix the > affected DTs as well, though that doesn't stop us handling this in the > core too. OK, patch posted with this approach. ("regulator: core: Require regulator drivers to check uV for get_optimum_mode()") [1] [1] https://lore.kernel.org/r/20220823131629.RFT.1.I137e6bef4f6d517be7b081be926059321102fd3d@changeid