From patchwork Mon Mar 8 08:08:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jiqi JQ9 Li X-Patchwork-Id: 12121737 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.6 required=3.0 tests=BAYES_00, CHARSET_FARAWAY_HEADER,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 454E7C433E0 for ; Mon, 8 Mar 2021 08:09:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E067E65062 for ; Mon, 8 Mar 2021 08:09:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbhCHIJQ (ORCPT ); Mon, 8 Mar 2021 03:09:16 -0500 Received: from mail1.bemta24.messagelabs.com ([67.219.250.116]:42012 "EHLO mail1.bemta24.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230342AbhCHIIl (ORCPT ); Mon, 8 Mar 2021 03:08:41 -0500 Received: from [100.112.135.57] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-5.bemta.az-b.us-west-2.aws.symcld.net id 6F/81-48750-88BD5406; Mon, 08 Mar 2021 08:08:40 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGJsWRWlGSWpSXmKPExsWS8eIhl277bdc Egwl/DS3OTgi0aH+9ldHi8q45bBZPFp5hcmDx2Pm9gd1j/ZarLB6fN8kF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J3feCPi8++H/CXZvfJqq3ePZv+1jqtbrl0EmZq96skQq shteFeB/aT1nxx2Xt1cUKtZqTb6q8YpnZwjzjxOzJugU3vltMKLn2SermEb7678zly24drbhz XomlOCPRUIu5qDgRAH2VpdNpBAAA X-Env-Sender: lijq9@lenovo.com X-Msg-Ref: server-2.tower-355.messagelabs.com!1615190918!106525!1 X-Originating-IP: [104.232.225.10] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.60.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18343 invoked from network); 8 Mar 2021 08:08:39 -0000 Received: from unknown (HELO lenovo.com) (104.232.225.10) by server-2.tower-355.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 8 Mar 2021 08:08:39 -0000 Received: from HKGWPEMAIL03.lenovo.com (unknown [10.128.3.71]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by Forcepoint Email with ESMTPS id 236E061137F8D74BEFC3; Mon, 8 Mar 2021 03:08:36 -0500 (EST) Received: from HKGWPEMAIL02.lenovo.com (10.128.3.70) by HKGWPEMAIL03.lenovo.com (10.128.3.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Mon, 8 Mar 2021 16:08:33 +0800 Received: from HKEXEDGE01.lenovo.com (10.128.62.71) by HKGWPEMAIL02.lenovo.com (10.128.3.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2 via Frontend Transport; Mon, 8 Mar 2021 16:08:33 +0800 Received: from APC01-PU1-obe.outbound.protection.outlook.com (104.47.126.55) by mail.lenovo.com (10.128.62.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Mon, 8 Mar 2021 16:08:33 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e/28j28HxTONNL1CVpZZsbyQubFJbykb/DP7YXMtY1HAunXiBdYOzYsXZj7W3q/BmNuVh4zCSxFYZmD9W77I5rncjPiLJWWgRFQ//P3X8yToBddTTq9ovQGLutNvMQFHc/B9MNSY8gOp63fCQpn81od1dotEbBKuIq36200bhpXN1frdkVjH9UZe/rhuNdEZfQ3MXIzGw7b6NhypM5n4/QiqT8Tjd+ECTMGzYJT9RN2ookozl/RTaG+3mk2Sl+ItikluLma5vWecTetEvzcibDwCAEI4x3AT/lO8EX4Xct5xVaFg/I6Kvznmp2eUtkzQDcpWHevjOFDxlis2C5Sp1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sxh+mvO550bZcIK8LpvTxIyx1TwGP9ATKMVHUeTNvlw=; b=OQn6RCPRLl76ab5VjBgwjym8jHCYKrOEyPmHjWcdX5ezfNkU9JB1UchJiiLJpHPTgV8sCcd/Ja3ksNIXone3d5cRs2g9S03C+cx55YcaXeqxb2FefAX+epvaWvbUDSu9YIShXbKMJMGZfjpxgy7IEaAQGkCJxKf3F4G+6aZlNb26hXQhirBESvqS6ToWTGeXsi0ar2vHDTrAD4l+r6bX8ZcW/IecaaMQFQpYvvOBFvo/uOIIEzIZsHDurnCjME9J/KPMfFl8EI4WnEYqip4mVINlKBcUrQIpNCbXgCpkiblpLcn/VIXip9/PQXunC37AXubqX18T/izjmuG+mgUiyw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=lenovo.com; dmarc=pass action=none header.from=lenovo.com; dkim=pass header.d=lenovo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=LenovoBeijing.onmicrosoft.com; s=selector2-LenovoBeijing-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sxh+mvO550bZcIK8LpvTxIyx1TwGP9ATKMVHUeTNvlw=; b=Lu0RbQeCEQ8FSJ9H/3ctNZ54lhSLrFznNggqAxfAyTLme1g+wtaism6pux47MpQvhzaxS4e1fyGHPVREFD3eyKbVGLZQUIocXsIeqXFjOoVRG7cwW9L5bgPVNDWnJdLA0TIn/yp2R37yY1OfgmH45xamzv2H6BNhOI/Ct3hYcY8= Received: from HK0PR03MB3700.apcprd03.prod.outlook.com (2603:1096:203:74::13) by HK0PR03MB3009.apcprd03.prod.outlook.com (2603:1096:203:4d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.13; Mon, 8 Mar 2021 08:08:31 +0000 Received: from HK0PR03MB3700.apcprd03.prod.outlook.com ([fe80::d923:be7c:16c6:b9f8]) by HK0PR03MB3700.apcprd03.prod.outlook.com ([fe80::d923:be7c:16c6:b9f8%2]) with mapi id 15.20.3912.027; Mon, 8 Mar 2021 08:08:31 +0000 From: Jiqi JQ9 Li To: Guenter Roeck , "jdelvare@suse.com" , "linux-hwmon@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Mark RH Pearson Subject: =?eucgb2312_cn?b?u9i4tDogW1BBVENIIHYyXSBod21vbjogKG5jdDY4ODMpIFN1cHBvcnQg?= =?eucgb2312_cn?b?TkNUNjY4NkQ=?= Thread-Topic: [PATCH v2] hwmon: (nct6883) Support NCT6686D Thread-Index: AQHXEONlo6uqJyVBcEqZAQGxtj2EYqp5wmLQ Date: Mon, 8 Mar 2021 08:08:31 +0000 Message-ID: References: <20210304104421.1912934-1-lijq9@lenovo.com> In-Reply-To: <20210304104421.1912934-1-lijq9@lenovo.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [57.197.58.15] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bb0ea622-8702-4e89-c86c-08d8e2095cd3 x-ms-traffictypediagnostic: HK0PR03MB3009: x-ld-processed: 5c7d0b28-bdf8-410c-aa93-4df372b16203,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VKigepyhCwxWbT5FgGUwab+qYVypDNw/2hzF826AslVSaRara0yfRJcxSIxbwMMoc0PNAMLaKVr6SNBXWkwZVvtTiU0iO1DUVqcwhmuR1xK3vvwCnOJGKAgUG5Rcwng7p2j9rBYKncdEM1YEXCiRn9VCX85I5tAFfozLdJKwMinSn/JDeG3n6qKeLqvkuOD7G4m2jYNqmXX4ekzCP4jnhgAIST/hV61FGPs4jAk9HtteWAoDyupSCDPqeQ6eBpRAbFXGsVXsCR+xQG/d2xadnvw0PmWAMutz1mIJCeGvEfAT9urCCUL0tzpbR0yFZxXg1LUf5e9i4LtrwboFtAqu23VC8kcnXlqS0FTSDNy6YLt7LkrQnOhyfiiJABvl0SA+uuGLxPlugCGGABWO9ZXYuxs5XsdbYSS6AoONoGyqKXtibvHhgmZAtY7zRF+0DizTTjdAPevkghWs3rEx7mjztwtS9NVUhQdBg0JVp2D0Jkr1YCWuZkoB4qlxAceVD5+eOgN28EiDtRkqHVEtpDMfnzniinT0568F6k+fs64IzSxWQ3AiwUfuPKidgaAJIbHJ x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HK0PR03MB3700.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(396003)(346002)(376002)(136003)(366004)(9686003)(71200400001)(33656002)(55016002)(66946007)(110136005)(66446008)(478600001)(4326008)(86362001)(26005)(316002)(2906002)(5660300002)(8936002)(76116006)(64756008)(7696005)(83380400001)(186003)(6506007)(52536014)(224303003)(107886003)(66556008)(66476007);DIR:OUT;SFP:1102; x-ms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DZiZkZYemJEMDFzTnAvZUpWOFEzbW53WjdsOWNmWmlu?= =?eucgb2312_cn?b?Unc5em5SZFF5NVVnTnVVbnNmd1U5TmxNaU5HUE5hQzRISll6YXVlZStxck5SbEVr?= =?eucgb2312_cn?b?eVFYb2hQZXQ2c20wNi8ybURhK3NlUVQxVjBY?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HK0PR03MB3700.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb0ea622-8702-4e89-c86c-08d8e2095cd3 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2021 08:08:31.2101 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5c7d0b28-bdf8-410c-aa93-4df372b16203 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 111Dp2kcs1PHj0MdzI5F3uctAOozVlZpV5sIaYgPCvo916iV28B8Z+OtC8ifZKKaXSauxJmRU9GjfdvJCbOy0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK0PR03MB3009 X-OriginatorOrg: lenovo.com Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Hi Guenter, Could you please take a look this version? Thanks. Regards, Jiqi. -----邮件原件----- 发件人: Jiqi JQ9 Li 发送时间: 2021年3月4日 18:44 收件人: jdelvare@suse.com; linux@roeck-us.net; linux-hwmon@vger.kernel.org; linux-kernel@vger.kernel.org 抄送: Mark RH Pearson ; Jiqi JQ9 Li 主题: [PATCH v2] hwmon: (nct6883) Support NCT6686D Add support for NCT6686D chip used in the Lenovo P620. Signed-off-by: Jiqi Li Reviewed-by: Mark Pearson --- Changes in v2: Corrected typo from NCT6886D to NCT6686D --- drivers/hwmon/nct6683.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) -- 2.18.2 diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index a23047a3bfe2..256e8d62f858 100644 --- a/drivers/hwmon/nct6683.c +++ b/drivers/hwmon/nct6683.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later /* * nct6683 - Driver for the hardware monitoring functionality of - * Nuvoton NCT6683D/NCT6687D eSIO + * Nuvoton NCT6683D/NCT6686D/NCT6687D eSIO * * Copyright (C) 2013 Guenter Roeck * @@ -12,6 +12,7 @@ * * Chip #vin #fan #pwm #temp chip ID * nct6683d 21(1) 16 8 32(1) 0xc730 + * nct6686d 21(1) 16 8 32(1) 0xd440 * nct6687d 21(1) 16 8 32(1) 0xd590 * * Notes: @@ -33,7 +34,7 @@ #include #include -enum kinds { nct6683, nct6687 }; +enum kinds { nct6683, nct6686, nct6687 }; static bool force; module_param(force, bool, 0); @@ -41,11 +42,13 @@ MODULE_PARM_DESC(force, "Set to one to enable support for unknown vendors"); static const char * const nct6683_device_names[] = { "nct6683", + "nct6686", "nct6687", }; static const char * const nct6683_chip_names[] = { "NCT6683D", + "NCT6686D", "NCT6687D", }; @@ -66,6 +69,7 @@ static const char * const nct6683_chip_names[] = { #define SIO_NCT6681_ID 0xb270 /* for later */ #define SIO_NCT6683_ID 0xc730 +#define SIO_NCT6686_ID 0xd440 #define SIO_NCT6687_ID 0xd590 #define SIO_ID_MASK 0xFFF0 @@ -1362,6 +1366,9 @@ static int __init nct6683_find(int sioaddr, struct nct6683_sio_data *sio_data) case SIO_NCT6683_ID: sio_data->kind = nct6683; break; + case SIO_NCT6686_ID: + sio_data->kind = nct6686; + break; case SIO_NCT6687_ID: sio_data->kind = nct6687; break;