Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5531505rwr; Tue, 9 May 2023 02:52:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4kw9yEW8DNnQtj2SPBOnHFXf/6ktbjPBxG6guNPFAm/AvePtZAO08oMEcEeUBVCYia1i3S X-Received: by 2002:a05:6a00:a81:b0:62d:8376:3712 with SMTP id b1-20020a056a000a8100b0062d83763712mr18839157pfl.28.1683625965981; Tue, 09 May 2023 02:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683625965; cv=none; d=google.com; s=arc-20160816; b=uPQZvvEMqFAQDrp/xxUvEdS743MgvMa1wR8YzbE6jKGF+GLMN1YWp8/tjp39AtRgE9 EM9VSkIEdI255TZpTUtxU5R9aM7WCepD4tNBs9hQqdkk4TP8Kq/kgjdiB11m7J+0rw/4 lDzN74iIif1V/3y8GHz+uIuyNHfeGvGMJiewoH5qD/NKCpvTGkMyEnk27Eyq49oz4DAA joptFTxlxAOt/8IzEFw9WMs6VUPhNBv1VoVskMcUzk87BPG1rB4aFD8Z7rfX3Eeamu3p Myi/rAPyN2dda0YlDtq0sMjpwSqi4f1Gpic1xCC6NzEZYvQcxHaoroDYnbtSUuqPDmbN LwpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=u9SCxQzR1XRkuaK/HGEsP2C84rfrSTM5IbRtH9r44/0=; b=U0EEAYmGm9GwOttIZZ9JTLnwPgrt0oOXv5H8iZGRqEWzK3iHJNiM/jkaV4QiYJMNbr PjHeoeILjmMedqeR56xqrMn71QqiRmrXPVIV9NPl+uz7SICMb+ilhmyysljYw5Nf8eS+ UbcOebYRpI0BCQBzMYbIDyT+EE4H1taFF/Z4HfepDh3bKkmyegYDdKq4oICrwo0S3elr XYWYgExPgpXuQeLdf5oct7Y/LjSHdup4nBZQG4THpWM1aFJdAxiR+KEWmxCUB2tawCqr kD/jpfYkj6NsqXGazrtIJxZef5rT7xXl4kAsntajr/K7FRX8RmJ379BbJSmLwkc/gvSS n/Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=xsuYH3zy; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=PDYTOJ2F; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b123-20020a62cf81000000b00643b9afbb97si2066159pfg.56.2023.05.09.02.52.31; Tue, 09 May 2023 02:52:45 -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=@arndb.de header.s=fm3 header.b=xsuYH3zy; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=PDYTOJ2F; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbjEIJqn (ORCPT + 99 others); Tue, 9 May 2023 05:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233625AbjEIJql (ORCPT ); Tue, 9 May 2023 05:46:41 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF2FE171F; Tue, 9 May 2023 02:46:40 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id E4128320093C; Tue, 9 May 2023 05:46:38 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 09 May 2023 05:46:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1683625598; x=1683711998; bh=u9SCxQzR1XRkuaK/HGEsP2C84rfrSTM5IbR tH9r44/0=; b=xsuYH3zyc+pyQRCICfLBLOEfXjd0W2cbd556J6ykaf1Lhn7og8o HkCo9u+lUzW/HlTtp0TOFC2/5dhlwiT5BZTp3CAixxnAdSbG/oYnOVwMb9+GsOJY cR2DWaSOspnaNmfkz2IAueXX+EG2RQmdph+jhOa5UYFGvDfJCZBIH+NsgftbjTEB oy6he9tSfhL5QTVpznG6K/YUHUTQzQWNEYdEgtJhVCmES7yfPkYB0r2lEqRxnNIg NCwRbdmLomfQM3ZrNAOS8cG60pSgnR/YJifjl5V/ZQDXGSZeYAqHAZHl2mRCK8ci PGLkWpbEr6Db7QF7KqvJVB3vJDZ9b9QJzVg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1683625598; x=1683711998; bh=u9SCxQzR1XRkuaK/HGEsP2C84rfrSTM5IbR tH9r44/0=; b=PDYTOJ2FeGFHDtds1EECengCf0mZbivbrCJcuIM7cuwh4uFv2bn C6yFjmtjzZcvTrgwvqtOftXKTBo/KNrAnVFZO8fbJ/YwkOGH+zzsNLPKrW5VwjLw 0VJ60On9uPreuwZO5S3mDSECRMTkqVim9ZioscBfhDQHCQ3IlpzpIP1HgnugWymJ iz4qXPFCa5oM6eqnmruN0QYlqF21ltcO8tav7hIWrI0Hn0W2rc3SgzB+PkxAULPU QTeNnyGb0KSUL2+tD9uDaQHCKiM/4w8vODRRNMrZ89DgHyijCAENiBo9dnz1OKdq huytW+qiET6PfShKNYA+HQvT8TLqBBrGNZw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeegtddgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 7DE38B60086; Tue, 9 May 2023 05:46:37 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-415-gf2b17fe6c3-fm-20230503.001-gf2b17fe6 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20230314121216.413434-1-schnelle@linux.ibm.com> <20230314121216.413434-29-schnelle@linux.ibm.com> <202303141252027ef5511a@mail.local> <552c51fb-41b2-430b-b13c-0e578098dbf6@app.fastmail.com> Date: Tue, 09 May 2023 11:46:16 +0200 From: "Arnd Bergmann" To: "Geert Uytterhoeven" Cc: "Niklas Schnelle" , "Alexandre Belloni" , "Alessandro Zummo" , "Greg Kroah-Hartman" , "Bjorn Helgaas" , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , "Mauro Carvalho Chehab" , "Alan Stern" , "Rafael J . Wysocki" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , linux-kernel@vger.kernel.org, Linux-Arch , linux-pci@vger.kernel.org, "Arnd Bergmann" , linux-rtc@vger.kernel.org, linux-m68k Subject: Re: [PATCH v3 28/38] rtc: add HAS_IOPORT dependencies Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 9, 2023, at 10:51, Geert Uytterhoeven wrote: > On Tue, May 9, 2023 at 10:23=E2=80=AFAM Arnd Bergmann = wrote: >> On Tue, May 9, 2023, at 08:38, Geert Uytterhoeven wrote: >> If you ever want to revisit this, I suspect the harder part here >> is to detach arch/m68k/ from the RTC_DRV_GENERIC code first, pushing >> the device registration into the individual machine specific time.c >> code. It's probably not even worth trying to share the rtc-cmos >> driver, but it might be useful to share the library code like >> RTC_DRV_ALPHA does. > > Arch/m68k is not that entangled with RTC_DRV_GENERIC, as amiga_defconf= ig > does not enable it, but enables CONFIG_RTC_DRV_MSM6242 and > CONFIG_RTC_DRV_RP5C01 instead. Ah, I see now, I misremembered this part. The only bit that is shared on m68k is the mach_hwclk() function that is used for either read_persistent_clock64() or rtc_generic on platforms that have one. So any platform could indeed be converted from mach_hwclk() to a custom rtc driver without affecting the others. Arnd