Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1610270
| Path | csiph.com!goblin1!goblin.stu.neva.ru!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Guenter Roeck <linux@roeck-us.net> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] driver: adm1275: set the m,b and R coefficients correctly for power |
| Date | Tue, 28 Mar 2017 04:50:01 +0200 |
| Message-ID | <tpPmN-YV-3@gated-at.bofh.it> (permalink) |
| References | <tpMoW-7gK-11@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=J92VujucLjZ+afZ8suNLR7pfye3O/U1msmUDlOBO3hk=; b=C+FfjI+2YqrFBIkRNpc4e27/78 V7cvvotS/EErnc25hbpjDyzkah7a+wPwOpL+mNksKnVH0oWZEW0cyy4mNRJK9yCaekd4+p7x0LA2p GElPkRKt27Pyni1nw61nZ2sawuVcBlUE6n307AZlDy0ohnpqPAu1S4soSurxIe3tKt5mCUa+8MK3z t6ccNpXOrN3wzWq4uiTt19t2SD3ap3M1J5IFMbh7vf57Fc4WUCwFiYfQFi6hZccO80RgHzc7Qwnt+ N9uWgNAfgQ6bjBHOAbdA0gpxtbjQjiq5jd2WxvY3Z0O4KywCxoBZNsbU8Vp31m7PlpEOLaZwJ7Sin lVw/UFwA==; |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Authenticated_Sender | linux@roeck-us.net |
| X-Outgoing-Spam-Status | No, score=-1.0 |
| X-Antiabuse | This header was added to track abuse, please include it with any abuse report |
| X-Antiabuse | Primary Hostname - bh-25.webhostbox.net |
| X-Antiabuse | Original Domain - vger.kernel.org |
| X-Antiabuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-Antiabuse | Sender Address Domain - roeck-us.net |
| X-Get-Message-Sender-Via | bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net |
| X-Authenticated-Sender | bh-25.webhostbox.net: linux@roeck-us.net |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 42 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | xe-linux-external@cisco.com, linux-kernel@vger.kernel.org |
| X-Original-Date | Mon, 27 Mar 2017 19:44:49 -0700 |
| X-Original-Message-ID | <0c247229-0981-fad7-9ff3-b27584792312@roeck-us.net> |
| X-Original-References | <20170327231644.GA6121@sjc-ads-4188.cisco.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1610270 |
Show key headers only | View raw
On 03/27/2017 04:16 PM, Shikhar Dogra wrote:
> Seems like coefficient values for m, b and R under power have been
> put in the wrong order. Rearranging them properly to get correct
> values of coefficients for power.
>
Oops :-(
Thanks a lot, applied.
Guenter
> For specs, please refer to table 7 (page 35) on
> http://www.analog.com/media/en/technical-documentation/data-sheets/ADM1075.pdf
>
> Fixes: 904b296f308d ("hwmon: (adm1275) Introduce configuration data structure for coeffcients")
> Signed-off-by: Shikhar Dogra <shidogra@cisco.com>
> Cc: xe-linux-external@cisco.com
> Cc: Guenter Roeck <linux@roeck-us.net>
> Cc: Jean Delvare <jdelvare@suse.com>
> Cc: linux-hwmon@vger.kernel.org
> Cc: linux-kernel@vger.kernel.org
> ---
> drivers/hwmon/pmbus/adm1275.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c
> index 188af4c..18477dd 100644
> --- a/drivers/hwmon/pmbus/adm1275.c
> +++ b/drivers/hwmon/pmbus/adm1275.c
> @@ -95,8 +95,8 @@ static const struct coefficients adm1075_coefficients[] = {
> [0] = { 27169, 0, -1 }, /* voltage */
> [1] = { 806, 20475, -1 }, /* current, irange25 */
> [2] = { 404, 20475, -1 }, /* current, irange50 */
> - [3] = { 0, -1, 8549 }, /* power, irange25 */
> - [4] = { 0, -1, 4279 }, /* power, irange50 */
> + [3] = { 8549, 0, -1 }, /* power, irange25 */
> + [4] = { 4279, 0, -1 }, /* power, irange50 */
> };
>
> static const struct coefficients adm1275_coefficients[] = {
>
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] driver: adm1275: set the m,b and R coefficients correctly for power Shikhar Dogra <shidogra@cisco.com> - 2017-03-28 01:40 +0200 Re: [PATCH] driver: adm1275: set the m,b and R coefficients correctly for power Guenter Roeck <linux@roeck-us.net> - 2017-03-28 04:50 +0200
csiph-web