Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2889996rdh; Mon, 30 Oct 2023 10:28:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7pOWgwwMNvgHJILIjMpj0OBmyy/E84ny8jLhE5eFv4+Z2foDyku0Q2zJcyu/87ugWXZku X-Received: by 2002:a17:902:c146:b0:1c3:845d:a4 with SMTP id 6-20020a170902c14600b001c3845d00a4mr7848436plj.51.1698686930015; Mon, 30 Oct 2023 10:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698686929; cv=none; d=google.com; s=arc-20160816; b=YGEgkm/F86K03B1ix32oO1OzIQtSmDx5dCOu9VV8ogfFKuMwOGochcLsAkjr1gai4r 6OVqrTwXF4hVXcNh+zupgchE5e5ItyP/ecgMpb0WjJ0X/tSIBo4Hwj00foObvjY47MNT W9qL2MhEcZE5EFriBtrNEvXPjduCH9yWiVSkmV83dZ2vwKU+8wHRq+qB7wJQoY+PPZOw yG/Vx64VenX94HjRiyqwCWPsi5/fRCc9IKQDSJ4UsP4ow/Lc0+s0n25tOxHZMxww2Ads 0Ton/7OG39tWlexvKXy2UaPECqKnzyceA+qlXqBeXH5PMbdxBWYatifzFNzKH+sS92l2 qmzQ== 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:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=SUqympgaZbY4CwpbNsG1E9Za5/1fj3yZOhO3evs+MRE=; fh=4HVnyCeNg5NlAlTIjybXJOcQmVpSviKwuKrYI2W12rY=; b=NI09j5Vt9o0Rljo5yGd5OUCUoh/bBrbllk8HSmsEc6uRb3d4c4zgPx4rbtvb/EY7l/ nGycFrH4+P0PxB5SXn1muOBWJM/LxCj4X9/ZLyjngtosVyNsAt2+WgZyWl4XAKO019cX EKB85Csf+kB5AFOWsI4RBBwQkWOK7H/EB/PvRgaYcM1Vd+eKnA5Md448on1lsgMwGByL YrwXBuMICJnrLpGwLaFhdYZF4V+COnMV87pHyjgoqeWAiegDu7/RLZ9kn4X+4hQ2XvR6 qYI7g4jOQ556pe66YHha238XEAMpZ0831MlhBcYQv7UkdMo3tGFOn4b5yYzl6z9LIqrR WtBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aKpkQ4oh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id q8-20020a17090311c800b001bb8c4279f5si1112786plh.148.2023.10.30.10.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 10:28:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aKpkQ4oh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 84CE2804917E; Mon, 30 Oct 2023 10:28:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233845AbjJ3R2g (ORCPT + 99 others); Mon, 30 Oct 2023 13:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233365AbjJ3R2f (ORCPT ); Mon, 30 Oct 2023 13:28:35 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8A55C9 for ; Mon, 30 Oct 2023 10:28:31 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9d23be183c6so312636766b.0 for ; Mon, 30 Oct 2023 10:28:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698686910; x=1699291710; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SUqympgaZbY4CwpbNsG1E9Za5/1fj3yZOhO3evs+MRE=; b=aKpkQ4ohRxfy94qoUy7efeB8dkfFzQzmTE99ElrtSG+X58E40SVWKi0+NmEFOR2V2e E2+v831ru40LUOYZyE3bTtyC5/FK/wPG0AeK3F4Cro5fZxXaZ9Ymx1CTwy9iYYSNLcY9 dBoDJr+SAW5FiuMSw9YUUBe4pY2UtoVmKDvdjPBqSk/dQkNYlEZjlQ56Of92UXQNEU9w 6+YRjHyf9yOe3x9+MbNmV/IBw6gT2ax3xBBDHZXBCyhLqg843XoeFF7OGwwZFAXXniPn HwVckITmldQXs0QI2q6H/wXXW3jMIwcUpEVbUmZyGoJKWtj8J8Uovb+biPRlBW0VvUio e83w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698686910; x=1699291710; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SUqympgaZbY4CwpbNsG1E9Za5/1fj3yZOhO3evs+MRE=; b=XT4BxUyFEwUoCg4nxsFdgJR1EGm+f+7Lfe8c+1PbN/wa2fgKNtA5ZkbuLxoDPDAeel pHjgiSw0K7AkpKaPfpWzjoEFD2/vpETnJ9A1J5gatqxkN9xw8gG/0op7GynCLK8aCmy/ AEswkmVhu56cEg21m+3hzUBMZbpB82d34Vm7a3eqsZsb+dLoS6MpHoY6+s+U5zG3JDHQ VC0Wae/Y9V791Rs3x/nFbdmULCFWcPgR5XQzuOBGgGTnIr8XAQ8oy9LPFuARdDbrnOHp pSGeYiDs7jTFuBoePur5CCKP3IU3lV+CEfM095tNY75vNCadvBz3GL5wukAFbB5FPUMD Y6Vw== X-Gm-Message-State: AOJu0YwJ2TopId8nWFl6v1JsaAZk1nZmMkpfacYmkOzyodkM0GPMIjIc 4Y9tS6T3KHtLjT+SFv1Hm97eKw== X-Received: by 2002:a17:907:7e81:b0:9ae:6da8:1819 with SMTP id qb1-20020a1709077e8100b009ae6da81819mr9521877ejc.48.1698686910330; Mon, 30 Oct 2023 10:28:30 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id rn20-20020a170906d93400b009930308425csm6295467ejb.31.2023.10.30.10.28.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Oct 2023 10:28:29 -0700 (PDT) Message-ID: <08db17bd-3e09-4608-8cb1-189aa286318e@linaro.org> Date: Mon, 30 Oct 2023 18:28:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] drivers: rtc: max31335: initial commit Content-Language: en-US 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: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro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+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231030115016.97823-3-antoniu.miclaus@analog.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 10:28:45 -0700 (PDT) On 30/10/2023 12:50, Antoniu Miclaus wrote: > RTC driver for MAX31335 ±2ppm Automotive Real-Time Clock with > Integrated MEMS Resonator. > > Signed-off-by: Antoniu Miclaus > --- Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. There is no "drivers" prefix. > drivers/rtc/Kconfig | 11 + > drivers/rtc/Makefile | 1 + > drivers/rtc/rtc-max31335.c | 759 +++++++++++++++++++++++++++++++++++++ > 3 files changed, 771 insertions(+) > create mode 100644 drivers/rtc/rtc-max31335.c > > diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig > index d7502433c78a..11c7d7fe1e85 100644 > --- a/drivers/rtc/Kconfig > +++ b/drivers/rtc/Kconfig > @@ -373,6 +373,17 @@ config RTC_DRV_MAX8997 > This driver can also be built as a module. If so, the module > will be called rtc-max8997. > > +config RTC_DRV_MAX31335 > + tristate "Analog Devices MAX31335" > + depends on I2C > + select REGMAP_I2C > + help > + If you say yes here you get support for the Analog Devices > + MAX31335. > + > + This driver can also be built as a module. If so, the module > + will be called rtc-max31335. > + ... > + > +static int max31335_probe(struct i2c_client *client) > +{ > + struct max31335_data *max31335; > + struct device *hwmon; > + int ret, status; > + > + max31335 = devm_kzalloc(&client->dev, sizeof(struct max31335_data), sizeof(*) > + GFP_KERNEL); > + if (!max31335) > + return -ENOMEM; > + Best regards, Krzysztof