Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp514170ybm; Fri, 29 May 2020 05:52:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzO6UFjFuk06JlqOANWwCW5hF6gQ45MjV+s9TTzTjAXOLLGG6Zg1EAeJFMwtbDNFy7ENFd7 X-Received: by 2002:a17:906:9419:: with SMTP id q25mr7874018ejx.111.1590756720000; Fri, 29 May 2020 05:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590756719; cv=none; d=google.com; s=arc-20160816; b=LjDceLbG70By2Frs2Cdzd9VK8to9eTQy8jLgssHDX7jYyEksb1z4GBZGi6hud6fgH3 Q0GI71jX4Q/njnXiPpfkb4i5Kjjx/LjoD/tgOkouxYHd6Imsogyn1taSNz34eUgckmE/ qTkryQsuRHRc02MFYasgYsv1g3p3ZXJJ07mH8tc3OG1Kt4egxMVnfWKioUTeJ1TXECWf d+93lNZzgfLUbT7B2FqrlO4ie4mvyoLVlccJ+JphRZTEYzPLGyQkSl4zwSTec/XWo51K NEyhg4m/+jj7T1aLhVcn4jWZkQSKt+w5VQqr/T5t7QF0p30Yvor2zuj/LgNmnNSBpdXA 63UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=o2j+GY5asK27Z1VXoeFg0Uoi55AsdOpx7sMJH8MuRHo=; b=KNCWlcJXT+/VrrVm9CITtXgcYXOo84dNA9AsK65U0wEmlvJ4Oiue8uZ987O81Xjble LGoFS6pc+Ex8/W02PVo/Yg9D7wDwdrAuQP+fKd687d/sgQwSFSpzFpGI0cgaJPwSNfms 0oyqrKUfeeax3ulL8PmAgFHJp3lFaiyJk8UY27bkzsHDuiGQ/w+wgymZjWHONDaT9AAF 6IUIXd4OuiMIWvPq+ZmFzSKOr97cINUanbYQEUf7RiaE/OFBj7y0diOW9MX6eGfa7C4S SZl2fJd6H7HjsqbBIApHVEZD10x7XlLxUxk2oOfkmCjUJESK0L7hYAZptCfXtXHqs03Q 7Jxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@stwcx.xyz header.s=fm2 header.b="Ybj7/QAu"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=3m0butx3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi3si6136489edb.332.2020.05.29.05.51.36; Fri, 29 May 2020 05:51:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@stwcx.xyz header.s=fm2 header.b="Ybj7/QAu"; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=3m0butx3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726712AbgE2Mtp (ORCPT + 99 others); Fri, 29 May 2020 08:49:45 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:33645 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgE2Mtn (ORCPT ); Fri, 29 May 2020 08:49:43 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 193AA5C0049; Fri, 29 May 2020 08:49:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Fri, 29 May 2020 08:49:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stwcx.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=o2j+GY5asK27Z1VXoeFg0Uoi55A sdOpx7sMJH8MuRHo=; b=Ybj7/QAukMZ2eqJn4hVYesRxus97pGGeFCYfc4T0o5x mZwE1FL1AgxI222XAzpCYWv6PODswHS9QhGCyK7bKLQaIG8Gf7QDrV/uEIM8ZXvp ncO20bL+Z105xckhwJcrlG6m1iNODix/ca9WVqBbXkNnnbF8RslOB7xIV/SX4nWX ChRD0yL9FBU4KIswmEQQryfQH5lFVnWZGnNqWlI0CN3meHOxwm5ndPkpCxkWW5gv 6zNgCOfMFBI4JcNasWaXndXmYkJfVcfA9yL8IR46N4FKzeRcuoP6sJkOseB5NlnX Ho+XrO/cZq+vrQ24vs58zhFT6XOuWmuWJnJmvB0MwjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=o2j+GY 5asK27Z1VXoeFg0Uoi55AsdOpx7sMJH8MuRHo=; b=3m0butx3K2ljKcp+zUwcpd iHBRp8m6wRpqOiXBhiW3ey66+MxnsL4A83d4dU279eujA3h8Pu8uEtWi3VvLwUlK AnoNVie7qY5a0RDVwuZzEaWND23spz4QD9VMiQ+kssFEgj6c2++4QEnuU6n+cJuJ LSBbFCjgvCPqWPxj+mV7FKtatNtzkR0NOmfG6PIstweSI0IALecHpcCS9mOMB8Se ws+e+pmOWWFiNCndVHPKdSVba1zIH8Moph69zMkpedmh4Iei+xrTcvev9zKkmxLD bqx/qUU+w2nAFCejILPGh9P3WogB5tgMw6EqLkdWFTVyJCfbznM8hY0qPSco1mkQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedruddvkedggeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlfeehmdenucfjughrpeffhf fvuffkfhggtggujgesghdtreertddtvdenucfhrhhomheprfgrthhrihgtkhcuhghilhhl ihgrmhhsuceophgrthhrihgtkhesshhtfigtgidrgiihiieqnecuggftrfgrthhtvghrnh epvdffgefgfeetiefgtefhieevuedugedvgffgjeefheduteejfeffteektdelhefhnecu ffhomhgrihhnpehkvghrnhgvlhdrohhrghenucfkphepjeeirddvhedtrdekgedrvdefie enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehprght rhhitghksehsthiftgigrdighiii X-ME-Proxy: Received: from localhost (76-250-84-236.lightspeed.austtx.sbcglobal.net [76.250.84.236]) by mail.messagingengine.com (Postfix) with ESMTPA id 86C1530618B7; Fri, 29 May 2020 08:49:39 -0400 (EDT) Date: Fri, 29 May 2020 07:49:38 -0500 From: Patrick Williams To: Manikandan Elumalai Cc: linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, manikandan.e@hcl.com, patrickw3@fb.com, vijaykhemka@fb.com, Guenter Roeck , linux-hwmon@vger.kernel.org Subject: Re: [PATCH] hwmon:(adm1275) Enable adm1278 ADM1278_TEMP1_EN Message-ID: <20200529124938.GE17541@heinlein> References: <20200528141523.GA8810@cnn> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GxcwvYAGnODwn7V8" Content-Disposition: inline In-Reply-To: <20200528141523.GA8810@cnn> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --GxcwvYAGnODwn7V8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 28, 2020 at 07:45:23PM +0530, Manikandan Elumalai wrote: Hi Manikandan, Adding the PMBus maintainers... >=20 > The adm1278 temperature sysfs attribute need it for one of the our openbm= c platform .=20 > This functionality is not enabled by default, so PMON_CONFIG needs to be = modified in order to enable it. Vijay already mentioned the Signed-off-by here. Since this is a kernel patch and your first time contributing one, please read through: https://www.kernel.org/doc/html/latest/process/1.Intro.html and the MAINTAINERS file. Another thing you've missed is using the get_maintainer.pl script to find out who you're suppose to CC. It is fine to have additional CCs but we're missing the pmbus maintainer on this patch. >=20 > --- > drivers/hwmon/pmbus/adm1275.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) >=20 > diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c > index 5caa37fb..47b293d 100644 > --- a/drivers/hwmon/pmbus/adm1275.c > +++ b/drivers/hwmon/pmbus/adm1275.c > @@ -681,6 +681,21 @@ static int adm1275_probe(struct i2c_client *client, > } > } > =20 > + config =3D i2c_smbus_read_byte_data(client, ADM1275_PMON_CONFIG); > + if (config < 0) > + return config; > + > + /* Enable TEMP1 by defult */ > + config |=3D ADM1278_TEMP1_EN; > + ret =3D i2c_smbus_write_byte_data(client, > + ADM1275_PMON_CONFIG, > + config); > + if (ret < 0) { > + dev_err(&client->dev, > + "Failed to enable temperature config\n"); > + return -ENODEV; > + } > + This code might work for your design, but likely doesn't work for everyone and isn't likely to be accepted in its current state. I think you need some kind of detection logic here to know if TEMP1_EN *should* be enabled. Do we need a device-tree entry for this? > if (config & ADM1278_TEMP1_EN) > info->func[0] |=3D > PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP; > --=20 > 2.7.4 >=20 --=20 Patrick Williams --GxcwvYAGnODwn7V8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEBGD9ii4LE9cNbqJBqwNHzC0AwRkFAl7RBOAACgkQqwNHzC0A wRlUkA//cEaRIkB+xtcDWW/e7neekDz/LQI62l2pYd0sfnQQNnDNO0j86e8xO50h mnDat8c7sEbZNn81ye0wwAX0sN2+Nba5kyl/EYH0tpLfqiqz5QSQDsECFYquZ3bZ 8Hn7ail+Z+FkZOKwOKtAiPm0cXR50DgRZKKcyvF1gHQXwUlYG9n5jxvtyll05VJr qlr9K/2+Mljn86YyqBie9YlxwE/He+iumE1PR/gWAelB357CtoS6uAjgk0Nu4WSJ EkMOu/GoivEfBBu/6OlLOG3/riCULgIr8q9lkabUTh6r9+xTzM9RmXckMUTia/Y5 dMXgPMkwobgA62Hs+JDO4irlSmGz8Xzl5LOG1EB3C6z+C14P1oI4K6t6TaCnW2fx V8xcTCrlNNlbXEbKKXFJOuGGb5BCpEI2mnqcbx/yB+dTXWzgPbrYFjcO5cToZD0/ E7IU4CpQ3o26u8/dQ9irHrGQIQjdRNr9FaNwuUfKZMBcqowh6awA95ton3tpZ+Ns qrOyAjPbmkokPglGe4BYg20Z3JNnioZzG4s+9+4unK3U+AqvHNHirz43LCXzgyCk oeigei7klwJX9FUkUF1m2cxo2oJDX/hX07BtemWBnY25kvlL+zCJ7U/BcOfQC8T5 M8jeCwLfEl4G1oOrVND3Q0I2KKMRVxKwxRIxWJLx1qY9j0GzhaE= =YCrf -----END PGP SIGNATURE----- --GxcwvYAGnODwn7V8--