Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp175948rdb; Tue, 31 Oct 2023 04:37:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHYBHY7YjR06OL87nvVP8OTu3LkxzRcDz/86z7Xe7PzhyZSBS5qnBwms6BPp/gDUWwaCseh X-Received: by 2002:a17:903:1211:b0:1bb:994c:bc43 with SMTP id l17-20020a170903121100b001bb994cbc43mr11175397plh.18.1698752225400; Tue, 31 Oct 2023 04:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698752225; cv=none; d=google.com; s=arc-20160816; b=cZE5P6ws2heX+Be4yf0Khu+aeqGDC9+dVvuBeRSNw7KYMAcOn/FqOMLYq5E+BJ49OW eYxxUNFS7rOAqvxrI+QRfDAH14Nkp3F7G3oIlhmalf/WQGBjxgxfrjk8F2JxFmqF+Mwh thpOe0yurbRLo11v3yX46TN4/dQGpn/7rDJdZxQrH5sX+SY+fNm4oTVgnkESOQTTdPMk E0q0sKL3SJis9oQliTyhMLw3wSRhutiMNp+WoEeeWM+vYwLptS3Azo1NPxhJUFegaJmu ft/EsvVMsQuCVE1JYnKH1RtYic6c0EabejhGRmKC1g25+Y56Gva7KLO/9p6Ja8oAeD0+ IkVg== 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:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=9KvNXF6pEJh/jTsRIm8nizvmtEilekGphzqImz455pY=; fh=4HVnyCeNg5NlAlTIjybXJOcQmVpSviKwuKrYI2W12rY=; b=S40xufFfQj+a6NghvI/MgJvhkrK24rWnDBHcpMyjZJSWLqucmLOpRcikT1k0TEQ/Gd dxD84pnGKKSjVrG6MvKq/WH0PwAYHD4ma4zdfXLoMlGZczHf7hlg6w1Rmny0vVrcw147 F/YlmNBfXGjgCzaurR6UXVaEY2TiWwrf0HiJQ7hVuS/DbvHiuxQXY7g/rfiCSacBAvx1 bd32lLfCR0j7aFq8eSnnzFCmrlkxRpcJIDYjloBW8z56UmWQE45PySIReu9aEK9BIVWG kcLdEHVS0OHg+KEyitCd5f8bazzO/bopqaNdi3P/ODytkLFTaNJjYKMSrlmwd2wj//Dl Giug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=V5S0NbEI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id jk16-20020a170903331000b001cc529610e3si863993plb.342.2023.10.31.04.37.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 04:37:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@wanadoo.fr header.s=t20230301 header.b=V5S0NbEI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wanadoo.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 2FF4A80BA69B; Tue, 31 Oct 2023 04:37:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343743AbjJaLgt (ORCPT + 99 others); Tue, 31 Oct 2023 07:36:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235313AbjJaLgs (ORCPT ); Tue, 31 Oct 2023 07:36:48 -0400 Received: from smtp.smtpout.orange.fr (smtp-26.smtpout.orange.fr [80.12.242.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E78E6DB for ; Tue, 31 Oct 2023 04:36:43 -0700 (PDT) Received: from [192.168.1.18] ([86.243.2.178]) by smtp.orange.fr with ESMTPA id xn2xqgsfSOWoRxn2xqgwky; Tue, 31 Oct 2023 12:36:42 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1698752202; bh=9KvNXF6pEJh/jTsRIm8nizvmtEilekGphzqImz455pY=; h=Date:Subject:To:References:From:In-Reply-To; b=V5S0NbEIvGxPADjcYc+bU1NBTQLnjjvHHkEN7xNE+/mV2HlGqpWkqYH4cjh+svGnI XtohOlwTVUntCBSWXn3bSAx8o8ebKZU7MTjoDADiubzAD/E2gfSwc4ULzrnhZZUZOh y6i97d4QloK2R0cvq19YWCwdnVYObE1JSkZKhLitIKT4z/L4AJWQqRg6b7VVLwwmWu 0MYTbqd28wFE984H7arsrGMLrBsFI4PC81xJ3AYj8G34xC5P197n6dz4/Efar6Q0ii +x2iPmbZn9lbx52pcnpvNF2OZmDuHvT8yd6ruQd1Zaedx2ojy9WOK2YKKPFFZHLVXe aK3CI9WbQ92fw== X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Tue, 31 Oct 2023 12:36:42 +0100 X-ME-IP: 86.243.2.178 Message-ID: Date: Tue, 31 Oct 2023 12:36:35 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] drivers: rtc: max31335: initial commit Content-Language: fr To: Antoniu Miclaus , Alessandro Zummo , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean Delvare , Guenter Roeck , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org References: <20231030115016.97823-1-antoniu.miclaus@analog.com> <20231030115016.97823-3-antoniu.miclaus@analog.com> From: Christophe JAILLET In-Reply-To: <20231030115016.97823-3-antoniu.miclaus@analog.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Tue, 31 Oct 2023 04:37:03 -0700 (PDT) Le 30/10/2023 à 12:50, Antoniu Miclaus a écrit : > RTC driver for MAX31335 ±2ppm Automotive Real-Time Clock with > Integrated MEMS Resonator. > > Signed-off-by: Antoniu Miclaus > --- ... > +static bool max31335_volatile_reg(struct device *dev, unsigned int reg) > +{ > + /* time keeping registers */ > + if (reg >= MAX31335_SECONDS && > + reg < MAX31335_SECONDS + MAX31335_TIME_SIZE) > + return true; > + > + /* interrupt status register */ > + if (reg == MAX31335_INT_EN1_A1IE) > + return true; > + > + /* temperature registers */ > + if (reg == MAX31335_TEMP_DATA_MSB || MAX31335_TEMP_DATA_LSB) > + return true; return false otherwise? CJ > +} ...