Received: by 2002:a05:6358:c22:b0:b5:95e5:7f42 with SMTP id f34csp45301rwj; Wed, 24 Aug 2022 14:36:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR5X/xstapK8/ec12Sz+V8ptepw3JeSAo817J1eC3gR7jcRDXIF+v6bw6/+C5LADF5FYxZ0r X-Received: by 2002:a17:902:be12:b0:170:cc74:989b with SMTP id r18-20020a170902be1200b00170cc74989bmr704061pls.88.1661376987914; Wed, 24 Aug 2022 14:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661376987; cv=none; d=google.com; s=arc-20160816; b=zh0qXUmnsVyotCFsg29E684pz441ZAQ+I13ZHZ1HYN6YLc3uwlk19fVZOlq/+zwwlJ H2NYpKqWSGTFoIoBURKindfnwHiYmBbJsE+u1DmL7CfTLO9FD/mvi23V8MoTXIA5heyo k8Qp2GdgJAzeDZ7zorBdAV1bUvds+xIitR7H0yBpB3OWgp55sQbVv3xS0LvxW7E2auu0 JkOXaf/4pzcXu4bMptfaKfBEUG0D36MoXhPRWevuFRj9VbFWv/pAk+qOByJzDbWqwE9C S9dL/v4gbX6oCtPpg323gLXeGzWGBQoseYRsHqDPZaYdGQgnLx9GlK6YQvhCrBm5bdlz xIOQ== 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=8UmQe9mjyzQMIzAHku/CvBjci5VrIDcuQ8+b3z/8gco=; b=i4zmW31037AN9QYSX9QKVWqcEEe6i7RkdS6hRx+rSh5rRvvyu8R9/8yQCpuZzLAv75 jsAAnzRA/2O6yKoabg7CD+mzIN09/tNscg1MtFg1Uo0zu5VbX/JbcYHKryzrIfYlnnai 9Y1YOyS10ogX7v8MTLMvNCUT26WNkQ0nWX8Kpf2KVlEIzJXIB6YT+F2LHIEovbW9e5IW TGjz982ChDzWP7B/nYpVM2Ouw6ZUX2e0rvQGBieLMYm4IOAxCab8BT50YbiYHjG+5tHs 3UFwBPpEAEMAbjSOmlT4ehVK4mRyJvNloAaCKFneHK0S7SaBUGUwJ9wR/Gur0br8aZ9i i/og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=fprWR6gk; 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 u20-20020a056a00159400b0052b8da96658si19968349pfk.26.2022.08.24.14.36.14; Wed, 24 Aug 2022 14:36: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=@chromium.org header.s=google header.b=fprWR6gk; 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 S240039AbiHXVYr (ORCPT + 99 others); Wed, 24 Aug 2022 17:24:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238348AbiHXVYq (ORCPT ); Wed, 24 Aug 2022 17:24:46 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A5CB2C2 for ; Wed, 24 Aug 2022 14:24:44 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id b16so23706029edd.4 for ; Wed, 24 Aug 2022 14:24:44 -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=8UmQe9mjyzQMIzAHku/CvBjci5VrIDcuQ8+b3z/8gco=; b=fprWR6gke99VgICWutjxM3pyW/rrXtibUK7GGb45qIHnuTR4U3pqQ5NyAoun1nw+Cp 3QKuXCVIpUapFw3fH6RIgqQFBXuS+1xcCPdlOqndVtIgmLX0ApAu5jUqea8R+J84mF13 CAnz0koxe/kyuBkQUqTEd/wLRmJxCEEj6PJfg= 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=8UmQe9mjyzQMIzAHku/CvBjci5VrIDcuQ8+b3z/8gco=; b=6pHqX+Iyw+KToLCnTZBH73BhKt/kmRjUxtX3JcE07gNXyoa2PxtyhslYkwfpfF2x0i KMR7R4nUNR+WLIgTFQDH/wMqoupzpb69D9FyJq1i6SMrKK19cD8OjthiEBvlGxZ9Wyq6 F+xUtfarE934t1pe8xS+koM5QE3WRrVFw8ILN5vKC87B4ECxLBflBTwSd3vmXbr6/AeJ qnVY7ohaVgsEdXuv25BcnsqtNSmYAn9G/D3PqNGbEe9KX1saLeQ/BXmnWXppOWufoabC rDpqAf/7ztSUwg3TwVBD3Th5mwlTQZN/AI+w8sBNeGu9TpKvukRgIjDKI5uw7Xb40i1W OgbQ== X-Gm-Message-State: ACgBeo1+PWvkwyHSE+nIeJ6wU5Oz0ZZxYJA8qpaGcX43J6gUDIvZZ/CC t5pQCmug8PVL76exzzdTdwpXcia2mttYJrUY X-Received: by 2002:a05:6402:378f:b0:43a:d3f5:79f2 with SMTP id et15-20020a056402378f00b0043ad3f579f2mr730153edb.338.1661376282965; Wed, 24 Aug 2022 14:24:42 -0700 (PDT) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com. [209.85.128.53]) by smtp.gmail.com with ESMTPSA id ez5-20020a056402450500b00445bda73fbesm3653063edb.33.2022.08.24.14.24.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Aug 2022 14:24:42 -0700 (PDT) Received: by mail-wm1-f53.google.com with SMTP id n23-20020a7bc5d7000000b003a62f19b453so1616826wmk.3 for ; Wed, 24 Aug 2022 14:24:42 -0700 (PDT) X-Received: by 2002:a05:600c:5008:b0:3a6:1cd8:570d with SMTP id n8-20020a05600c500800b003a61cd8570dmr373142wmr.57.1661376282074; Wed, 24 Aug 2022 14:24:42 -0700 (PDT) MIME-Version: 1.0 References: <20220823131629.RFT.1.I137e6bef4f6d517be7b081be926059321102fd3d@changeid> <20220823221429.3bte2tgtyniur4wb@halaneylaptop> In-Reply-To: From: Doug Anderson Date: Wed, 24 Aug 2022 14:24:28 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFT PATCH] regulator: core: Require regulator drivers to check uV for get_optimum_mode() To: Mark Brown Cc: Andrew Halaney , Liam Girdwood , 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,URIBL_BLOCKED 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 3:49 PM Mark Brown wrote: > > On Tue, Aug 23, 2022 at 03:32:44PM -0700, Doug Anderson wrote: > > > I guess maybe we could add the "initial mode" as an implicitly allowed > > mode? I guess the other option is to implicitly disable > > regulator-allow-set-load if no allowed modes are listed? Both of these > > We should do the former, or equivalently just noop out of set_load() via > set_optimium_mode() if no modes are allowed. OK, v2 posted where I kept patch #1 exactly the same and added a second patch to address this case. Hopefully it works for you. -Doug