Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5504159rwr; Tue, 9 May 2023 02:22:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ru5jWEgshPwS/gitqHbNB/D8nUSxY7rWbI5LI9+T4r7gDOSz3t/PuQYpxt5kmhyR/Gm2R X-Received: by 2002:a17:902:b197:b0:1aa:f446:d518 with SMTP id s23-20020a170902b19700b001aaf446d518mr12677998plr.16.1683624126906; Tue, 09 May 2023 02:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683624126; cv=none; d=google.com; s=arc-20160816; b=IKehocNoNSMtjkCxJ961HRZZ7LekDYctYwE/Tb0f1wxB8pGkC39QhSGz9E6kYXdFMd IJ1vjPthgAWIN/Xax+cJDrdcoUztJPetJFHkiq9gxToIii1VQETxkzvsF7v6PPlgZMPy R/1O/uvBifjWTAuhQwHOKgnJl9FhwUyp46MrUKuoNb9BaJTMtpmzkfhQwbdZTC12x3zL +eO5l+hYs2kNJD0UH2DAZhkHvYpnSgyQyP6Olo7uJ+swIBHpwlgRZ9hyCDZnWUJjX4Pv o9LsimCubwxctBLF3xAICKjxU1WBCGAOeOzzgcpTWcwmXeIV541xtLPzD1wAJ1xBbfM8 hc9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=p2S/tcLDDVDf38vVVly5iVxC4awop9++PhkCM+Cdoio=; b=RyvS1sAlvGrp2M0dl/wZ3R8Oa09qvYtZcZz2Z1X5iWhjJuRjXfnwil6dy6VUHyGz05 plKPm9yHQsI1zXs0rvS+RHe8nNr5JzfTsZ/VJFMdFL5NcVINMkQd3p7ASJOim8Gyv18V 0Ab9ycgs0fkXiFJdjPdxlZTyScBksYdujWtQI/Yzu8DwTYzDmFMNRb4v8DzErbYWDx6w YfZL4DOjyo1/8ETpzOvPtx6ROt+nGN+X3FWo9OtpeYicTh8lUB9pd7MWrZ5VEnsxPxHl UM2nb9UGy3bXEUos/pgfZIpWWPvaOCwjjdbuQ2J8R0nNB1L99eYFP7qfxSx29E6fx66U X26w== ARC-Authentication-Results: i=1; mx.google.com; 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 x7-20020a17090aca0700b0024dd8ed1373si14508830pjt.185.2023.05.09.02.21.50; Tue, 09 May 2023 02:22:06 -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; 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 S234709AbjEIIv2 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 May 2023 04:51:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233852AbjEIIvV (ORCPT ); Tue, 9 May 2023 04:51:21 -0400 Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C30E13D; Tue, 9 May 2023 01:51:20 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-559de1d36a9so80665197b3.1; Tue, 09 May 2023 01:51:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683622279; x=1686214279; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g8+9AC6S3z51D9b6RJB732xmtylxElOzATEHA3R+ppU=; b=erdqghF5sYFJbfmJPX+VK0wG+ygu7cjAvaRVWwXLPavNBLgLSjmSZr1Tit40RZfQWW fQlmPepnnNf2bKaqLs7Rd5QpQR0rrz6lieF7seT301liHUcV3ywBzS1/nPaRqQaWtHEH hV9ujWwfQX5eSh0lKRd7uO57CW9yWGKLNYh79fuk7GI7FdOe8c8JM7TQVqkw4Xrb2dck lwVVatLsKTgoRqQfClg63CYaOz9pvKBAkOw7omUXD5/r/4AU16JegLJlqK66BCpC6iUq BZ7mEEXV8pMpH+VqUDGF9PUw0t+r4TdnvwY9qJAXOHQQCM1Qp3p8Z3QNl9DcoGfkPQvA Izow== X-Gm-Message-State: AC+VfDwW+LDbrodUqMuU4uZIVRURjnIL9kMz20IFDHiQc2AXF62cKknz f0gcfXo6mqWe6GDuokObAhu2ZAn9QNo6TQ== X-Received: by 2002:a81:d54b:0:b0:55a:105e:1a1 with SMTP id l11-20020a81d54b000000b0055a105e01a1mr14724767ywj.13.1683622279054; Tue, 09 May 2023 01:51:19 -0700 (PDT) Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com. [209.85.219.175]) by smtp.gmail.com with ESMTPSA id e135-20020a25698d000000b00ba2dd0b2527sm978928ybc.52.2023.05.09.01.51.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 May 2023 01:51:18 -0700 (PDT) Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-b9e6ec482b3so7257530276.3; Tue, 09 May 2023 01:51:17 -0700 (PDT) X-Received: by 2002:a25:ac9d:0:b0:ba1:90d2:cfbe with SMTP id x29-20020a25ac9d000000b00ba190d2cfbemr13326995ybi.8.1683622277230; Tue, 09 May 2023 01:51:17 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <552c51fb-41b2-430b-b13c-0e578098dbf6@app.fastmail.com> From: Geert Uytterhoeven Date: Tue, 9 May 2023 10:51:05 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 28/38] rtc: add HAS_IOPORT dependencies To: Arnd Bergmann Cc: Niklas Schnelle , Alexandre Belloni , Alessandro Zummo , Greg Kroah-Hartman , Bjorn Helgaas , =?UTF-8?Q?Uwe_Kleine=2DK=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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Arnd, On Tue, May 9, 2023 at 10:23 AM Arnd Bergmann wrote: > On Tue, May 9, 2023, at 08:38, Geert Uytterhoeven wrote: > > On Mon, May 8, 2023 at 10:01 PM Arnd Bergmann wrote: > >> On Mon, May 8, 2023, at 17:36, Niklas Schnelle wrote: > >> > >> I think the m68k/atari and mips/dec variants don't necessarily > >> qualify as PIO, those are really just pointer dereferences, and > >> they don't use the actual inb/outb functions. > >> > >> On atari, it looks like HAS_IOPORT may be set if ATARI_ROM_ISA > >> is, but on dec it's never enabled. > > > > Atari does not use RTC_DRV_CMOS, but still relies on generic RTC > > instead. > > Ah right, I now remember working on that code, so we're good on > m68k then. I think it should work for everyone using > > depends on HAS_IOPORT || ARCH_DECSTATION > > in that case, as that is the only exception. > > > Last time (in 2013?) I tried converting to RTC_DRV_CMOS by registering > > an "rtc_cmos" platform device, I couldn't get it to work. > > 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_defconfig does not enable it, but enables CONFIG_RTC_DRV_MSM6242 and CONFIG_RTC_DRV_RP5C01 instead. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds