Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4882819rwr; Sun, 23 Apr 2023 15:57:09 -0700 (PDT) X-Google-Smtp-Source: AKy350aArqTv/IGh/tYPyHbSZ/x1r9jDx0uFtIoc+zAMOCpMPQSrGzvtbMC05SiY2uiECdih4Sga X-Received: by 2002:aa7:88d0:0:b0:636:f899:46a0 with SMTP id k16-20020aa788d0000000b00636f89946a0mr16396347pff.15.1682290629326; Sun, 23 Apr 2023 15:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682290629; cv=none; d=google.com; s=arc-20160816; b=p0uG+0QVzGdAyZZ2h/CdGSMzC823Xn2cQngrg3dR2zyD2s+SMrxXFaMe7IWY8h5iCI s7ZIDj8Hudxk/3Savd8Wq4Fz6xxiLhKBPfOQa2smrWlxvXoguyF/jKItBMc6CfWUe+Dt OAX4xGowVF7u4gL89WqMyXvCQ88Oz+aVtT0mdoZHIRLdHsXZ2qml5H9n64/7wznckYvc jQH8FdLq/ddmxgQjmaBFivZ5GGyfFpBIpWxtaOrQXN/Ykmu4tI+ga0yNZ9eiO31Q+5vA hLF84VQ3OSX2bVom6ivWoPYom/tEQUNEbz8PuBby/gfO01WGR2SPfEZNShPRz2pZp+gD XuXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=f6VdXVE+CqzafAt2jAinlyZpbYgv7qimEZMDABBYpyM=; b=GaTMvTBpuUg9aV0hCWQwp4oICD60+Gz+9pwuFftONyVD0KUCdjf7TwVfrvjW8+ifG8 89J+9H5viliYZgPiFJIB5J5a3U+vhCc80vdVEpbtluqIXAPwnFEtbHmgYt2czy6xws6X tmo7QhuE1lhfDIMT/t0p3uoaR+Brv2xtLt2vfyB/BGlocoMmBOvhJoExkRJKIltrIXiN 9ismC5PWZ7ELo/pz6CLxKp4knm2oeNAcpdGFf4Pg4xg45mpoQwT1AAfSJwKMwwxEkif7 5yj51qCCJs5l+FZ4+9bJmF3futJGRpQr7TkBR69vCTv+MJ70iKkZp+kLawmUedLn4kIz r03w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=1ZkxHLMn; 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=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p29-20020aa79e9d000000b0063b78603713si9861640pfq.260.2023.04.23.15.56.57; Sun, 23 Apr 2023 15:57:08 -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=@alliedtelesis.co.nz header.s=mail181024 header.b=1ZkxHLMn; 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=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbjDWWwq (ORCPT + 99 others); Sun, 23 Apr 2023 18:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjDWWwp (ORCPT ); Sun, 23 Apr 2023 18:52:45 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74B0FE7D for ; Sun, 23 Apr 2023 15:52:40 -0700 (PDT) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 9A59D2C0714; Mon, 24 Apr 2023 10:52:36 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1682290356; bh=f6VdXVE+CqzafAt2jAinlyZpbYgv7qimEZMDABBYpyM=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=1ZkxHLMn86op7NVC2BWOA4gkkhJW0nuFaletgWm2UmFhQxgBKAb9Z0nT9ZBez3maQ M4Yb3NyXbdrBjviK2SqI/Q7vPpnguvUgIrD57d43i7JyOlSAaoKOn2bkhWsoZn4TaP 2tj/DzcG9nTxxQYQbwfV9CcD59efSn0xaJ0+SAFgU2BNFK5e0rUaPeLAypKOL+Mk7z V+NOux+ogAiK9wt2EmvSWRSkZVXWbcU0mfx+qYxM6Nzpx5du4gaEQsKoeT7gbzfkhH 2XyGnovG0WDWLf6c5pT9gI4NRaNKFRj+9d5ZZYSelvk2WJcXlqGGceVCPJhSgfRBJa mqC3FX/o7lXrg== Received: from svr-chch-ex2.atlnz.lc (Not Verified[2001:df5:b000:bc8::76]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Mon, 24 Apr 2023 10:52:36 +1200 Received: from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) by svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8::76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.26; Mon, 24 Apr 2023 10:52:36 +1200 Received: from svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8::76) by svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8:409d:36f5:8899:92e8) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 24 Apr 2023 10:52:36 +1200 Received: from svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567]) by svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567%15]) with mapi id 15.02.1118.026; Mon, 24 Apr 2023 10:52:35 +1200 From: Chris Packham To: Ibrahim Tilki , "a.zummo@towertech.it" , "alexandre.belloni@bootlin.com" , "jdelvare@suse.com" , "linux@roeck-us.net" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" CC: "linux-rtc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hwmon@vger.kernel.org" , "devicetree@vger.kernel.org" , "Zeynep Arslanbenzer" Subject: Re: [PATCH v5 1/2] drivers: rtc: add max313xx series rtc driver Thread-Topic: [PATCH v5 1/2] drivers: rtc: add max313xx series rtc driver Thread-Index: AQHZdjZLgX7SA8wzl0CehDF+asRkOg== Date: Sun, 23 Apr 2023 22:52:35 +0000 Message-ID: References: <20230403154342.3108-1-Ibrahim.Tilki@analog.com> <20230403154342.3108-2-Ibrahim.Tilki@analog.com> In-Reply-To: <20230403154342.3108-2-Ibrahim.Tilki@analog.com> Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.33.22.30] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=VfuJw2h9 c=1 sm=1 tr=0 a=Xf/6aR1Nyvzi7BryhOrcLQ==:117 a=xqWC_Br6kY4A:10 a=75chYTbOgJ0A:10 a=IkcTkHD0fZMA:10 a=dKHAf1wccvYA:10 a=gAnH3GRIAAAA:8 a=KpLWW-vq3t3MRPME1sEA:9 a=QEXdDO2ut3YA:10 a=oVHKYsEdi7-vN-J5QA_j:22 X-SEG-SpamProfiler-Score: 0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 SGkgSWJyYWhpbSwNCg0KT24gNC8wNC8yMyAwMzo0MywgSWJyYWhpbSBUaWxraSB3cm90ZToNCj4g QWRkaW5nIHN1cHBvcnQgZm9yIEFuYWxvZyBEZXZpY2VzIE1BWDMxM1hYIHNlcmllcyBSVENzLg0K Pg0KPiBTaWduZWQtb2ZmLWJ5OiBJYnJhaGltIFRpbGtpIDxJYnJhaGltLlRpbGtpQGFuYWxvZy5j b20+DQo+IFNpZ25lZC1vZmYtYnk6IFpleW5lcCBBcnNsYW5iZW56ZXIgPFpleW5lcC5BcnNsYW5i ZW56ZXJAYW5hbG9nLmNvbT4NCg0KSnVzdCB0YWtpbmcgdGhpcyB2ZXJzaW9uIGZvciBhIHNwaW4g b24gbXkgYm9hcmQgd2l0aCB0aGUgTUFYMzEzMzEuIA0KQ29tcGFyZWQgdG8gcGF0Y2hzZXQgMyBJ J20gZmluZGluZyB0aGF0IHRoZSBSVEMgaXNuJ3QgYWN0dWFsbHkgcnVubmluZyANCmFmdGVyIGl0 IGlzIHNldC4gSSBoYXZlbid0IGJlZ3VuIHRvIGRlYnVnIHdoeSB0aGlzIG1pZ2h0IGJlLiBJIHN1 c3BlY3QgDQppdCdzIG5vdCBiZWluZyBlbmFibGVkLg0KDQpIZXJlJ3MgdGhlIHNuaXBwZXQgb2Yg ZHRzIHRoYXQgSSdtIHVzaW5nICh3aGljaCB3b3JrZWQgd2l0aCBwYXRjaHNldCAzKS4NCg0KIMKg wqDCoMKgwqDCoMKgIGkyY0AxIHsNCiDCoMKgwqD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