Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp1121873rdb; Wed, 1 Nov 2023 11:54:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFKwwiXsHeqcoUBmcsFEnm8dVyim+EaqBsL89REH9qAar6sX3H4hS6bn3nLScw5joTb86cF X-Received: by 2002:a17:906:ef0e:b0:9c6:306f:677f with SMTP id f14-20020a170906ef0e00b009c6306f677fmr2630613ejs.47.1698864885441; Wed, 01 Nov 2023 11:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698864885; cv=none; d=google.com; s=arc-20160816; b=pdsmuJz9yWWm2TPrINewu04fUuBcA/KVuCxcCp6B8BpQPX5NBccSGPSR/0GswyUqDS nRDOhGi7H9oQx+bNMULFftVY0hpX/Yiw4zZcaOJW1m9PDYjAbMxBSfQzfChe/gITJZsG gddDUNxJ0Ri8aWBhtTbzrQxvzEhWTCyz9M9xeotKfr1DWtGp96ilSBgchQdXXfCpoc+N iGeNDlETCgH+KJQJ6udhPFHykRpr/BDOF0uncSj+RZPGTzxWmSkw0V7cpg4zraZWY8bi 1LStM4yMNDQ6RoOpJQyoBDLUGAYmAS70p0bQLd71+5BsHvlEVKLQYzxtAZzC1C+LlMtJ Me2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q3sZj6RniyTzoHCodRr2i/ntz4jNs4JFrcHctmS81hg=; fh=mLdoErDjVYI94AFHGA1BBxK3GCph2Kw34oOW4N+pigQ=; b=n7uTE5MAX6Hx/OMAR5e9biCwEcuVOWJUeNmyQvW3cDcovdSw6xRtp9lihmJooNgwwo WDnD81qnS4ogWbSLsv1XGMcJeXLrTWeQBS3IjvgVThGAuUf1VREsZuZexC0CSR16xl34 sMYKnA49BseIUgvdW5twxO1Ppb8hLzmFPTYGbIod4h78c/tU8DySloOhfjhCTrD+phQr tGAvRzFyq/axFOcIASO2Zso1GjreioWCpFjPmQhsgswqjoXsWzvztKMyG3LE+Pgqpf6g zsl8unB+qnO0H/u8iVQk4yJCnSMJAw3w2Eucy0DXxYNVl7KUS/iPCcJNAQLDygOh/rXg BQJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cdd3Y9sR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 27-20020a170906019b00b009b953d3a34esi164553ejb.543.2023.11.01.11.54.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 11:54:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=cdd3Y9sR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F364880707BF; Wed, 1 Nov 2023 11:54:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344759AbjKASyT (ORCPT + 99 others); Wed, 1 Nov 2023 14:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232753AbjKASyS (ORCPT ); Wed, 1 Nov 2023 14:54:18 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97092ED; Wed, 1 Nov 2023 11:54:11 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 6D85CE0003; Wed, 1 Nov 2023 18:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698864850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Q3sZj6RniyTzoHCodRr2i/ntz4jNs4JFrcHctmS81hg=; b=cdd3Y9sRN8ttWyWYp4CktTx2h/eFQ4OzABlsf8uGELdQDyy4ZLTgQpLoQW2XFiinuPJHXW RBWEDFR/7TXz2KOELIFqMaFIuN87guCVLfRaEZ2WkYKUJGe2NIcPHSTPUyyxIRW7qLMMpr x/l4nfgGrrMf4WWlXWkrokf5igp3s34oN562NLrpUwAeV9atz5NOJFpDWO3LBuqIDzCcCA 4rIuyKnglUtAkHwI1Xeo8m0/zt3TxovMLAOr7sYgdO1qncnQfbqblUZaLcI22Xf0ay6had L5Ltk/H2PXKdO/Tos5XGraWcb+wnP6t8a8mtDv5lB1CBHR/XZZYrx48SbvWPYA== Date: Wed, 1 Nov 2023 19:54:09 +0100 From: Alexandre Belloni To: "Miclaus, Antoniu" Cc: Guenter Roeck , 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" Subject: Re: [PATCH v3 2/2] rtc: max31335: add driver support Message-ID: <202311011854099f524c30@mail.local> References: <20231031153100.92939-1-antoniu.miclaus@analog.com> <20231031153100.92939-2-antoniu.miclaus@analog.com> <95e41f16-4b5f-4f2a-bc31-17273032312b@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-GND-Sasl: alexandre.belloni@bootlin.com 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 11:54:39 -0700 (PDT) On 31/10/2023 16:28:07+0000, Miclaus, Antoniu wrote: > > According to the register map above, the chip does support > > low and high temperature limits as well as over- and undertemperature > > alarms and interrupts. I would suggest to add support for all of those. > > You might also consider adding support for temperature alarm interrupts > > and report temperature alarm events by calling hwmon_notify_event() > > if a thermal event occurs. > > I've sent in the first version of this patch series a cover letter: > > "Although the datasheet is not public yet, the driver can be made public (on > other linux custom trees it is already). > > The driver was tested with actual hardware and works. > Did you run rtctest? Please provide the output. > Even though the datasheet is not available, if there are any queries about > the functionality of the part, these can be provided/inserted as code comments > inside the driver." > > The reason why I am rushing this a bit is because the customer that uses the > driver wants the driver released and mainline kernel compliant. > > This is an initial version of the driver covering the main use cases (which were > requested, therefore actually used). > > Additional features can be added afterwards, if requested. > > > > > > + > > > + hwmon = devm_hwmon_device_register_with_info(&client->dev, > > client->name, > > > + max31335, > > > + &max31335_chip_info, > > > + NULL); > > > > There is no "depends on HWMON" in the Kconfig entry, meaning this will fail > > to compile if HWMON=n or if HWMON=m and RTC_DRV_MAX31335=y. > > > > Will do in v4. > > > Guenter -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com