Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp660143pxb; Thu, 17 Feb 2022 11:51:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMlbrlMcp7RDjCN6Rqnuf6FLImWEYSuiX4EwLIcmP7HRHV8rkY6yIMGLBMalZAVSOpuEPX X-Received: by 2002:aa7:9253:0:b0:4e1:53d4:c2c6 with SMTP id 19-20020aa79253000000b004e153d4c2c6mr4405019pfp.62.1645127511687; Thu, 17 Feb 2022 11:51:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645127511; cv=none; d=google.com; s=arc-20160816; b=Kj+fJvPwq5Wz34vRzgu2AzT/YnBj2BhJ3lcrNNKHjlxbWoQMMv8X9KkmO9Xw1FyhEv aX7emSVAqvksypD+RxLlZeAMuCFKsWV0E+bF731zLJV9sl896lcUnEALegWpYrcmkcmv qMzklm98/dGtqT8tKd5RIZ1OWLdaMfihEz9qe7MD/UfnDtAG7mEwm0L9ZyrlKjRbP+SI ty1uKU8Q9YCsDomNf4WNkz93faxiwsOAXQTQr0D3LxIdDGJFWr0HixKa3Lop38qh/Wdx fbrA1pNR19zFIUuSO9z8WxWUWcHub6ZyR4cZgsvDk/M8zxdc6/7Ug8ud1a8hngXbhRsZ YgCQ== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=QH+uxp2J6kpD1HokNKgqcYwu1J2p2T1tcY6BL3c2JJI=; b=dhTOcnIDG3MnTpA3YIwllkq1lyS4XaIg1SkXS3QzoNMo4O0D9UlavQ8JQzT1kq30Mo FyP9nivwE9IDimJ3EzKT52kJNYfIXQ+AfmUqXs63W7X0m6U51UAX1ZdsCUUGQ7bEeiZr ixXGoU6bIm7cK3C8VqfxJiW71nFWkIFHA6zoevovK7312kiQIKhR0q14R40Bgpzw5WJj A64le6qSCaC4WF2TbvNVvvfkojVtIL/gay3WclYl6FYBjgjxTrYR6/LreqmvY4exg8eb MK3HP8Hnn0u14uOVGEVbCuQGwW5uFp1FZNhKeKURWLPIcoiNzC/jmOQcJy0O5HzbS/rb y1Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sylv.io header.s=MBO0001 header.b=tWMx6Moa; 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=sylv.io Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x8si1592747pjq.137.2022.02.17.11.51.35; Thu, 17 Feb 2022 11:51:51 -0800 (PST) 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=@sylv.io header.s=MBO0001 header.b=tWMx6Moa; 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=sylv.io Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243814AbiBQRlM (ORCPT + 99 others); Thu, 17 Feb 2022 12:41:12 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243813AbiBQRlL (ORCPT ); Thu, 17 Feb 2022 12:41:11 -0500 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AF402B3ACC; Thu, 17 Feb 2022 09:40:56 -0800 (PST) Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4K02DQ0K4Wz9sWF; Thu, 17 Feb 2022 18:40:54 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sylv.io; s=MBO0001; t=1645119651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QH+uxp2J6kpD1HokNKgqcYwu1J2p2T1tcY6BL3c2JJI=; b=tWMx6MoaUZD0xNqqttpCvHypOW3bPemVIgFcEg9b+EF1Dcu00QWebmZnU0ptkv1EVYs4X2 SPgZS4F+pEDYw6xQ7TYgyS7BIcafyGYESYfN6xKhbxeg4+nwl3ti+Qqdnj9kD3Wxyd1OIm PiE5jGDzflOumX0npgI8HmjcBvUjc3Gu9r/9uCBs5sHeD+elncay5UvO1ruEhEIpL100py 7Gp6s11xuBr2kgoeOyxshRBhydENqvvBbVKAXrrXz+m5tilWZ2nI/+D+xOs0YHSxsdmPz8 Zzg4Vj/Gen8Z6q5/K4QpnRH6fAN9pN8byy/2xKJAEidbJ8L9iYzzRBv00Zwekg== Message-ID: Subject: Re: [PATCH v1 1/1] hwmon: (pmbus) Add regulator supply into macro From: sylv To: Guenter Roeck , Jean Delvare Cc: linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Patrick Rudolph Date: Thu, 17 Feb 2022 18:40:47 +0100 In-Reply-To: <15b95695-6fbc-1916-ff39-abf13e989fc4@roeck-us.net> References: <15b95695-6fbc-1916-ff39-abf13e989fc4@roeck-us.net> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 Thu, 2022-02-17 at 09:36 -0800, Guenter Roeck wrote: > On 2/17/22 02:23, Marcello Sylvester Bauer wrote: > > Add optional regulator supply into PWBUS_REGULATOR macro. This > > makes it > > The code doesn't look optional to me. What exactly is optional ? I mean, it is optional to add a supply. It should not cause errors if you don't. I should probably reword this, too. > > > possible to define a vin-supply in DT. Not defining a supply will > > only > > cause the following debug output: > > > > ``` > > Looking up vin-supply property in node [...] failed > > ``` > > > > Signed-off-by: Marcello Sylvester Bauer > > --- > >   drivers/hwmon/pmbus/pmbus.h | 1 + > >   1 file changed, 1 insertion(+) > > > > diff --git a/drivers/hwmon/pmbus/pmbus.h > > b/drivers/hwmon/pmbus/pmbus.h > > index e0aa8aa46d8c..38f049d68d32 100644 > > --- a/drivers/hwmon/pmbus/pmbus.h > > +++ b/drivers/hwmon/pmbus/pmbus.h > > @@ -464,6 +464,7 @@ extern const struct regulator_ops > > pmbus_regulator_ops; > >   #define PMBUS_REGULATOR(_name, _id)                           \ > >         [_id] = {                                               \ > >                 .name = (_name # _id),                          \ > > +               .supply_name = "vin",                           \ > >                 .id = (_id),                                    \ > >                 .of_match = of_match_ptr(_name # _id),          \ > >                 .regulators_node = of_match_ptr("regulators"),  \ > > That seems to be quite far reaching. How does this affect / change > behavior > of existing systems which so far did not expect supply_name to be set > ? > > Guenter