Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp255258rdb; Tue, 31 Oct 2023 06:47:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF21n74plRCjzN/XGOtqkHECG4zR8HAtONxdEZG2vbHPHL3f93DTo+XgsgrACfN2DOtFXRA X-Received: by 2002:a17:90a:d101:b0:280:3f37:f8a1 with SMTP id l1-20020a17090ad10100b002803f37f8a1mr6827774pju.12.1698760049692; Tue, 31 Oct 2023 06:47:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698760049; cv=none; d=google.com; s=arc-20160816; b=xRoX1qn5aXXk5JG+CdZIOoUH4fgUpxbe8x5CCVkBKctSbmWBBbIizNKDOUoKh9RwOO UxNCwF/NtwO41KE9cXEnMCe909cSOXqiZel5xkkbzLqHFPBtRrp4Ic7D9mVhljgfxlFW qjj9ZGT6kEYnwVOqb6YoXwrS/wtNyikfZwaHfUHP60dZeempXV+5zjipzKxdt1RTYe/b eXS3kg8lv/JIaYiYLlbPiWzw22I8R4FDHSPThduAOmwBxsCqFBsAyfe/EjEldIhDP4AD QnNtldAxHcrRYcCSAe9/h4+RkdY7IpOj9WVz5LUlM7vZJAwH69orHii9xcjUbu8k0n2x Rofw== 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=szWjSuZzSBsgDHOkVrsEaBtEWrwcwItxo1aEsAkUX60=; fh=YxKfcWxff8ZIc/Bx0pG7CPiiipXCN9CL9joQKerQXr0=; b=lz592JqlRQ3fmigED8TUiNEMp4MwsdsijNoI7fP9fz3p2gHonp4WqyaNd1RJxxA96V 2SVruNbVjVtwqAI1eTmRI2mXNjWzeSVa78P5t7J3yqSJUAkmxCSC2tbvpshxWDEWXU9U AyInbzF3w95k5Ps/3NbnVmGw4/jDnBhbhoYnbtYMRZvvcDivqpIW4SmvlneuX7RN+kSA OxPBprsFJ3c6m5R1foOH6XZGURk2okjx9iFdMhjdIBs3JtyUHjyZzo4wL9xGmKbwsIX0 F9A99zk3E8Vs4NOYE5dDKo5R8lfYQN7ZgiWNLwn2CGW7ROfEwgwMIHurJikehFTr7DI1 nNxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OqkwBCvX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k8-20020a17090a404800b00274d6373fe1si978831pjg.120.2023.10.31.06.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 06:47:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OqkwBCvX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 1E30480C7ADF; Tue, 31 Oct 2023 06:47:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344649AbjJaNrM (ORCPT + 99 others); Tue, 31 Oct 2023 09:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344592AbjJaNrK (ORCPT ); Tue, 31 Oct 2023 09:47:10 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECEE4DE; Tue, 31 Oct 2023 06:47:07 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6b1ef786b7fso5681661b3a.3; Tue, 31 Oct 2023 06:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698760027; x=1699364827; 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=szWjSuZzSBsgDHOkVrsEaBtEWrwcwItxo1aEsAkUX60=; b=OqkwBCvXVDA6wfLEjmkHv2xJG8vX1+koutd+BawGbGy5dDRmXmqtaQt3zQWnxnpNpz eHljFBzd0SoO9AafY1CdPx5QZtlN5eg3nzUBqgfAmO47gr1MfbPp052phN3kxaBnwiSg eLf9BW17Gjth0U7dxRcknw2dyr8W9TyvjPxuGRv2hbNlIK4SvIh8a/cfxhhMhIvA5RTp lqkoxTq50R74iPce+JKlvXej9IBytVehNCEtXydP8gXsUixPvacvAmFt3sguvJlnFMmN ImFDsgnwbHgbyeYtW5GfH/eGBvOvM4NGnHcgEi4xs1hgXPjrBci0LHsutO7lGuN1eNP8 P4+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698760027; x=1699364827; 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=szWjSuZzSBsgDHOkVrsEaBtEWrwcwItxo1aEsAkUX60=; b=NW6pXlwqKeiW60rZUp5ibU1v12VY++L+yD6/QYgR21TGGlWjG1vl5DQxXLE3DX6Hom HaCG/5cEibPlt9Cz8LkPTd/w1QaPN8Z4nStQqt8trRHxQDGFjpAUucXZrQlAnIVgKOzw vsYyvgjHclJxGOU5JrTvELCHvVDDGJ5Y4OOgB/KjAdZWYr6hyq9rKsC+cIGO6SbVKO6X WKcjPSumYAYrGObooIRZtLpdgJ+ZdwGnv9y8/kcyps/OT2yZA02ngMYDdtyEANNVGDd7 mClgVZefa0pA8h3dDCIKus9AhW+rfffARBsx4H1tcX2Kfs77MMUUTSNE/Zl/48ljusqF Mu5w== X-Gm-Message-State: AOJu0Yzklc89PL3p2c8G2Y00OJXtcJmO8uL5WohBbKHUXH4PQG4xZRQp jflg5CWOxuO1yvVxp5eJ4qsTbYh60Cg= X-Received: by 2002:a05:6a20:7d95:b0:169:cd02:65e9 with SMTP id v21-20020a056a207d9500b00169cd0265e9mr16505135pzj.33.1698760027378; Tue, 31 Oct 2023 06:47:07 -0700 (PDT) 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 y16-20020a056a00191000b0069268e3a659sm1263401pfi.132.2023.10.31.06.47.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 Oct 2023 06:47:06 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Tue, 31 Oct 2023 06:47:04 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] hwmon: pmbus: Add ltc4286 driver Content-Language: en-US To: Delphine_CC_Chiu/WYHQ/Wiwynn , "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: <20231026081514.3610343-1-Delphine_CC_Chiu@Wiwynn.com> <20231026081514.3610343-3-Delphine_CC_Chiu@Wiwynn.com> <2ef2e804-d498-a2ae-9717-dd03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h9vkpPyuT nY/ZsFbnvBtiw7GchKKri2gDhRb2QNNDyBnQn5mRFw7CyuFclAksOdV/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: 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 howler.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 (howler.vger.email [0.0.0.0]); Tue, 31 Oct 2023 06:47:26 -0700 (PDT) On 10/30/23 23:46, Delphine_CC_Chiu/WYHQ/Wiwynn wrote: [ ... ] >> >>> + >>> + ret = of_property_read_u32(client->dev.of_node, >>> + "shunt-resistor-micro-ohms", >> &rsense); >>> + if (ret < 0) >>> + return ret; >>> + >>> + if (rsense == 0) >>> + return -EINVAL; >>> + >>> + info = <c4286_info; >>> + >>> + /* Default of VRANGE_SELECT = 1, 102.4V */ >>> + if (device_property_read_bool(&client->dev, >> "adi,vrange-select-25p6")) { >> >> What if the adi,vrange-select-25p6 property is not provided, but the chip >> is programmed for this range ? > The binding document tells programmers how to fill the dts. > Thus, programmers must fill this property if their system is 25.6 volts voltage range. > Sure, but there is no else case, meaning VRANGE_SELECT is unmodified in that case. There is no guarantee that the chip is in its power-on state. Guenter