Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1631729rwl; Fri, 4 Nov 2022 17:01:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4aL57YwioT6gqLr6YrGFjYYRDIcRF3Bvww3gKoom0LdztqAJOETMdB//5qVtrjOt7x9UZN X-Received: by 2002:a17:903:1251:b0:17f:7f78:e71c with SMTP id u17-20020a170903125100b0017f7f78e71cmr38285136plh.147.1667606497297; Fri, 04 Nov 2022 17:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667606497; cv=none; d=google.com; s=arc-20160816; b=tgIhOPwovinNVpPtO1FfeVj/uP4SCNaShcDnBFou2rQP6KTh+cFt2wGFFnuFc35k8e 2hP61ObU0nFXepjn6aFPWz16ECeTvF7PYaLhC4rYgC69Lq07Sf81twfnVApOdppQTXBE 8WjkN0Lu8/ImjXcUuPxKw6x2nbP4ID+MwmVJeg6IW5GaEMN5lAxlQQOktUKGI5nfu6eN H9SrLI3FdMdcDtsI7vHXqlBw4/KwLp7FPAOw8bhUbsfb6bHIdCHBVJP880uvCQVzeTc/ dMT+mg6dKOaxRLaiFh6csx4udp76lKzy65I6qVU4Kpt6TCYgzT/omJ34GFJINxvtbwHm IOXA== 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:sender:dkim-signature; bh=ArliHFRLMrUBzxNAEsi7DOHZyQivpHrE5EgeeYgXH9M=; b=AGUSjoF82bSKRVGEsW3s8Ay9R3P6MbXu2XpN4+SS1SjnU71MQC55RQlgSRDN37D1hl +yLu/uKkk4hI6ATqopllQAYLdQzxhMbe+pyBPvBaNTLyl8saNye/v+dc6RXff2HhVeIK QQ8GX5XzAKlWBlQUpBORhq4tGS73mIBnjqhoaevazOWLE2kFOq8u1jvi1G0tJ2rowaCY SWMubab/slajyCbP59As2iU+NJmvEIxsgkrvPJ3uHVO2Kb3Ty9frpT4O4GVO50dWJ0NO Jnj3Do/kyyuBhAoZUFOxAw6NqY+Pk7+9v2/fgWaW8GR2V186KdtSLiE2tGKFHTOwFwXo gmjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pQB+qY7y; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v69-20020a638948000000b00434d8692854si974335pgd.541.2022.11.04.17.01.24; Fri, 04 Nov 2022 17:01:37 -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=@gmail.com header.s=20210112 header.b=pQB+qY7y; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbiKDXm4 (ORCPT + 98 others); Fri, 4 Nov 2022 19:42:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbiKDXmy (ORCPT ); Fri, 4 Nov 2022 19:42:54 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 229863F05C; Fri, 4 Nov 2022 16:42:53 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-13b23e29e36so7147807fac.8; Fri, 04 Nov 2022 16:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=ArliHFRLMrUBzxNAEsi7DOHZyQivpHrE5EgeeYgXH9M=; b=pQB+qY7yzZ+C3zrAdAY6GzZMyoXLno/McNqMGfcwzqeEn5xoi1tnJ5ut1RQJRiZK4x FBh0KbFgRhQfm4tpo/4stYw4BVd8QAJYighxZAuxWkUjxFjxsw1EU4DbMDK0xvOOO+oi LrHiiwrmRSvJ6HA1MyEjLvZK95/Y/IXEVAv5esO1MTmyrqEq/76lgrJPgd4+lK/OdgqB 797iizC1+MjlsTzbxQYqU1nLqTk7VIxLe4x0ejJ1XvGo2lK2D7l9g2hd31GC4nmT4eMv 9an/UQUV24j7Ysk230P36NCxDxUSNRkD8Ew4zL+PxSvPmH1jjxIoTHF4O6ZLKRElBbO4 A19A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ArliHFRLMrUBzxNAEsi7DOHZyQivpHrE5EgeeYgXH9M=; b=LIMRRVrHPmPjvQncG9WDQkepkgj+jPDqeBIQUIL4fhXdpZBlEuCiWMENvCpldx0wAy d34OUHcnWXC3cA52Jg3ceg3aG9WFrza6uWFeUBttQOgV/yE2abZWfMyI1l7tYu3Kmu04 BwF2gUZkVGwMHTE5UCCX5szyoiR2QgfP5uqh+S5A1GK2rJy5m8OVD5PMxHrH9rTne1R/ Wi2gwi/ImowXB0MNvaTPXfHWd+2keKWR+j/TdKAfmcplfY4qQyZMA1kj1BSG6yRvLKMi FQc75fNuOtIwpNmH/tgVK8PCau7+rmlX7s7tE21+5g+tDJck7dsec4hwXw7jHlBQD8PT bSyA== X-Gm-Message-State: ACrzQf0WklcvrQdSIkzzCuM0wFrSCdJOUZkBxkkWvmhnjqj4UsrUTQj/ s8pVd6NXJy6Mny18UCjwraI9UrCOCZU= X-Received: by 2002:a05:6870:c185:b0:137:5188:d2d7 with SMTP id h5-20020a056870c18500b001375188d2d7mr33491084oad.296.1667605372492; Fri, 04 Nov 2022 16:42:52 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id c12-20020a056830000c00b0066c39c99ae5sm300516otp.25.2022.11.04.16.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 16:42:51 -0700 (PDT) Sender: Guenter Roeck Date: Fri, 4 Nov 2022 16:42:50 -0700 From: Guenter Roeck To: Zev Weiss Cc: Marcello Sylvester Bauer , Jean Delvare , linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Patrick Rudolph Subject: Re: [PATCH v2 1/1] hwmon: (pmbus) Add regulator supply into macro Message-ID: <20221104234250.GB2443898@roeck-us.net> References: <58f2ff7b90233fad3d7ae2e9d66d5192e2c1ac01.1645437439.git.sylv@sylv.io> <20220222165104.GA255067@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Fri, Nov 04, 2022 at 03:30:30PM -0700, Zev Weiss wrote: > On Tue, Feb 22, 2022 at 08:51:04AM PST, Guenter Roeck wrote: > > On Mon, Feb 21, 2022 at 12:09:56PM +0100, Marcello Sylvester Bauer wrote: > > > Add regulator supply into PWBUS_REGULATOR macro. This makes it optional > > > to define a vin-supply in DT. Not defining a supply will add a dummy > > > regulator supply instead and only cause the following debug output: > > > > > > ``` > > > Looking up vin-supply property in node [...] failed > > > ``` > > > > > > Signed-off-by: Marcello Sylvester Bauer > > > > Applied to hwmon-next. That should give it some time to mature, > > and we can pull or modify it if it causes any problems. > > > > Wish I'd caught this sooner, but unfortunately I've just discovered that > this does in fact cause breakage on my systems -- 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 > > A simple revert solves the problem for me, but since I'm honestly a little > unclear on the intent of the patch itself I'm not sure what a revert might > break and hence I don't know if that's necessarily the right fix. Marcello > (or others), any thoughts? Revert now, ask questions later. I'll send a patch. Guenter > > > Thanks, > Zev >