Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp530569rdb; Thu, 2 Nov 2023 10:17:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiZekWbVANge+bNGARKAFkonCgonTbbxE0fYexnYHuqzgUhManhEKISHWYJE8BdGaOIa3n X-Received: by 2002:a17:90a:fc94:b0:27d:c499:14f3 with SMTP id ci20-20020a17090afc9400b0027dc49914f3mr16226081pjb.9.1698945460583; Thu, 02 Nov 2023 10:17:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698945460; cv=none; d=google.com; s=arc-20160816; b=tc+Y8mzvRMaUSo3fMkCzVVfd0BhMRXw1bWGnKP4Hymb0srFi98wbaA4T8hKS0s5ICq k2KrFBrNQq7VnfT/IJXc35aTXJrYBMHDgxe7dIg50tW/qUum9CMLz3p2NgGcng+J3CSd MrN7x5wHAolOZHWfapdrjXRUHEWaP0us9bwQjtqt0nHRmu3cnASOwre5tv0sZ6PRr5QW pbxolcMmGHtMKqRR4CUFvLM4/kuYGrf+Ymo1o6ZWPRY3PxEuUOU82qoCKpIgOo2XzxIX i4ZLEGA8Pxmf2BOfMx1DiTZu7z9Cui81lnySaNTcJ/jHTd+iag44dUkV366Ymp6Kx5RC pnPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature; bh=Bz6cORpfcaZknt5DQZ6VFAnZ3LhhxkSJyahVAlUv9r8=; fh=2HxqSGbKxiAHcBGA0eRVyqnjF31UQYuWb2+e3LSNJu8=; b=LZwNKEb1b6laPPvGax570RkVNuy2R6vW6Ki5zNKFJDxcOkvsi4muCFmYe65vOW9AfL ZTX5S+a+ALfP+vZ2l4flpUyC3NIWV0sqV9LX9uB0vhOW4KPUJmODzxoPnBhCxRacQ45g PKTErIFDG1riCpFXlR434H1t5Tkr12i6eJkamjLRjsa4yeBIeoA1N4y9NBpUjyCuMAzr OuBzqE4ipUklNxepWqP5FXLbNng0jlq4C3E/S78sIsefbdpKtxi36EuSz4rDMMfwadJP 2ds3EiTqH2tmv6JpPo/3yAnU/KPvtOhbgICO6TIFcGo9BgMjCPT1zfoI50d0Xx8+nfUI 96OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T0iPA5TP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ne15-20020a17090b374f00b002801dcb4770si45268pjb.137.2023.11.02.10.17.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 10:17:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=T0iPA5TP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B99D880A8B79; Thu, 2 Nov 2023 10:17:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235433AbjKBRR2 (ORCPT + 99 others); Thu, 2 Nov 2023 13:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235593AbjKBRR0 (ORCPT ); Thu, 2 Nov 2023 13:17:26 -0400 Received: from mail-oo1-xc2a.google.com (mail-oo1-xc2a.google.com [IPv6:2607:f8b0:4864:20::c2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4FA51AA; Thu, 2 Nov 2023 10:17:19 -0700 (PDT) Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-5872b8323faso606502eaf.1; Thu, 02 Nov 2023 10:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698945439; x=1699550239; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=Bz6cORpfcaZknt5DQZ6VFAnZ3LhhxkSJyahVAlUv9r8=; b=T0iPA5TPi5E1g07zwbBlD5LA6AG8av/PFgQlTs9M+Wv377YRCH4fnRoV4Y6BAxUEjs KpCbHipUHI4px/w0XMDudV5BI/aBDUVeRsRwU5t2Y5+VhlchdkJmZeKFqJDia0+OHYvu EjYIXViJfjZPxkW9JZ5hDrwng6Du3zL6XKpiQ5JfaB9ndu1Wm8BzYg0O7z79zl8Ec1sh ApamNeG2ZzEWbUx4ueKFvP7UPC5MZWq2epGR8alsFed1GGF+BzfWf8eIR0yuvCmcIJN+ MVi/WbphuPw9gjpNHP5/WoJqV1l4qB7GdTVttqWcyALMnoUMLIr7//Jq7LqcBcWJ6P61 c5fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698945439; x=1699550239; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bz6cORpfcaZknt5DQZ6VFAnZ3LhhxkSJyahVAlUv9r8=; b=sxoiFMo4r2m0agZCvpAmo8bIBQznC7S8EJUOzRnImFtc1emCgPlVCFopkV6LVuflIs M9CoDze5pdwolWUKlSkWzYJfjJvx/V/b+Y/xQX00BYhEpVf3/gIvh69JtSgUPnbydq/U uEBZEX2QcHlVRNVm72YK41Jhwd22TvI1BCzGmkM/Q79DOqJSwzTcSnssCggmGfRoIAHi o+gQhbKymPQoS8G7tBIEsBv+x32klK0VsI0Mj0o+uu3IdLhY0SAPt5RbiNGMiS9cI7/O 2kOO+pf1mGoOnHFeTBjpOXXIR3wxw8NL7hRk7AQIgboxAKerdvz8x7NfvH0ClQNW/IvT xwlQ== X-Gm-Message-State: AOJu0YyCHFC8bSBG+OjNxzQBiElmAEl1cZfusbw1f9Frnez0KIfqz99K kb0+Y7V1dSJB+JvQgAcM9B0= X-Received: by 2002:a4a:b487:0:b0:581:ed12:98c6 with SMTP id b7-20020a4ab487000000b00581ed1298c6mr17861386ooo.4.1698945438789; Thu, 02 Nov 2023 10:17:18 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 127-20020a4a1d85000000b00584086d7bdfsm1069815oog.20.2023.11.02.10.17.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Nov 2023 10:17:17 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Thu, 2 Nov 2023 10:17:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/2] rtc: max31335: add driver support Content-Language: en-US To: Alexandre Belloni , "Miclaus, Antoniu" Cc: Alessandro Zummo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean Delvare , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hwmon@vger.kernel.org" References: <20231101094835.51031-1-antoniu.miclaus@analog.com> <20231101094835.51031-2-antoniu.miclaus@analog.com> <202311012223422e3387b3@mail.local> <20231102165713296ca50b@mail.local> From: Guenter Roeck Autocrypt: addr=linux@roeck-us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nQn5mRFw7CyuFclAksOdV/sdpQnYlYcRQWOUGY HhQ5eqTRZjm9z+qQe/T0HQpmiPTqQcIaG/edgKVTUjITfA7AJMKLQHgp04Vylb+G6jocnQQX JqvvP09whbqrABEBAAHCwWUEGAECAA8CGwwFAlVcpi8FCRmg08MACgkQyx8mb86fmYHNRQ/+ J0OZsBYP4leJvQF8lx9zif+v4ZY/6C9tTcUv/KNAE5leyrD4IKbnV4PnbrVhjq861it/zRQW cFpWQszZyWRwNPWUUz7ejmm9lAwPbr8xWT4qMSA43VKQ7ZCeTQJ4TC8kjqtcbw41SjkjrcTG wF52zFO4bOWyovVAPncvV9eGA/vtnd3xEZXQiSt91kBSqK28yjxAqK/c3G6i7IX2rg6pzgqh hiH3/1qM2M/LSuqAv0Rwrt/k+pZXE+B4Ud42hwmMr0TfhNxG+X7YKvjKC+SjPjqp0CaztQ0H nsDLSLElVROxCd9m8CAUuHplgmR3seYCOrT4jriMFBtKNPtj2EE4DNV4s7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= In-Reply-To: <20231102165713296ca50b@mail.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 10:17:31 -0700 (PDT) On 11/2/23 09:57, Alexandre Belloni wrote: [ ... ] >>>> +static int max31335_read_offset(struct device *dev, long *offset) >>>> +{ >>>> + struct max31335_data *max31335 = dev_get_drvdata(dev); >>>> + u32 value; >>>> + int ret; >>>> + >>>> + ret = regmap_read(max31335->regmap, MAX31335_AGING_OFFSET, >>> &value); >>>> + if (ret) >>>> + return ret; >>>> + >>>> + *offset = value; >>> >>> This is super dubious, what is the unit of MAX31335_AGING_OFFSET ? >>> >> >> There is not additional information on the AGING_OFFSET register (no >> other offset registers). >> I treated it as a raw value that user can write/read. Should I drop the >> offset implementation? >> > > The value exposed to userspace is in parts per billion. If you can't do > the conversion, then you have to drop it. > The max31334 datasheet says "Resolution = 0.477ppm". Again, the datasheet for max31335 is not public, so it is impossible to say what the resolution is for that chip, but I would assume that it is documented. Guenter