Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1392660lql; Tue, 12 Mar 2024 16:26:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyxUpP7K9eHLhU8sfxOg8/0FPe3F3PkA6d74zWIyPHyjiZJ+CvryQlD0mJ4dhe6IIEuRbgQoMGpf4GuIReZOUSEq3uv5vPWZoFqzRjsw== X-Google-Smtp-Source: AGHT+IFbGGSzLDr9nt5pBJDV64e6j3zkAtV6XC9TYJmvQyHcwOXuZ3UTlYduQ99YXhjLXEknP4r0 X-Received: by 2002:a17:902:ce8d:b0:1dc:b6ef:e237 with SMTP id f13-20020a170902ce8d00b001dcb6efe237mr1331000plg.31.1710286012531; Tue, 12 Mar 2024 16:26:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710286012; cv=pass; d=google.com; s=arc-20160816; b=C/BuhWVlY+Lj+vH7JAwCq+SKIgp67zHvDMdETFqt7kBwFrsceIZSdq4XPYMEKSysBb V2dgUtn59XeJ+vFhfgmB8nR6KqikzsN1BHy/CV8OAdE75vLaWC2FQDDEZhOqixSf4L01 5vqTT88DHmp5itX1sDppSQUdTAHpN/hJOpKYaGZP3UnHjvNXGPiVwWnI6nzvSgaWJpbj ZyOzHwnRhfImkBtANf/wQVt+pIURujRSVN+LRe4cfHzDz21SRzxGOQ+NcYjEvQTnxQAJ 7nj7oa5TV2hHODn6aT59AicIg2tXz0csbTCDK48lYl5TNChabB2sv5Y6bW2vTRDnULuU V6/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EYwBh95DHhz9r9QVHywR28E43x2Y+m0ywwZ1m0v/Ne0=; fh=1pjoyKHJGO1AZhXb6fhIU6leHyv46Q557oVSI3Bg1j0=; b=ylXkvKo/Y+gPQx9Uugcr4UMXXVU4Wacj4KR6kvhdjwe4aIf+cAq2NpoLpyuEciYQ72 60bB6eIiW3058vagN/1/WgA+QnPsJAlI/n9MCXQD3/L5XpEqznSWLwlGEmRY/gMnBAiC +1vo8kuS0jnZ1xj8e8QqzSizRih6W22/MLGK/p0bA1dInAVwI1K7QpAWkkdHjSHbUZp2 +DqgeKxbxzFiGKmayY/UgYsKU3S44rRUtUNSgF2UueYvw74r7SXf+uHvjnZ9sUdiSRDX 0ldCmd36uov6uEdbsa9eC87HVKkM5KjBWpPh8jEhrQfDv/zLjf5vHiH3qMTqAA6Aujd5 68vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=ES8+2yK7; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-100921-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h17-20020a170902f55100b001ddbab57f3dsi1974544plf.234.2024.03.12.16.26.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 16:26:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100921-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=ES8+2yK7; arc=pass (i=1 spf=pass spfdomain=bewilderbeest.net dkim=pass dkdomain=bewilderbeest.net dmarc=pass fromdomain=bewilderbeest.net); spf=pass (google.com: domain of linux-kernel+bounces-100921-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=bewilderbeest.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CCE8BB217B8 for ; Tue, 12 Mar 2024 23:26:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B3BB47F41; Tue, 12 Mar 2024 23:26:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b="ES8+2yK7" Received: from thorn.bewilderbeest.net (thorn.bewilderbeest.net [71.19.156.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1122D4AEC7; Tue, 12 Mar 2024 23:26:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=71.19.156.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710285997; cv=none; b=BBZIQS+IH45QQyvozR15xCbeLebqV2FR+y4SDO5BTkqhOJnsy17ttuLo4w0zQxXRoHO9ivqCM2MCpuByLz/W7JnOUk9SANWnVxeSbxDhvZFP9HIRc6cS+uvQ3H0cuQVCjJge2Z2GABu+KyZJJbutDezDqmdxL5hYCHrCZwhh0YE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710285997; c=relaxed/simple; bh=Kh3TkSItmOPvkF5HlCsbRVwXmKzwWlNpiqTijsrHll8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P+U3KVbffwk7TFu006uT4hEaMyZswyJqDJ3NzpeLhty4gQvW1vUj81VfqUZUOIRs84+4rBV0OBqQgv6Su8Zc13x6cX/2FvwF19jCDfhxDao7wwTA9sSp1DuokIUDiMTHfYl2DG3EyTCPBgT96VPGCU5IoSHYQHbIv086BKR2ois= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net; spf=pass smtp.mailfrom=bewilderbeest.net; dkim=pass (1024-bit key) header.d=bewilderbeest.net header.i=@bewilderbeest.net header.b=ES8+2yK7; arc=none smtp.client-ip=71.19.156.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bewilderbeest.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bewilderbeest.net Received: from hatter.bewilderbeest.net (unknown [IPv6:2602:61:712b:6300::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 1EBA16C5; Tue, 12 Mar 2024 16:18:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1710285504; bh=EYwBh95DHhz9r9QVHywR28E43x2Y+m0ywwZ1m0v/Ne0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ES8+2yK7wjiIjMBDw8RuZ3IxWwX8x2LPTh/Meu+zvnyCL6IYGxZdM9aT3q79RhEi6 5Ky10wTfYLgc2llCsDKgXtoEiF2wNm0KL+qU//WdHHqw/CQbnyyBucXq13DMfgwMFY rJFLg1Ruo/C2nb9DLfhytK/QIcETYK369yehGzEA= Date: Tue, 12 Mar 2024 16:18:22 -0700 From: Zev Weiss To: Ban Feng Cc: jdelvare@suse.com, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, corbet@lwn.net, linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, kcfeng0@nuvoton.com, kwliu@nuvoton.com, openbmc@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, DELPHINE_CHIU@wiwynn.com, naresh.solanki@9elements.com, billy_tsai@aspeedtech.com Subject: Re: [PATCH v4 3/3] hwmon: Driver for Nuvoton NCT7363Y Message-ID: References: <20240227005606.1107203-1-kcfeng0@nuvoton.com> <20240227005606.1107203-4-kcfeng0@nuvoton.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Mar 06, 2024 at 11:35:31PM PST, Ban Feng wrote: >Hi Zev, > >On Sat, Mar 2, 2024 at 4:19 PM Zev Weiss wrote: >> >> On Mon, Feb 26, 2024 at 04:56:06PM PST, baneric926@gmail.com wrote: >> >From: Ban Feng >> > >> >NCT7363Y is an I2C based hardware monitoring chip from Nuvoton. >> > >> >Signed-off-by: Ban Feng >> >--- >> >+ >> >+static const struct of_device_id nct7363_of_match[] = { >> >+ { .compatible = "nuvoton,nct7363" }, >> >> As far as I can see from the code in this driver, it looks like this >> driver should also be compatible with the nct7362; shall we add the ID >> table entry for it now? (Though I only have a datasheet for the >> nct7362, not the nct7363, so I don't know exactly how they differ.) > >As far as I know, the difference between these two ICs is 0x2A~0x2C >Fading LED for 7362, and 0x2A Watchdog Timer for 7363. >In my v1 patch, I indeed add the nct7362 to the ID table, however, >this makes it more complicated and our datasheet isn't public yet. >I think maybe supporting more chips will be done in the future, but not now. > If the only differences are in features the driver doesn't utilize, I'm not clear on how it adds any complexity. As far as I'm aware, neither datasheet is public (NCT7363 nor NCT7362), so if we're going to have a public driver for one, why not also do so for the other? It's a single additional line -- and furthermore, having made that change and tested it out, I can report that the driver seems to work just fine on NCT7362 hardware as well. Zev