Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp125109rdb; Thu, 16 Nov 2023 13:53:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYU5ulRV7Kil7QwW3C+E5ocUSVNKW9bO5PFBRHgGLMHl2+zrjX3DwG7sb1Ldja45FoNHuh X-Received: by 2002:a17:902:d491:b0:1c9:e68a:1b58 with SMTP id c17-20020a170902d49100b001c9e68a1b58mr10524687plg.54.1700171597669; Thu, 16 Nov 2023 13:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700171597; cv=none; d=google.com; s=arc-20160816; b=KjzOLe71exN+QfxtN2vBQJHZ44aPCS9pzxW4HOC1Qakc/KlRiDS9AsoGZwrZ8pAMyJ f3GGjzqJjO3Ti8fOIdlheyElQ+EHo9aYItkv5wqKlAdVRI4iU7OJyu86+LxKslb8YXP1 hQjqdbnFEhocEqpBYX/NANW33pOMQPCuDRZtirPGDyd5cBdgK5rfd49OTwB/mvWsVTlf Nsvk2HDSvAYGOe9g3lirSbtQ9FR7OLSywixJhrujw55X61JhCqUN5fle1VsQxJEr+aRP xGMZnCmcUVVwWP9CZMuuSxunJjTAWNlsI18p3jXc5y31cpZpMWhImJL6NLNzRHb5GZP1 hbAw== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=6C9AZL6xuvaw9TUCVtQuHjnxGIMH+zJ13tnQH5dBkZE=; fh=GzZiTlHcv7PqAXNcmi4NvIs5kSnS01H55f71CaEI8U4=; b=q7Nr4DD02aMad0+R/yi9nh8wbcEpmG0qZTYgfoBuZ1zKEIGMSSLw1e+KHJn4Dm1+3U TuTjek50Jh0K8b+dyGQY8TtYluiOe8VmRHVAZ47c9C8ctpT8bQmxvouUeNiRDdqmH/Ry +s4Ew7oH8dWjl864wZuPWznuzdVyeon4ZurR7eSkazLqLGwM3mAlfwhBRG1v0MmmWJt7 w1mnyqldA5PgjmfHkiBZXU7nqzTkPz2C398YZiNVkipAj//yyYOAlh2moX162QJ1Vqe3 UvYQMkLhQWxSGgRJIBjRLG0jL3aZxi2issUpTR0HkzAUaq5ZeRqF8LDtHqFahG7RUH1J +ZmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gtRkkNwf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id k4-20020a170902c40400b001bb3bcd05bbsi325700plk.471.2023.11.16.13.53.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 13:53:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gtRkkNwf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C32058029677; Thu, 16 Nov 2023 13:53:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229774AbjKPVxH (ORCPT + 99 others); Thu, 16 Nov 2023 16:53:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjKPVxG (ORCPT ); Thu, 16 Nov 2023 16:53:06 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8A5C11F; Thu, 16 Nov 2023 13:53:03 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5c1f8b0c149so499046a12.3; Thu, 16 Nov 2023 13:53:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700171583; x=1700776383; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=6C9AZL6xuvaw9TUCVtQuHjnxGIMH+zJ13tnQH5dBkZE=; b=gtRkkNwfJGoShFNZF04TeLD2uD63PsUXm6TORBHJ/0nKNVCCi9R+FWUpGZ6APmZAzG 39z4KgwqOF0SOrRaPHJqfijW2K4Xzkb9oiAYL4/G01imExMfKr0Vivd8F12vvrI8yw0H Um5rryh/FD2mdWEhG9y8GuYhT89nFH2IUJcKSGuoGnTrIuoZvuXneIxzUgMfNuXJCZTH KgxkisMiCUsDRMZGjlDLvsrgufDdPOFpAQF+E02NgEmmKlBK95MmWRw2d0FhirBp1PZU YIOsSeyfqGsPs93YQkax2m04F7qxTT81Z9TFj2CRbMxw82wc3aG0CsKVx2ZxKQk6ydhr f4hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700171583; x=1700776383; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6C9AZL6xuvaw9TUCVtQuHjnxGIMH+zJ13tnQH5dBkZE=; b=BeGmdAgcA9rtAXH/Rrp1cf54OIhHofczb6HBuc64gtkPlW+/f0Paiy91OXhHeBEuAQ LElfwZMfo4X4xYzQuxegIt16SLkRDIQAyLjy4dgxohP4xeSc/uD96mvUwaNgQtS7MpKO O3FYOKW/QfTZ3lQp3ctp4HNK7/nDicqaNKfZ7C8Z5x9GQVhiPb32QiUfqfrQkgFMl5Hw u833wTKp5Sw5MHHj+gNKrrdBHD6rYHCb76fx8HBMeyarCwmiWMwjZoKcBGA/gkGfQRjk nx8/EKbiNsUu41evoqGCTk7ujn7k1g9hqFVEoQweB96Q8iqytlU1UNNPnqV7DBLkyhDx TrbA== X-Gm-Message-State: AOJu0YzHJiLjvAOXksL1zFy9IsOEAU+yJYbQ8068clDtb7gbXy6p10Hj AFKiqa95y98YsQHMKU5MmlM= X-Received: by 2002:a05:6a20:a112:b0:14c:c393:6af with SMTP id q18-20020a056a20a11200b0014cc39306afmr16401691pzk.0.1700171582658; Thu, 16 Nov 2023 13:53:02 -0800 (PST) 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 cm7-20020a056a020a0700b005b92ba3938dsm137240pgb.77.2023.11.16.13.53.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Nov 2023 13:53:01 -0800 (PST) Sender: Guenter Roeck Message-ID: <780fd479-a3c0-49d0-b632-4bff171fe067@roeck-us.net> Date: Thu, 16 Nov 2023 13:53:00 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 2/2] hwmon: pmbus: Add ltc4286 driver Content-Language: en-US To: Delphine CC Chiu , patrick@stwcx.xyz, Jean Delvare , Jonathan Corbet Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-i2c@vger.kernel.org, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20231116023027.24855-1-Delphine_CC_Chiu@Wiwynn.com> <20231116023027.24855-3-Delphine_CC_Chiu@Wiwynn.com> From: Guenter Roeck Autocryp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2gDhRb2QNNDyBnQn5mRFw7CyuFclAksOdV/sdpQnYlYcRQWOUGY HhQ5eqTRZjm9z+qQe/T0HQpmiPTqQcIaG/edgKVTUjITfA7AJMKLQHgp04Vylb+G6jocnQQX JqvvP09whbqrABEBAAHCwWUEGAECAA8CGwwFAlVcpi8FCRmg08MACgkQyx8mb86fmYHNRQ/+ J0OZsBYP4leJvQF8lx9zif+v4ZY/6C9tTcUv/KNAE5leyrD4IKbnV4PnbrVhjq861it/zRQW cFpWQszZyWRwNPWUUz7ejmm9lAwPbr8xWT4qMSA43VKQ7ZCeTQJ4TC8kjqtcbw41SjkjrcTG wF52zFO4bOWyovVAPncvV9eGA/vtnd3xEZXQiSt91kBSqK28yjxAqK/c3G6i7IX2rg6pzgqh hiH3/1qM2M/LSuqAv0Rwrt/k+pZXE+B4Ud42hwmMr0TfhNxG+X7YKvjKC+SjPjqp0CaztQ0H nsDLSLElVROxCd9m8CAUuHplgmR3seYCOrT4jriMFBtKNPtj2EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20231116023027.24855-3-Delphine_CC_Chiu@Wiwynn.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Thu, 16 Nov 2023 13:53:15 -0800 (PST) On 11/15/23 18:30, Delphine CC Chiu wrote: > Add a driver to support ltc4286 chip > > Signed-off-by: Delphine CC Chiu > > ------------------------------------------------------------- [ ... ] > + /* Default of VRANGE_SELECT = 1, 102.4V */ > + if (device_property_read_bool(&client->dev, "adi,vrange-low-enable")) { > + /* Setup MFR1 CONFIG register bit 1 VRANGE_SELECT */ > + ret = i2c_smbus_read_word_data(client, LTC4286_MFR_CONFIG1); > + if (ret < 0) > + return dev_err_probe( > + &client->dev, ret, > + "Failed to read manufacturer configuration one\n"); > + > + ret &= ~VRANGE_SELECT_BIT; /* VRANGE_SELECT = 0, 25.6V */ > + ret = i2c_smbus_write_word_data(client, LTC4286_MFR_CONFIG1, > + ret); > + if (ret < 0) > + return dev_err_probe(&client->dev, ret, > + "Failed to set vrange\n"); > + > + info->m[PSC_VOLTAGE_IN] = 128; > + info->m[PSC_VOLTAGE_OUT] = 128; > + info->m[PSC_POWER] = 4 * rsense; > + } else { > + info->m[PSC_POWER] = rsense; > + } My feedback has not been addressed. Guenter