Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1139843iob; Wed, 4 May 2022 15:45:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMiC0bCENzuC1A1cVrvBG0hii+vonAmOZLUAtRl+Rrw9Lwc55RV2pGd3s4DAb1GId2aRXA X-Received: by 2002:a17:907:6286:b0:6da:6e24:5e43 with SMTP id nd6-20020a170907628600b006da6e245e43mr22455592ejc.449.1651704330844; Wed, 04 May 2022 15:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651704330; cv=none; d=google.com; s=arc-20160816; b=glInT1l+ml0bLL86Tv1gDUEFrFuYZ9iGC95U40OgboREWBoyVIgHsA0SRNkIHB2qyN KbN6+bIkTDohVRCICARQpa7qSHeo1KB2pTZXSwVg+Ne2e7pIgMW9ZeqH+AVa6bVYIMoB NSUEQ+kKVbAAEKCJe/1puIpGFXjhdmYk4coWUxcNa9Bv9WAgsLNwqdvMGvhYjpT7AP80 HUU6mAoo60SjLw39ZXBWNDyssEiqT0c+XCiDzhFwMM70ITeyRmswhDdrA8y4B8UQPGT8 7dfqplNVM0NWu/gu3/gc+fFVLrxl6XRtyOu4cx722iFsdUq8TvW4MlFJh9kO5wQHbno0 sYKg== 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=k1OGqO6yttpA6KvVZQkxzts4/vCE80ZuQxCGo5hhVRE=; b=npbzOaLE3LcLkLNWjaiTLVfC5uP5Iy02ZGFen3EqtoFGIg0kUjqyXo5K3lHpqGqdte +m12szCUd0pW0/5zf/520Fkxp2/e6B1eGwOchSG0t4jAw1HzJZoZCVOpGQo72+9XAoFJ MrFdVRb2Wylg2ygsdkS6umDbZGoqEle9hMpPQFQdb+gwbAI1BZqawKpb/WYXXpr7NBAE sTc9Wuyeni+6tR3quob53uUGtUqo0O4dTkLUwQhvUVetDlhRSQbAag+SdS5A52AxlBmH e/IqN7NNjSPG36yzWN82BXDPlCOaBbdvOELqPirUbaQWRyWPV9MGRKsFvGNdwVAKRDah 0NmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=Wo4l3g3t; 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 m20-20020a1709061ed400b006e8943257bfsi190454ejj.319.2022.05.04.15.45.07; Wed, 04 May 2022 15:45:30 -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=Wo4l3g3t; 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 S1357391AbiEDUby (ORCPT + 99 others); Wed, 4 May 2022 16:31:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343665AbiEDUbw (ORCPT ); Wed, 4 May 2022 16:31:52 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 712CF4F9F0; Wed, 4 May 2022 13:28:15 -0700 (PDT) Received: from hatter.bewilderbeest.net (174-21-163-222.tukw.qwest.net [174.21.163.222]) (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 BEE94368; Wed, 4 May 2022 13:28:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1651696094; bh=k1OGqO6yttpA6KvVZQkxzts4/vCE80ZuQxCGo5hhVRE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wo4l3g3tbSfivPvsKVzN8JXIHrCdw7VQ8UTGTKDqt9D5vfiFuZJrgX4Iq/+stwnCq 0eDDymQkC/+HVsKy7fMLvzjQN3Zteirdlt+fFf4ns5C9iwmM1mJKdOmO2FFMlZUyjL 5NwgO+BtJKIBuMH4kTzRM9i61xpkjAhlErqxi2Ig= Date: Wed, 4 May 2022 13:28:11 -0700 From: Zev Weiss To: Mark Brown Cc: Liam Girdwood , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, openbmc@lists.ozlabs.org Subject: Re: [PATCH 0/6] regulator: core: Add support for external outputs Message-ID: References: <20220504065041.6718-1-zev@bewilderbeest.net> 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, 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 On Wed, May 04, 2022 at 05:56:13AM PDT, Mark Brown wrote: >On Tue, May 03, 2022 at 11:50:35PM -0700, Zev Weiss wrote: > >> The DT bindings changes (patches 1 and 2) consist of a boolean >> regulator property to mark it as supplying an external output, and a >> reg-external-output binding to act as a downstream device representing >> that output. The redundancy between the two maybe isn't entirely >> ideal, but it was the cleanest approach I've been able to come up with >> so far in terms of working with the regulator subsystem; I'm certainly >> open to suggestions for better ways of going about this. > >Nothing in the series articulates what the purpose of the redundancy is >- your description of this is a consumer, why would the regulator itself >care what's connected to it? Hi Mark, thanks for the review. To some extent that was an additional (maybe excessive) protective measure against regulators ending up userspace-controllable when they shouldn't be, since I had previously gotten the impression that there was some concern about that possibility. More functionally though, it was also basically a hack to allow the 'state' sysfs attribute's mode to get set properly in regulator_register(), before the consumer is known. Though if things are rearranged based on what you said in another message about putting the enable/disable control in a consumer driver instead of the regulator itself, it should be easy to get rid of. Thanks, Zev