Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1728423ioo; Fri, 27 May 2022 15:45:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvZ2m7BG37OtJRqSI8acRF+bVDWSlLcyzfnJ5VReswmzbKYKjEZ5+5pt7JweiY5lgoVZPq X-Received: by 2002:a63:f91a:0:b0:3f2:8963:78c4 with SMTP id h26-20020a63f91a000000b003f2896378c4mr38227231pgi.593.1653691542387; Fri, 27 May 2022 15:45:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653691542; cv=none; d=google.com; s=arc-20160816; b=xBZMeocuLmDG+uRxIWP7FQlnkvS2g7MFVOKBqXZ7UiahqC8dRoEgMfZVWwlzORu0sC FXCIGcZUdSg+bmsIo1XfKAJM1mZLzg2RkUuzIqJfmnpvSO9xGsXByoANYCu0Cydu37tT RCSwxz7N0QidwlGWODflsvq/EM+9BLhW8yG0Qtg/5xRUvUZrJ7VxgoJQWIsODaJZEk2o 0n+2nDGRNVNaBIuM3Nxdg4mIjA9eViKZ2ULJI2wfGWDUpfa/AZyTx/vymt6HaJGReYve /RAFXQP7yUEUCCLV3Xfn3I5hicYSe1foQyBj8g2n6rB2OFZgWomkjTdZH7zjhA9m/z8f +WZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qjXWF2SxjaLYFYf4Ou0CUK1Dlc+PO7EjfyrTq7tBWOo=; b=YI/7Pmfs6xE7eVN/F6t5iGyd0rVN7X8n4P5hqSKfqZwwOy3bGmQ8OYuQqzLPbMgfzK ag2f8N3VZ4sm5+bePX4gm7vxntZYg4eocHrsT8P5nj2bwwBx5tfhWbIyaFbHjgfkdHln CdrHvDZ4n8S8X0Smcd3v1osA1k3esuYSIp1/FpE+/rEOl1iXrvapgO0Ck3zafuzOn64M XYF+CwhB4lccDFRapdDn+1390S0USh2k3Csil5XgX2fp3EdbBYaR4Bilscx0zJ2QGw7C xQ3hwJS0coCKPDWsLYUoMkeEgkULBVX8qmf5QdN8dEE5i+43YXXaHN0X+N4Giw6wGqHu 544Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@interia.pl header.s=biztos header.b=UKroSo0d; 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=fail (p=NONE sp=NONE dis=NONE) header.from=poczta.fm Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k1-20020aa78201000000b005180f2b05b4si6224369pfi.102.2022.05.27.15.45.30; Fri, 27 May 2022 15:45:42 -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=@interia.pl header.s=biztos header.b=UKroSo0d; 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=fail (p=NONE sp=NONE dis=NONE) header.from=poczta.fm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242681AbiE0FI4 (ORCPT + 99 others); Fri, 27 May 2022 01:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238400AbiE0FIw (ORCPT ); Fri, 27 May 2022 01:08:52 -0400 Received: from smtpo49.interia.pl (smtpo49.interia.pl [217.74.67.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1FA69CD8 for ; Thu, 26 May 2022 22:08:49 -0700 (PDT) X-Interia-R: Interia X-Interia-R-IP: 80.68.225.159 X-Interia-R-Helo: Received: from t480s.localdomain (unknown [80.68.225.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by poczta.interia.pl (INTERIA.PL) with ESMTPSA; Fri, 27 May 2022 07:08:45 +0200 (CEST) Date: Fri, 27 May 2022 07:08:42 +0200 From: Slawomir Stepien To: Guenter Roeck Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Jean Delvare Subject: Re: [PATCH 20/40] hwmon: (lm90) Add support for ADT7481, ADT7482, and ADT7483 Message-ID: References: <20220525135758.2944744-1-linux@roeck-us.net> <20220525135758.2944744-21-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220525135758.2944744-21-linux@roeck-us.net> X-Interia-Antivirus: OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1653628126; bh=qjXWF2SxjaLYFYf4Ou0CUK1Dlc+PO7EjfyrTq7tBWOo=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=UKroSo0dRAWXUUhdlNS0A2Fu7h4Mq1waoWVlDr2/VA/P8V+gOtcL9MnfI+8b/m7MH NRs/ciX2253v8M5W4xRwf0t4D0aEw2yCWxGGxtr9Umyqu7WfLd7F0218DuuMivuX0m Yx4TT1p/CN4u/OWh1WRRVqRUkCZpnkkJJCLfexBw= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 maj 25, 2022 06:57, Guenter Roeck wrote: > ADT7481, ADT7482, and ADT7483 are similar to ADT7461, but support two > external temperature sensors, similar to MAX6695/6696. They support an > extended temperature range similar to ADT7461. Registers for the second > external channel can be accessed directly or by using the same method as > used by MAX6695/6696. For simplicity, the access method implemented for > MAX6695/6696 is used. > > The chips support PEC (packet error checking). Set the PEC feature flag > and let the user decide if it should be enabled or not (it is by default > disabled). > > Even though it is only documented for ADT7483, all three chips support a > secondary manufacturer ID register at 0x3e and a chip ID register at 0x3f. > Use the contents of those registers register for improved chip detection > accuracy. Add the same check to the ADT7461A detection code since this chip > also supports the same (undocumented) registers. > > Devicetree nodes are not added for the added chips since it is quite > unlikely that such old chips will ever be used in a devicetree based > system. They can be added later if needed. > > Signed-off-by: Guenter Roeck > --- > Documentation/hwmon/lm90.rst | 38 +++++++++++ > drivers/hwmon/Kconfig | 3 +- > drivers/hwmon/lm90.c | 119 ++++++++++++++++++++++++++--------- > 3 files changed, 129 insertions(+), 31 deletions(-) Reviewed-by: Slawomir Stepien -- Slawomir Stepien