From patchwork Tue Mar 2 06:21:13 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: 12112669 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 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 719BAC433E9 for ; Wed, 3 Mar 2021 02:20:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2C70C64E75 for ; Wed, 3 Mar 2021 02:20:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232140AbhCCCI1 (ORCPT ); Tue, 2 Mar 2021 21:08:27 -0500 Received: from mail-eopbgr1320131.outbound.protection.outlook.com ([40.107.132.131]:64880 "EHLO APC01-PU1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1577479AbhCBGWy (ORCPT ); Tue, 2 Mar 2021 01:22:54 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bqy2DnCoYL9nLPVjPs71GPmS7fFf/Q43qoERg0hswxZLkoOkZEWknsdRjXD9rAvzpH80i0S3Eb0rqa5kbMwj/irV/dNDZx4gHZ3opmImMl8r+fZX6WMnJSi+3nmhyaB5nHItEYlHff2xhVRxO5UdadsOJb8n9mjHh2KypSLdRlhuMdvxxv05goIoZmac2H2+vkhuRAXiF/Ego3tKITqzdsUKdgfMY8fJ8LiqlFhV70cn1gbbgIdNiH3xC/mvH94ya/Gwp9zkEixewHYS43lgypv8luJA0gJsEpDVJpuwN2xiPf66UkXTmVxdtZEb6IYckapd9cNA7MrYmRtwwfzh4A== 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=Gh6s7RhEN4jd9wrmIykjpEWkk3ul2va6ca4Xl9yNxnU=; b=SeZ0Y5+PObs0hdisGdu8HaXoP3NfylyjbsMNsPXn9qCYL+ocotXUBy8e6sbCSgxHFzRfIPpzv5hnnmebZ/0tuVbsktpKzhlbAPl5XNKfwS8+SGQ6TW72YlYDhJC9NwXEu5WMfNDJpN+93cM+ce8JmWRe+4OdYrSzGvSw6Hhjk9nsfNvYCLDbyCZzK7YqdPWVxIUZ+4TzLI/f+1bGSsGz6qQDaom5fy9QOTd+kKZS02npUbyyMDN7rSkREbT3Gi3BmgfBBIKtzl49/TzZ7HQRvP296M2Sb321MEVj6/L8W4j4xgIG2MxGOhLsvinDVTOQ5PYpyu2+DXJynsaxEUQ+Rg== 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=Gh6s7RhEN4jd9wrmIykjpEWkk3ul2va6ca4Xl9yNxnU=; b=qb+ijtuUYVxvd9wbfy9eyvc4G9NdqygRcpCuU5mtfCx3Wi8te3ffmpIPWpVRGAZBenr7mSgJCSmVSzIHNbFDT32m8Lkobon9fmAAVVl+Thpw7GtxqDfT5auYjEHWaWjyY4MgBAW1S1EDRN1Vet7ZNTCNhe88MJtO7NWfiN3KTUM= Received: from HK0PR03MB3700.apcprd03.prod.outlook.com (2603:1096:203:74::13) by HK0PR03MB3106.apcprd03.prod.outlook.com (2603:1096:203:4a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.9; Tue, 2 Mar 2021 06:21:13 +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.016; Tue, 2 Mar 2021 06:21:13 +0000 From: Jiqi JQ9 Li To: "jdelvare@suse.com" , "linux@roeck-us.net" , "linux-hwmon@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Mark RH Pearson Subject: =?eucgb2312_cn?b?u9i4tDogW1BBVENIXSBod21vbjogKG5jdDY4ODMpIFN1cHBvcnQgTkNU?= =?eucgb2312_cn?b?Njg4NmQ=?= Thread-Topic: [PATCH] hwmon: (nct6883) Support NCT6886d Thread-Index: AQHXDyr31rtjFAcEvE6noeRX8jYlw6pwOa8w Date: Tue, 2 Mar 2021 06:21:13 +0000 Message-ID: References: <20210302061205.1825664-1-lijq9@lenovo.com> In-Reply-To: <20210302061205.1825664-1-lijq9@lenovo.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=none action=none header.from=lenovo.com; x-originating-ip: [57.197.58.26] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 12f1edc7-ec2a-4bf2-3611-08d8dd436149 x-ms-traffictypediagnostic: HK0PR03MB3106: 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:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: C4py6HjAsaZ3WgGrHaJbHv2xm7MpgrFxKoHDNn/tb8xfmdBTpuU+Fhg5iPFPKXRqcXEm0FT3jgyYiJiwZ8SYP7bb9kATp9+3EMKgINEajJkEPN21IufR+2hmwlbjyNlwJsKiGTI1pTr4342o4Oira2G35bf2CH0LJwi7UQPioe+sVCc7VeDNV9OP2p292WgbZh81NVZQQ9jKfySQfZnttzGV7Aoq7yiwYV5ngzZ7DDTC4DMyNLHXpfjvVAHaW9YRfehBIbZ7R08Bx1MPUCJf0GvoU3vsjxLi3/WyhnNR9wtMoTelJjgZ1KT+EUxbiVDCAbLkAkqI6v3suYi3pwWVaglfFN+B2HO+IhcoTfqO+Kkt0neB7X7K6+jNOwl45d4AuCwKY396tGUnixkdXNLyzLBKV1B2u+t/N6PSc5i0IAXiFX/uxtMQkOwB9XHNrmqqEtDKHF8zv9jvaEb6cVRbednvSrdp6hq4uZxK7dhPoD/41qTn/4UHXZZ1/5ioWFQM0DqmLh3Sv4yBkwVhd5z08Q== 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)(346002)(136003)(39860400002)(396003)(366004)(376002)(5660300002)(71200400001)(64756008)(2906002)(7696005)(316002)(86362001)(26005)(8936002)(6506007)(186003)(33656002)(4326008)(107886003)(478600001)(76116006)(83380400001)(224303003)(52536014)(66556008)(55016002)(9686003)(66476007)(66946007)(110136005)(66446008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?eucgb2312_cn?b?aGN4eWwrbGJRcWEzMTcwUWVoTDVz?= =?eucgb2312_cn?b?V3dZcyt0RnFsdXU5ckkycy9OM1RseXNDcjhCLzMxNmptT1d6bnBiRzdoeE1yY2Y1?= =?eucgb2312_cn?b?Q0NvQ09vNjk5dTVtOG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0 X-OriginatorOrg: lenovo.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HK0PR03MB3700.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12f1edc7-ec2a-4bf2-3611-08d8dd436149 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2021 06:21:13.6561 (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: gPhgOqoWBHZFrsNrQEiyXBOb8RmWMfRKBu/NinApkVIxStq65DUSvytce/MDJkUJhAXWpiFuzKsLnXj5UQMW+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK0PR03MB3106 Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org Sorry, Please ignore this email as some typos. -----邮件原件----- 发件人: Jiqi JQ9 Li 发送时间: 2021年3月2日 14:12 收件人: jdelvare@suse.com; linux@roeck-us.net; linux-hwmon@vger.kernel.org; linux-kernel@vger.kernel.org 抄送: Mark RH Pearson ; Jiqi JQ9 Li 主题: [PATCH] hwmon: (nct6883) Support NCT6886d Add support for NCT6886d chip used in the Lenovo P620. Signed-off-by: Jiqi Li Reviewed-by: Mark Pearson --- drivers/hwmon/nct6683.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.18.2 diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index a23047a3bfe2..3de7bd146965 100644 --- a/drivers/hwmon/nct6683.c +++ b/drivers/hwmon/nct6683.c @@ -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;