Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp608147rwl; Wed, 12 Apr 2023 01:13:20 -0700 (PDT) X-Google-Smtp-Source: AKy350aqPMKqOgaLY41g8+1E+IkdX/1aJ9q/r2ng+mj5uwSHx4tujjUX5ValFHuT7Nz4pW3yLpjK X-Received: by 2002:a05:6a20:3aa8:b0:da:39a5:6e66 with SMTP id d40-20020a056a203aa800b000da39a56e66mr5067282pzh.18.1681287200548; Wed, 12 Apr 2023 01:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681287200; cv=none; d=google.com; s=arc-20160816; b=LPrPSPvuuCrXcF0yojNDuuu5KQ7F6Y+UJPWcbrZrmAFAwGBiPAGnAhStvI+lj6/M1o TmRSFK9FrL1GZPiBbqrWPX5OC4w0BwSf6imo5qlK9NCMsii4nkLPLVgju+1SXkWiA/NL 5PHg2NT9pZJt14AkcalfRe/CzskY0wW7h5Zh67JZBn3mz3HQyArXU1/FuYMD7fKD1AkX GlCVXu9VxVMScKRg1NQiiJG7Lymt0tob/BvydLrD6kyyC1Z6ZxzgNbdaE/7IR5Oy1Bme xWYQ62dFrnaQmjXvczUin1ATEBtUqbc5YuAGuXk71WJHU1mdByumW6L1dCTXw8ZezKx6 kR+A== 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:dkim-signature; bh=DPQHXAKd79acMXq7oMe6Ku28tp5iU6k2HgF0INSacjY=; b=MrBSIV/TTSxcV6aGii7+TRJAjHEPraxk36YMWEGXdLwpbOMZWzM3MFE8OXDxdluheZ M3kgDTelyrwKrza/uelfOAroUniBkgA76xWCx55dpEGjlPA6LkS3gHajM9NLfvHv9sEE zbkyd5K5T3w2NOXOopcuKPYMBblt92WtMQjmaH7/j5GVev8R2Zwkn5dlb+jOgFv9LJM2 efl7D81NwtTNr/wetrtKlpxQUJSH/ksKttcxrkJojJyz0AXBzM7g+7ETUC1v4AqgQhjY imHlANeZus1KxWA9gsaNRbP4TRXyh/ND9FhbEc3caHNkUCalvklV58WE5ydFMmrLq6O3 2L2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=kKSjTY1n; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f189-20020a6251c6000000b0062d7d3f1192si15455654pfb.166.2023.04.12.01.13.06; Wed, 12 Apr 2023 01:13:20 -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=20221208 header.b=kKSjTY1n; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230006AbjDLIMw (ORCPT + 99 others); Wed, 12 Apr 2023 04:12:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjDLIMt (ORCPT ); Wed, 12 Apr 2023 04:12:49 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53CD74EF2; Wed, 12 Apr 2023 01:12:45 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id n22so9303254ljq.8; Wed, 12 Apr 2023 01:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681287163; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=DPQHXAKd79acMXq7oMe6Ku28tp5iU6k2HgF0INSacjY=; b=kKSjTY1nclUZmKsP2H0K8d3ap/tyTRocwnNhePasUG4rozrtYj7wAUQdva4rEZyGAS tpqkyVgw0G3zySVKg2C7H4+LiWyC0FLlhU1x79vmjO7POAEjrJGOjTl0BoXivRczIRhg 6D4zoLjFx8fQmvJ0n6EPz5qEb8h3xhSELkQGrhmT7U4kIScHCNqQQMCkXkuAz8kx8THZ 4ruwiN+Eb4kmqdqPX/Ln51I9QGa3wTtCLEzeR9MSAogZP6G43QrqkLSYApr6m/qN9gEN qPgGzkEY8RZHNgj1xTnAF3zPiSkBZIcziZAvAPRvkUzppq75FH7lMgbv3yIKqNYPLLFn 1m9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681287163; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DPQHXAKd79acMXq7oMe6Ku28tp5iU6k2HgF0INSacjY=; b=wAM7lkFoJpX7dsc7BS0+23H6EdIf8MNyIjiGsaLlbE6yBP4b0RBOGqJY/GYFZtEoRN CBkc37XmO1TIzl3gjuRqPW7NYqQM+FFMNVvgkKYMzM2uJEk4mwbNvCy+4mZ4mCMNET5d px6FyEeT+Inc1c3ZCeidub0ABie3b1y0sf+3nZIM2aqJYaVfwgRsoV+T7a0GbsuW+hql qmgJG6qFEqnDJmyGZbmWuSEcp7lfBRrngJnYnH+QPteoSRsDxgJLRaQEYSn1Y7q74O7Q 9eYH/CHoV4+zYo34i0iXJtP9dKw+3YxWtdAHkUBSQB+k2gzcmKmwX11Nt3APGx9Kl0ZQ HKig== X-Gm-Message-State: AAQBX9fAz7Tr5t7d2mgX+cAWM2of6u8kPTBc5jvX42AG85IjJd03gqwH QCywHyj4h4rGT3OxZU+tIqP1PTkT+cg= X-Received: by 2002:a2e:9c90:0:b0:298:aa96:55c2 with SMTP id x16-20020a2e9c90000000b00298aa9655c2mr5520123lji.44.1681287163357; Wed, 12 Apr 2023 01:12:43 -0700 (PDT) Received: from ?IPV6:2001:14ba:16f3:4a00::1? (dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::1]) by smtp.gmail.com with ESMTPSA id v18-20020ac25612000000b004e9b4a8f738sm2894599lfd.152.2023.04.12.01.12.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Apr 2023 01:12:43 -0700 (PDT) Message-ID: Date: Wed, 12 Apr 2023 11:12:42 +0300 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, en-GB To: Mark Brown Cc: Guenter Roeck , 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> <74f9ebff-3e6f-496f-a776-5bd4650c566c@sirena.org.uk> From: Matti Vaittinen Subject: Re: [PATCH v2 2/3] hwmon: (pmbus/core): Add regulator event support In-Reply-To: <74f9ebff-3e6f-496f-a776-5bd4650c566c@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 4/11/23 15:07, Mark Brown wrote: > On Mon, Apr 10, 2023 at 11:19:41AM +0300, Matti Vaittinen wrote: >> to 6. huhtik. 2023 klo 16.43 Mark Brown (broonie@kernel.org) kirjoitti: > >>> 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? > > I think you are making a problem that doesn't exist. In this case, sorry folks. I thought consumers could be more 'intrusive' with the handling of these notifications - which apparently is not true then. Guenter, I hope the statement from Mark cleared confusion I caused. I have no further questions about this series. >>> Like I say I'm not sure how much practical difference it makes to think >>> too hard about differentiating the errors. > >> I would do at least two classes. > >> 1) critical class - it is Ok for the consumer to forcibly shut down >> the regulator, or maybe the whole system. >> 2) warning class - it is not Ok to forcibly shut down the regulator. > > How severe an issue bad power is will be partly determined by what the > consumer is doing with the power, it's going to be in a fairly narrow > range but there is a range. No longer related to this patch series - I am still trying to gather information where the "detection" level PMIC warning IRQs are used in real-world systems. This might give me some insight how these notifications are (or could be) used. Yours, -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~