Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1566564rwl; Fri, 4 Nov 2022 16:02:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45bnvqgcoSC3rD2P8JxxEefQzuabtXit8oVJmidsR6wlfEjyRMHISlrbICSgajT7WSR389 X-Received: by 2002:a17:90a:b00d:b0:212:f91d:88c7 with SMTP id x13-20020a17090ab00d00b00212f91d88c7mr39050392pjq.112.1667602974800; Fri, 04 Nov 2022 16:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667602974; cv=none; d=google.com; s=arc-20160816; b=sxRA43xZDpGl0vele7E1VySp0uCEZlqBsSdhkKi4ehkmVBH0cyUEc6eAl7LU05al82 RiNtrYu5niZQ/ePCE52YzTO6qXU1oBh3qcV7LWlalfeizOV0kex0ktcb2cemBfiDHgMl 21H7KAvzmt8jIEd8byabb8MyOIKe11zaA8tJq3ylCbAN7CkBPLIPmlt+bciEnNVerlGA umBfmHOqv8aSZzMt8SbXRxQVq5Zugy+MYYGOnGaBg4QQzjBFg+6+O6Z++VIMnUbIpT0p mACz0UOgCaLok/Y2KOXv2MeZwqTiIe9tifeYDwCIr9ycvqZy4z73BUvVXtCDAJ151okn itAw== 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=t9edONL7MFXhONo2kSUCFiMSRmYtcZj62ERNPZl82rA=; b=PUaHFFRZ8O84/Ny/+CTSviiJpUKnxB5e6VTVMVLzeQmAz8cjaZyRI14i6DWVGHu1Yk /Wr6+DL809dNZ2M1zJsdSnzi9/EhBY5ue9/SYGcTsANTYFCF4XpJO3rqV+Z5azmA8Msz LKjawSQPVZ59E8SXqdXyxTVWT8ONXwF4UOtpidilA+Ov59bLWsUerJpLy9FPWt/lzAPt 151S0gCJDGgf1NBGUNOx9k4+DRjbHOl64qjlmGWD6GjOgWyZ4iME8oAGZcc3LwPfadjb bckrjXePkgWtxY2z7un0seSSk1p7+f+AUTTV/jIAqcA2s5CrJIxRFMZV3CCBTLjhp//6 ornw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=LrWv5aCJ; 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 li4-20020a17090b48c400b00212d2bf21b1si925395pjb.85.2022.11.04.16.02.42; Fri, 04 Nov 2022 16:02:54 -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=LrWv5aCJ; 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 S229795AbiKDWaf (ORCPT + 97 others); Fri, 4 Nov 2022 18:30:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiKDWad (ORCPT ); Fri, 4 Nov 2022 18:30:33 -0400 Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [IPv6:2605:2700:0:5::4713:9cab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EADFD27164; Fri, 4 Nov 2022 15:30:31 -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 67E9838F; Fri, 4 Nov 2022 15:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1667601031; bh=t9edONL7MFXhONo2kSUCFiMSRmYtcZj62ERNPZl82rA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LrWv5aCJPYyfOba0TRAlDRJHcmQQQGlCDnQBQiW9SyofDfXFC2n87+EqMvXtYCewR QLy4usK4VKXt0jp0mnqQIhgrRqOAkYi/6RuulUYoogQDa9FHMa9RhHOWng2Z9BL6nL EG6hujDEibcFNbjXHdAulipQS9dy6Ul5636F6Rb4= Date: Fri, 4 Nov 2022 15:30:30 -0700 From: Zev Weiss To: Guenter Roeck 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: References: <58f2ff7b90233fad3d7ae2e9d66d5192e2c1ac01.1645437439.git.sylv@sylv.io> <20220222165104.GA255067@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220222165104.GA255067@roeck-us.net> 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 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? Thanks, Zev