Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4214243rwl; Mon, 10 Apr 2023 07:48:29 -0700 (PDT) X-Google-Smtp-Source: AKy350b5WqmmPqp5uwEwDBl5RoddrUDgfVeuHVsb+sRSNAaqn561h15uHH70AICGsmI3xQT0dz1g X-Received: by 2002:a17:903:234c:b0:1a1:9787:507d with SMTP id c12-20020a170903234c00b001a19787507dmr13395929plh.3.1681138109513; Mon, 10 Apr 2023 07:48:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681138109; cv=none; d=google.com; s=arc-20160816; b=Wq1HrhUv5/hAB1JlvoL13oDBC/Fnn+izDxqh80EOWbqDa2FCLK9+E28y8nAxq+wPyQ Xm+ITlhTmKv5fLXOSLMCG5erQqJBM0yiX2kANHl2IHEWDZEgK73gyKWqWmGFGePjrx5W C+d2osD+y/o3oWiBFGhp8jbnWsD/shJuBGh4ySU/2fPyDW/s22WzPPeUFq9lqqfNZ/kI q2sUcKV2ABVa7Dxn9b+jEbHG/mYZHy+MN4x+U0euzh758/wFkFG7T1weBrjjbSmQbrFC fiUXM/Rs8vIot1fWcpvdRSLJy3AkvIAKXAKlLZsxgEpw2Tpcl0eKi/4DtuK1jrGon3Ug 0KIQ== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=A31u6jRSepHToKl1ZHJ1t1wEod+/nXxHkMwASeYu3RU=; b=HYE1PPAWxR36TebujSiS9F3drwPWV6Iefn/Jzvy1HPukPc6FaMnQqs4A4pnFrNqttn XhhNmsnuJI5tD/yfhaOAFF0pTh/5UmQ+yAKUiL4A+nGSitGg2sjTXByn+6MT2emtXKVL M8BKjbE6PJ9XEacwPm6zRbuqIyCK6d/ebhV6EMI72PoeUClfAAxznxYIndkhsERBU9Xd yv/d0aWFV6Aa78Nuj1Lc+l1NWiiHilNlxfH4eKPY1Uj6Uf+rWzioIabmA1C9SxGmE562 Zz6SG+Gpb36yO5XsEIlvpIFkTyCGzh1lRw2H+F8NznMM2Sgxxexj09DyOmGEnHGWJ3KI EF1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BdufJJlP; 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 b2-20020a170902d50200b0019ec2a633f4si11666213plg.505.2023.04.10.07.48.17; Mon, 10 Apr 2023 07:48:29 -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=BdufJJlP; 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 S229748AbjDJOkm (ORCPT + 99 others); Mon, 10 Apr 2023 10:40:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjDJOkk (ORCPT ); Mon, 10 Apr 2023 10:40:40 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8437730DA; Mon, 10 Apr 2023 07:40:39 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id w11so5015944pjh.5; Mon, 10 Apr 2023 07:40:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681137639; x=1683729639; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :from:to:cc:subject:date:message-id:reply-to; bh=A31u6jRSepHToKl1ZHJ1t1wEod+/nXxHkMwASeYu3RU=; b=BdufJJlPdoAH4B+HsqoNIN+mXLqOoiFqwUgIFBVcB2aICOtIllUNyANmVmxhfuFIhu z/eOAyChh7PEpmso/t01uSqOjLVFbdX2HI8EqjY+vp/xMuN3YzkNdtwBxQTHqAY+46zU KUH2tJ19k5oYLYRaNw+vTZQVDVHu2jIHyFSOjkHH4/uwRzJOiYqJDuQEHZVIZUm2e4fM sE0rL6CS1YPpnp4Z3GxHAmMugLCG+RUWtdNWJ0lvuPka/TueYgUg24sN9AKBdX/jqJYD uTlTF+umdHbR9/1CucIJbdA+Lv/3ankEad/Ul7BqedxgWM5159+ZqCoSWX1L7IYBFY+M 52Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681137639; x=1683729639; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A31u6jRSepHToKl1ZHJ1t1wEod+/nXxHkMwASeYu3RU=; b=ae6GVrqViwP6tdd3ztiS58f9dYlFJcKyBpdviyxfhul6Q6g4LuuZplrr1de98N4R/z 6Ibvg4Iek+p4XW176bPbkt71WHbEhfCqmbrG0gD8N/EeAsF7opEJeg5wm7QehUIz6jjC FhhwVyDfT9wMva9W0466FZIWsE2mf0ofXpUO81DjEwY1wfDQsMv9EWA6RJNX1pXnWMLz Zy0mf4Ob7nNlVfAz9vGQnBKRpQ6RF3dJGDUqL+0xQIui8F3Wgz7vE4+VOr2BgvP3/mO0 +YSXNk4Xxc2QIm7W9+GKyhrR+Vawef34RxBBV9OPWPgBfOCtjVN4AsdP6O++Hh0bU3/Q eLgQ== X-Gm-Message-State: AAQBX9dYlTN+20TciWWy6Na/L+e2bo9+FxVlnh+xgRxSQQb1UevTAjvl fxyg2i7FbolF7AVVcdkUOuY= X-Received: by 2002:a17:902:e5c7:b0:1a1:7da3:ef5b with SMTP id u7-20020a170902e5c700b001a17da3ef5bmr12986261plf.7.1681137638805; Mon, 10 Apr 2023 07:40:38 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id j20-20020a170902759400b0019309be03e7sm7949646pll.66.2023.04.10.07.40.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Apr 2023 07:40:38 -0700 (PDT) Sender: Guenter Roeck Message-ID: <7c71d182-2ac5-b01e-2875-5060fb509056@roeck-us.net> Date: Mon, 10 Apr 2023 07:40:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US To: Matti Vaittinen , Mark Brown Cc: Naresh Solanki , linux-hwmon@vger.kernel.org, Jean Delvare , Patrick Rudolph , linux-kernel@vger.kernel.org, Sascha Hauer , jerome Neanne , "Mutanen, Mikko" References: <20230328150335.90238-1-Naresh.Solanki@9elements.com> <20230328150335.90238-2-Naresh.Solanki@9elements.com> <17934bff-f728-d57a-c3c8-956634bd48c8@roeck-us.net> <3be67394-6082-1aeb-8a8d-90149217bdc7@gmail.com> <0672fe4d-7293-4374-9186-29b008e5f8a2@sirena.org.uk> From: Guenter Roeck Subject: Re: [PATCH v2 2/3] hwmon: (pmbus/core): Add regulator event support In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 4/10/23 01:19, Matti Vaittinen wrote: > to 6. huhtik. 2023 klo 16.43 Mark Brown (broonie@kernel.org) kirjoitti: >> >> On Thu, Apr 06, 2023 at 11:00:02AM +0300, Matti Vaittinen wrote: >>> ke 5. huhtik. 2023 klo 18.19 Mark Brown (broonie@kernel.org) kirjoitti: >>>> On Wed, Apr 05, 2023 at 07:18:32AM -0700, Guenter Roeck wrote: > >>>> It can also try to avoid >>>> interacting with hardware if that might not work. >> >>> It'd be great to have documentation / specification for sending and/or >>> handling the regulator events. I don't think we currently have such. >>> As far as I understand, the notifications can be picked up by all >>> consumers of a regulator. I am a bit worried about: >>> a) Situations where notification handlers 'collide' by doing 'actions' >>> which are unexpected by other handlers >> >> I'm not sure what you're expecting there? A device working with itself >> shouldn't disrupt any other users. > > I have no concrete idea, just a vague uneasy feeling knowing that > devices tend to interact with each other. I guess it is more about the > amount of uncertainty caused by my lack of knowledge regarding what > could be done by these handlers. So, as I already said - if no one > else is bothered by this then I definitely don't want to block the > series. Still, if the error handling should be kept internal to PMBus > - then we should probably either say that consumer drivers must not > (forcibly) turn off the supply when receiving these notifications - or > not send these notifications from PMBus and allow PMBus to decide > error handling internally. (Again, I don't know if any in-tree > consumer drivers do turn off the supply regulator in error handlers - > but I don't think it is actually forbidden). Or am I just making a > problem that does not exist? > For my part I (still) don't understand why this is considered a problem for this driver but not for all the other drivers reporting various error conditions to the regulator subsystem. At least some of them also have programmable reaction to such error conditions. Guenter