Received: by 2002:a05:622a:1442:b0:3a5:28ea:c4b9 with SMTP id v2csp730823qtx; Mon, 31 Oct 2022 12:28:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7mUUJUm8QNii1kzFv9egx+2axf2CQxF9zKUlO+Y1nfR0WrXzGIbdmAS9zo3q2ki6zMlHV1 X-Received: by 2002:a17:907:724d:b0:78d:acf4:4c57 with SMTP id ds13-20020a170907724d00b0078dacf44c57mr14290299ejc.516.1667244519027; Mon, 31 Oct 2022 12:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667244519; cv=none; d=google.com; s=arc-20160816; b=z9R4TvBTZ9p6IjmBrh2zm+4z8YR1ZMeHCRPX0TYgZj1X8jbZnP5tB4rdLgfT+4Yno2 z4Wno0UL+HUV0x7sF6bGp1olsPKg+jB+ZMRYdGcCemvxE6VcznJClgtE5xJ8LKUAPo5Q LKYHo2T8Dh6Ww8CZGLhAvfP6OgeY95tTTKtjhu2szfCxJGVnmofx3rls2TnUfKIeyRP4 Qalg6ijXh1pgK837PjW8LI+a7pkjbwDwhlxkmoYzEpCQ1TZPJJC6V/9QUbWgalWnWgpC ChgUNfj3teKNqk8ivLdhra9uOTqWPQPnuU3j5GqBOy2Z8U82gwuONHpGNfw7ADv8LA+5 8uZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=yI4VxHDcRGzkmJzt6Mtn+pBg7sqPLddFXxyeqLB99ZE=; b=eaKD48hvUwn8+Imi9UHuabb5b+OC5MVCTtiD+n/Vv1hs0Njk2GO/OaP/0ePwF4CB8q ZLCPAZNKyKojRHEdpWqsjAh01+uB8Dk+p8EVpWGXkzlwYw/uiAF34nKrl3Eaz9k/dyaM 4aW0avGT960GHH/IpHdsMZiQYDxbQmE3PbvmFWn3q7tVVGHaM9p1tc7JZsFyKSSv9FtR x6Noh22I3WXbT2A1/Pp4tImvUP3eMaXDwXHkqxKUGYFtVlYzVrV0TJOpjIm2uwO2lNI+ ySK9CkzcP48wrNFGqbKFp6G0E798ywR+0uEpn779nm79CkzmUR8MaRO2VMKT+exKox3o F0mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=gLWG6j8X; 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=bewilderbeest.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a508d58000000b0045be16903d0si7802969edt.310.2022.10.31.12.28.15; Mon, 31 Oct 2022 12:28:39 -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=@bewilderbeest.net header.s=thorn header.b=gLWG6j8X; 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=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229587AbiJaSus (ORCPT + 98 others); Mon, 31 Oct 2022 14:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiJaSuq (ORCPT ); Mon, 31 Oct 2022 14:50:46 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D57AD2E5; Mon, 31 Oct 2022 11:50:46 -0700 (PDT) Received: from hatter.bewilderbeest.net (97-113-250-99.tukw.qwest.net [97.113.250.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 6BE4B1A6; Mon, 31 Oct 2022 11:50:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1667242245; bh=yI4VxHDcRGzkmJzt6Mtn+pBg7sqPLddFXxyeqLB99ZE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gLWG6j8XI9P3wq9uVxSiD+zKUj/071FKMi6IBkvvr8Av3dFpgp4Av5G4GD/vuEFmJ TrlXBhscA3fP3xDH9qvvU3W/YPzTR7Tjt6PENNQ3waFCParDKvnWnNEm38g6DSkZcb +iHqKDcjUEWKGkxTa6nY73G0m7zLjQuk4uxvNLdk= Date: Mon, 31 Oct 2022 11:50:38 -0700 From: Zev Weiss To: Mark Brown Cc: Krzysztof Kozlowski , Rob Herring , Liam Girdwood , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Naresh Solanki , Patrick Rudolph , Laxman Dewangan , openbmc@lists.ozlabs.org Subject: Re: [PATCH 2/3] dt-bindings: regulator: Add regulator-output bindingg Message-ID: References: <20220925220319.12572-1-zev@bewilderbeest.net> <20220925220319.12572-3-zev@bewilderbeest.net> <20220929210714.GA2684335-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Mon, Oct 31, 2022 at 08:45:34AM PDT, Mark Brown wrote: >On Fri, Oct 28, 2022 at 12:44:50PM -0700, Zev Weiss wrote: >> On Fri, Oct 28, 2022 at 08:51:54AM PDT, Mark Brown wrote: > >> > We don't turn things off on reboot? We don't do anything in particular >> > on reboot... > >> Okay, perhaps not on reboot specifically, but the userspace-consumer driver >> has a regulator_bulk_disable() in its .remove function, so it would be >> triggered at least by a module unload (which is sort of why I ended up with >> the "when software relinquishes control" wording in the patch). If we're >> going to continue with the plan of using that driver for this functionality >> (which seems overall quite reasonable to me), we need a way to express that >> that must not happen on this hardware. > >Ah, that would be the test driver not intended to be used in production >then... That shouldn't be a blocker for the DT binding, and if there's >a different compatible string for this application then we can either >make the userspace consumer do something different based on that >compatible string or have a new driver which does something more >sensible and perhaps has a better userspace ABI. Either way so long as >we can tell the thing being described is a BMC output from the DT >binding I think we can leave it up to the OS to do something constructive >with that rather than trying to control the specific behaviour in the >binding. Ah, alright -- that seems like a nice (obvious in retrospect, of course) solution that should work well I think. I'll post a v2 with that approach soon. Thanks, Zev