Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp417152rwe; Wed, 31 Aug 2022 05:12:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR45aX7LikYmS030p+F/KdOYgsx3VumZIj5m775k+/mZotXX+q1RT35oag3LyNAVAcHPpc0b X-Received: by 2002:a17:90b:293:b0:1fd:7caa:e324 with SMTP id az19-20020a17090b029300b001fd7caae324mr3055732pjb.11.1661947976643; Wed, 31 Aug 2022 05:12:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661947976; cv=none; d=google.com; s=arc-20160816; b=wMJJTs/iuWaFrXaJylDXCfF9DYxN9E9Qk9UW43lrMFMVt7Wedq7miHf0SLW5jh6PyN trJU8DT0QGML9ayzlbN2r9EMejmfpRzsrQRaMgzaVDIJk1aOXV88Ux9RXAk3twPAcvm4 0Kd5QWh0MOvDgICnuRVYU2ZYJoRZffn6VPYpk0zcJC4CPe3sGMXLMJcsa5qXU6Mj85HE ij2C6LRUK6XoJ7/DY13xFX4MP/AyBHWBRshusekM2vr7SvYZADg2HUxKG9U4ZkktBBv/ hFV2di+HzGAOBPPhqeX52IrN7vD/25vWhWJuYQwPIUrzft7e5jH9oN65O4iXmBNlx1Rz PDhA== 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:from :references:cc:to:content-language:user-agent:mime-version:date :message-id:subject:dkim-signature; bh=ePUfUx0zpncff5AIJObPVTa9YaLGSkjcz7IFyxDJVxc=; b=kbprv5wATu1UriOjPwdQ6Enty8oWQ9yDgjp+yxWmLub3G8lsZfo9MwCZ56GpBNu2zM KOGHw0+SkE+qni3nlQzdk2exsIvg8LJaRUdCcN4u9zwpy4Z4BlTMMrv0/ynqw/kSRlWw ol047gr9OxqgBoOQGQSJFYI/3jKNsk2NL+zLcpGuTBMDgEYDj9prmmrbIRDr13Mz30Io 241nWKtlorFrSoIcf2raC2Uy++r2VZoiL3/FOG1FIFG8JcE2otaSdJg9Jf65YhFJtEDt Y/cIFVPWCPALoEAF5IMvlomRa0Pp2qj7yUHAPT01yeHsKtM+KR0YFv5gi0bUARhSycyX 8iMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hboJlnbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jh18-20020a170903329200b0016f168b4368si13031841plb.547.2022.08.31.05.12.37; Wed, 31 Aug 2022 05:12:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=hboJlnbj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbiHaLz7 (ORCPT + 99 others); Wed, 31 Aug 2022 07:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiHaLz5 (ORCPT ); Wed, 31 Aug 2022 07:55:57 -0400 Received: from smtp-fw-9103.amazon.com (smtp-fw-9103.amazon.com [207.171.188.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1AE499B41; Wed, 31 Aug 2022 04:55:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1661946955; x=1693482955; h=message-id:date:mime-version:to:cc:references:from: in-reply-to:content-transfer-encoding:subject; bh=ePUfUx0zpncff5AIJObPVTa9YaLGSkjcz7IFyxDJVxc=; b=hboJlnbjsRBVxvAz7LdZdBHXJYGASyJMG67xLYGPMh9O9vCTnpfRiv4J RvOzjSjXbg5deYSZB4Gi8XMRCSLxiUAB2ZczGLNG4yqtwPDGmZslZ9bq2 K/x/bgcoRg9UOltHNbvkryxX3nBD9VHlA7vP8/FeHHp0kBC/BL5HfPOHP k=; X-IronPort-AV: E=Sophos;i="5.93,277,1654560000"; d="scan'208";a="1049907524" Subject: Re: [PATCH v3 07/19] hwmon: (mr75203) enable polling for all VM channels Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-iad-1a-b27d4a00.us-east-1.amazon.com) ([10.25.36.214]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2022 11:55:39 +0000 Received: from EX13D37EUB002.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1a-b27d4a00.us-east-1.amazon.com (Postfix) with ESMTPS id 55C5481137; Wed, 31 Aug 2022 11:55:35 +0000 (UTC) Received: from EX19D019EUB004.ant.amazon.com (10.252.51.91) by EX13D37EUB002.ant.amazon.com (10.43.166.116) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Wed, 31 Aug 2022 11:55:34 +0000 Received: from EX13MTAUEE002.ant.amazon.com (10.43.62.24) by EX19D019EUB004.ant.amazon.com (10.252.51.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.12; Wed, 31 Aug 2022 11:55:34 +0000 Received: from [192.168.153.206] (10.85.143.179) by mail-relay.amazon.com (10.43.62.224) with Microsoft SMTP Server id 15.0.1497.38 via Frontend Transport; Wed, 31 Aug 2022 11:55:29 +0000 Message-ID: Date: Wed, 31 Aug 2022 14:55:28 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Content-Language: en-US To: Andy Shevchenko CC: , , , , , , , , , , , , , , , , , , , , "Farber, Eliav" References: <20220830192212.28570-1-farbere@amazon.com> <20220830192212.28570-8-farbere@amazon.com> From: "Farber, Eliav" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/31/2022 2:21 PM, Andy Shevchenko wrote: > On Tue, Aug 30, 2022 at 07:22:00PM +0000, Eliav Farber wrote: >> Configure ip-polling register to enable polling for all voltage monitor >> channels. >> This enables reading the voltage values for all inputs other than just >> input 0. > > ... > >> +             val = GENMASK(pvt->c_num - 1, 0) | VM_CH_INIT | > > I believe in this case (BIT(pvt->c_num) - 1) is better, but not sure > if c_num can be 32. c_num can't be 32. I fix it in v4. -- Thanks, Eliav