Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp548227rwb; Sun, 6 Nov 2022 09:43:18 -0800 (PST) X-Google-Smtp-Source: AMsMyM4fnBi9eE001HXZJlnWSjdBfWWIXeVgDwTDpxeNRASDOBT+SlmxG0cdY9k4pQCGudxkWgvU X-Received: by 2002:a17:906:8456:b0:7ad:f5b9:9e95 with SMTP id e22-20020a170906845600b007adf5b99e95mr27629427ejy.149.1667756598011; Sun, 06 Nov 2022 09:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667756598; cv=none; d=google.com; s=arc-20160816; b=Ar1uBZ2ik1Zcz0Wt+lcXBjNKnwpZyejJrY9BTCZx3tbUxXmwbHVlABf+bnXF3m3dlD CPAdGyDptvyJGCUAQTS3aAU3/v+o+1kMuY7vBV7Zm+xoG2MHmmxgto2mqeqWebscvJBO YKgyv6uj3eXpuDn9zeOINQoewhKiCWiexXMZT2gafFHbGHTx5gmvgtETA9KGoyXmdI9Q 2s+Dv6g9Fc+YNenFG0UfgaOHHBjNx4RQxQOCThPkAObUBbMJqjlbFu3Hj5MIyW/14Q75 aTpeMpi4k1NP0wpKcoyETf+lEVNybFLPFhIjytM1cxXbizDtxs0DKItUcMVFDu3vESAz +3Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:mime-version:date :message-id:dkim-signature; bh=OccA8rWskEjO8SKrGg5kJEkiqge1IiOm2jciYGaQByI=; b=iblSNFKNt2KMstpSyo681mPKebOhW80USNjkv1y6+aoXCiYbehhJ5+WK8di091SlJX zpG/4Ssk/Sb/lvaRiC8MrsNbRwVIq8a1NVL52nj7MhKBowgzljMBbld5o+aOX/BvGHIm pPXK5SF2qv00+0umcFsuvnHVKiLBPo1LHcTLggCS7G2rlg2klNp/lUDD7BrTHXJ31FRL Ko53EGeG5O2gLE3pwabej3fJw3KtA76KBs0KlhDr4jDXjQFlJ9QpxZluYvSDQ+7S9zMT kCNIKXYsLwrIoZ/vWObSBmipCm95EucW+aPydi4hC/yFOZ9JmpEi0BNUKCL4VZFNzBtS frqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sylv.io header.s=MBO0001 header.b=YvMtjwM1; 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 y5-20020a50eb05000000b00458d5d907c6si6130190edp.514.2022.11.06.09.42.54; Sun, 06 Nov 2022 09:43:17 -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=YvMtjwM1; 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 S229974AbiKFQc2 (ORCPT + 96 others); Sun, 6 Nov 2022 11:32:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbiKFQc1 (ORCPT ); Sun, 6 Nov 2022 11:32:27 -0500 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9B6EA1B0; Sun, 6 Nov 2022 08:32:24 -0800 (PST) Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (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-101.mailbox.org (Postfix) with ESMTPS id 4N50JK4fNRz9scS; Sun, 6 Nov 2022 17:32:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sylv.io; s=MBO0001; t=1667752337; 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=OccA8rWskEjO8SKrGg5kJEkiqge1IiOm2jciYGaQByI=; b=YvMtjwM1f2FABAvFqs0+IxAliPfdS7ub4rJi4nibuTBFtcMT3FTy73ArCyCvci+NMm9jEM 3VFyvCcBLfIMcxgENeFFCZShMv79iYRhKAJWNElNSHgDQAyK9VseBHdx3Xw6/v2I36Mn8o oegPV8rVOygrJw7m0K7JRFvi2hAjG2uep2EYMkClYVJScqiDrB26WqXYBHFZpxy4t3htb+ OZW/GMCILISFi/pjzFutEWlW/wIGdw85dOki5Jp/pU2wQZqbMF7Tbeddy2k/7wSzC2OGBQ 8Bw2DVtR2b7S/FmgphvcYK+kjOdnAkd3zZKwioikjDz5+O9yqmd87zdOnYsjFQ== Message-ID: <84838ebd-f2da-9249-02fc-b959faa64c76@sylv.io> Date: Sun, 6 Nov 2022 17:32:15 +0100 MIME-Version: 1.0 Subject: Re: [PATCH] Revert "hwmon: (pmbus) Add regulator supply into macro" To: Guenter Roeck , linux-hwmon@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Zev Weiss , naresh.solanki@9elements.com References: <20221104234622.2444747-1-linux@roeck-us.net> Content-Language: en-US From: Marcello Sylverster Bauer In-Reply-To: <20221104234622.2444747-1-linux@roeck-us.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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,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 11/5/22 00:46, Guenter Roeck wrote: > This reverts commit 54cc3dbfc10dc3db7cb1cf49aee4477a8398fbde. > > Zev Weiss reports that the reverted patch may cause a regulator > undercount. Here is his report: > > ... having regulator-dummy set as a supply on my PMBus regulators > (instead of having them as their own top-level regulators without > an upstream supply) leads to enable-count underflow errors when > disabling them: > > # echo 0 > /sys/bus/platform/devices/efuse01/state > [ 906.094477] regulator-dummy: Underflow of regulator enable count > [ 906.100563] Failed to disable vout: -EINVAL > [ 136.992676] reg-userspace-consumer efuse01: Failed to configure state: -22 > > Zev reports that reverting the patch fixes the problem. So let's do that > for now. > > Fixes: 54cc3dbfc10d ("hwmon: (pmbus) Add regulator supply into macro") > Cc: Marcello Sylvester Bauer > Reported-by: Zev Weiss > Signed-off-by: Guenter Roeck Acked-by: Marcello Sylvester Bauer > --- > drivers/hwmon/pmbus/pmbus.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h > index 7daaf0caf4d3..10fb17879f8e 100644 > --- a/drivers/hwmon/pmbus/pmbus.h > +++ b/drivers/hwmon/pmbus/pmbus.h > @@ -467,7 +467,6 @@ extern const struct regulator_ops pmbus_regulator_ops; > #define PMBUS_REGULATOR_STEP(_name, _id, _voltages, _step) \ > [_id] = { \ > .name = (_name # _id), \ > - .supply_name = "vin", \ > .id = (_id), \ > .of_match = of_match_ptr(_name # _id), \ > .regulators_node = of_match_ptr("regulators"), \