Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp512372rdb; Thu, 2 Nov 2023 09:51:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWHr0fyrxKUM3f4oWxWVvg+nYaWOsLMf9i0iGEVPCji/C3NyJygBLyKoRvgCl9li8F9/oU X-Received: by 2002:a17:902:f550:b0:1cc:686a:4120 with SMTP id h16-20020a170902f55000b001cc686a4120mr9198480plf.55.1698943862522; Thu, 02 Nov 2023 09:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698943862; cv=none; d=google.com; s=arc-20160816; b=NwePW/i3+kAbnP+ljdS2+1rBB10GlcKywm+IjLGtKe+K+HAADkYDeeJE4IQpD9f+Fu WaHLTwGDMEev1Wk44SGEwxr4Xq+1a99wA4h/GbcVhS8u67Xnfp5zPEdyqEXAPPOU+uQA 6icodkbQ9WXsh12AwqSyYIr6gEvCJvRj5BwMk31GkKcU04Yhtq9HcMtm1uHLR8yaIIwu akFeRT0jc4IA+IxOQbEIwEPwPVael531hVgZ7YP7eGPHVUk/jI/R7DrWrQfySSfugsxA Yns0h1SVV8j1kS3+J+yi8tJJQLa/AcdkHn0PlzkIuz+s/KPHFuFzv49VI6XQy6nM4l6r +RKg== 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=T3JTxKQnA9AUph4pZCVGBTEzaBTrh65zIKJLj6d604E=; fh=2SeEX+jEJ0OR/UbhEOl77NxROnWOC8uwxH6UZ9LzEaI=; b=JHLBPTBY+ZbXhlZVnfitjWr+jxq8vFcDIrF7nKYrsVx8p2pLVi/NJXv0TCieYYcRxx DUf3J6TWAlNJHYLoZMNrlmFgNBgS7/OkcvtIbpeTG8EOv7gqY2SW82JUXwG3Mx7MYb4i tyWFy9akZSF12X7uTkRX6Agc+pDzSZ/1kTb+MA8NBUgTeNJZOz1msx5j4wyi4fR6Kyt2 IduMDU97H/H1tJUvKsr6Hszd2xNSnYSUYwQrpw0DpXUe9RRS/XZ48j7gF2dFoxxzri// adO2zSrxNgb5v6kWDWrTmxUVP4f+apB+4VXQXE6UzyY/RJlJ/UtkR8MG+Gqx6A8imBFD IFvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WqHOwunE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id kx13-20020a170902f94d00b001c77e00809csi128802plb.453.2023.11.02.09.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 09:51:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WqHOwunE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B561C81C9A4C; Thu, 2 Nov 2023 09:50:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235577AbjKBQur (ORCPT + 99 others); Thu, 2 Nov 2023 12:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjKBQup (ORCPT ); Thu, 2 Nov 2023 12:50:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D19E9197 for ; Thu, 2 Nov 2023 09:50:42 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 423B9C433C7; Thu, 2 Nov 2023 16:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698943842; bh=O65CvmFj/uSkKEy0WcrjZ/zC6Z5PEe3jCXYxUB4rgn8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WqHOwunEfj3ryjn3rI1GdDY/gYn70gF6ZC03KbwHTXi6N5CK70qiIjUiS2jJmagO+ mGkKrd1UBBPzbM/7W/qtjXC+d862hgPQvOg+hOpy9L0+M9KTbq4dI6tbxoKNyR/YLv e1YhPqRxjWrTRlvcjfWP/TJlfBjI8bXg3RzdD0l1vIQUwr4IoiP8RvFJHp4V9TNmH2 3n13MvxcGb6EXxVqVoehw893dXopCRfTPcbR3Hy8FFufPuHa5lVX0n9hQ9xhc1UuTW Z3FQ2kC25lFLmHdRgZ4bWYBfHTzaB7MUUMVYxZf72qKNB/VjFFwQqIj/MgaddSst3A CmvPvkwQ1NaAQ== Date: Thu, 2 Nov 2023 16:50:38 +0000 From: Mark Brown To: Naresh Solanki Cc: zev@bewilderbeest.net, Liam Girdwood , Patrick Rudolph , linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers/regulator: Notify sysfs about status changes Message-ID: References: <20231005133059.917577-1-naresh.solanki@9elements.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Y4NRhtzLRrVeYR/J" Content-Disposition: inline In-Reply-To: X-Cookie: A is for Apple. X-Spam-Status: No, score=-1.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 09:50:52 -0700 (PDT) --Y4NRhtzLRrVeYR/J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Nov 02, 2023 at 09:03:40PM +0530, Naresh Solanki wrote: > On Thu, 2 Nov 2023 at 20:31, Mark Brown wrote: > > That's the opposite sense to what I was thinking of - we're reporting > > voltage changes and enables to userspace rather than just errors. My > > concern here is that this could generate an awful lot of notificaitons > > for normal operation on systems that don't use the uevents, I was > > expecting this to be used for errors. Could you remind me what the use > > case is here, I think I might've got myself confused sorry? > Sorry for confusion caused because I should first described my application > requirements. > Currently my application is interested in know regulator status i.e., > ENABLE, DISABLE or ERROR. > Also events are needed specifically to get them logged like > UNDER_VOLTAGE, OVER_CURRENT, REGULATION_OUT, > OVER_TEMP. Ah, right. Everything except for the enable and disable there looks like it should be OK since they should normally just not happen but the enables and disables might get a bit frequent with runtime PM - not *super* frequent like voltage scaling but enough that people could have an issue with it. Netlink feels like it might be a better fit? Not really looked at the kernel side of implementing that and how sensible that ends up looking. --Y4NRhtzLRrVeYR/J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmVD010ACgkQJNaLcl1U h9CQvAf+OUh1Bjk8QXBKZsuTgrsqaYL1dI10kSTfA9pcvbW0cY5VlRcvj9xPOKDf zZ4QoBzWadi/awU7rfibV2j2hrOwlmtRVE+FgDQk4rGajTfO06YTbmBvjybW7NUS H64d+uJ5WhwqYkH7xjmb8noqXX7Dv1/v67umU/jxPm9MjkVWdMRCl99WD62/qkW3 KT0B/rTKH6HeJ6fwIgkXV/Y/64V4TxYYdpfCyP4vLusHilhEWcxAUZDFemXKwCWI yS8qtFQ7FCql2URysRGP9cXnGK2qw6oPY26dnqU8RkHqEmzFejoGEm9Sx9FaBik+ k/qT9BdbXCHbS9xdOa8fDjDOfGP9dA== =8nPx -----END PGP SIGNATURE----- --Y4NRhtzLRrVeYR/J--