Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3005459rdb; Wed, 15 Nov 2023 18:26:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOyiLFmuwOhbDE5iQ5Eg15k+O+94X3lZwywwEwK1NByww3HaNNSkoQhHnSfvfW2VaYpz8S X-Received: by 2002:a05:6a20:9148:b0:181:5ee9:ba93 with SMTP id x8-20020a056a20914800b001815ee9ba93mr13649035pzc.26.1700101581727; Wed, 15 Nov 2023 18:26:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700101581; cv=none; d=google.com; s=arc-20160816; b=y1/b/zRS+VZTcEINOKgI4xi2NW1J6Dq06Mp7slWs+XC7WP4a0IOzo5tom9dm4TkgeB xYX8ghyT6PV50Boyq6QnCQSBVo3Sq/q8VYGhLSwX3PkKG9n07hVBW6IiKnKVsR6DpSb3 68xUcHb8P03WPaO8+fC2dfrY7XsB8nCj11ODhWM7YMdLPblORv7/JecNKixWBXahycSg ojcGhfL186/f7Q7eZF+02gSZFXwl57Yn92uPFaVcE65v+lnW5mRPIvqIbKJV7OR0iDdc CII9Md0ibkRT3hGbp7I38+BYfzDDfuojSoHRjp66IOkQDDrxkRX3A8xYOoS2Rx6ZeOAy nCDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hijftSCcjG/9boz0oEYP+nVxe7rLA+Dx/w2RlM3IhcM=; fh=brTD9uWwHSBEuDMsNSIyrWZVEeJXt4Ae/wkRCvfJiZk=; b=eQEQ/IxbpsNwQOpa0aOy/7pT/QEKdHfp8PdQHw8bnENS72QYDdOUBXfy5efs57vVlb vyG8vDk7Q5KHJAm43NQpoH+ET2mYQwuevS27UF1O0oO7bOdsDDGUM3Avg/25VptGvAP/ C26Z56xbMkibPrdeL0zDh2X9YeEKa5qpCimSgK0JQZzcVe4vv/ePkOoN3GzZcVARgVrg Gy3tB4cVmczxFJd3/aM4Lez+tFuHotGrfcHcSgO3EiTKCo3lwGTUHQitstxtRapwiMj6 0bjszvq5W6csrHWhkXSH9eBmsBYt3gQZd6UTPUPOTlCCdIkuMjcii6o4JotTu7DCyxbG JgHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=QgdDwbXn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id b1-20020a170902d30100b001b86ddfd49bsi10762849plc.6.2023.11.15.18.26.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 18:26:21 -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=@163.com header.s=s110527 header.b=QgdDwbXn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0A4028079308; Wed, 15 Nov 2023 18:26: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 S1344570AbjKPCZD (ORCPT + 99 others); Wed, 15 Nov 2023 21:25:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235725AbjKPCYx (ORCPT ); Wed, 15 Nov 2023 21:24:53 -0500 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DDA841B2; Wed, 15 Nov 2023 18:24:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=hijft SCcjG/9boz0oEYP+nVxe7rLA+Dx/w2RlM3IhcM=; b=QgdDwbXnbs69uyuHTiUNJ 9QLs+wt31XmvrnsGpX600Qy2/SACwcUHp3oPVFnAu8ZnVns2jlP/ldoe4VqxnAgt Oo2oW+GOOWmr2GsYzZPUy+jtC0zn0OoVTcqalz/geFI44Uli0IQKu7MBUvBRLely hFfmysW/EC8bqBShNZUv9Q= Received: from localhost.localdomain (unknown [39.144.137.125]) by zwqz-smtp-mta-g4-4 (Coremail) with SMTP id _____wD3H2U+fVVl5bnXDA--.19779S3; Thu, 16 Nov 2023 10:24:07 +0800 (CST) From: Xing Tong Wu To: Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Cc: xingtong.wu@siemens.com, tobias.schaffner@siemens.com, gerd.haeussler.ext@siemens.com Subject: [PATCH 1/3] hwmon: (nct6775) Fix incomplete register array Date: Thu, 16 Nov 2023 10:23:28 +0800 Message-Id: <20231116022330.2696-2-xingtong_wu@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231116022330.2696-1-xingtong_wu@163.com> References: <20231116022330.2696-1-xingtong_wu@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wD3H2U+fVVl5bnXDA--.19779S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7ur1fXr1Dtry8uF1xur4xXrb_yoW8Gr1kpF ykXrWSy3Wrt3WavF43Ga1ru3W3Cwn7ArWIyw1UCw4SkFn5tFyxXF43KFyqywn0yFWfJa42 9FykJFWYg3Z8CF7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jqxRhUUUUU= X-Originating-IP: [39.144.137.125] X-CM-SenderInfo: p0lqw35rqjs4rx6rljoofrz/1tbiEAsq0F8YMgZlaQAAse X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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]); Wed, 15 Nov 2023 18:26:14 -0800 (PST) From: Xing Tong Wu The nct6116 specification actually includes 5 PWMs, but only 3 PWMs are present in the array. To address this, the missing 2 PWMs have been added to the array. Signed-off-by: Xing Tong Wu --- drivers/hwmon/nct6775-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/nct6775-core.c b/drivers/hwmon/nct6775-core.c index d928eb8ae5a3..2111f0cd9787 100644 --- a/drivers/hwmon/nct6775-core.c +++ b/drivers/hwmon/nct6775-core.c @@ -769,7 +769,7 @@ static const u16 NCT6106_FAN_PULSE_SHIFT[] = { 0, 2, 4 }; static const u8 NCT6106_REG_PWM_MODE[] = { 0xf3, 0xf3, 0xf3 }; static const u8 NCT6106_PWM_MODE_MASK[] = { 0x01, 0x02, 0x04 }; -static const u16 NCT6106_REG_PWM_READ[] = { 0x4a, 0x4b, 0x4c }; +static const u16 NCT6106_REG_PWM_READ[] = { 0x4a, 0x4b, 0x4c, 0xd8, 0xd9 }; static const u16 NCT6106_REG_FAN_MODE[] = { 0x113, 0x123, 0x133 }; static const u16 NCT6106_REG_TEMP_SOURCE[] = { 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5 }; @@ -3595,7 +3595,7 @@ int nct6775_probe(struct device *dev, struct nct6775_data *data, break; case nct6116: data->in_num = 9; - data->pwm_num = 3; + data->pwm_num = 5; data->auto_pwm_num = 4; data->temp_fixed_num = 3; data->num_temp_alarms = 3; -- 2.25.1