Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1235503lfc; Wed, 1 Jun 2022 12:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxjuvzmGC+IJ5v1+VT21vLVFw9qJz8XZz7AUj5PIElO5oSo/wKTx+zKMm5btiBsC8ZFqwz X-Received: by 2002:a17:903:120f:b0:15f:99f:9597 with SMTP id l15-20020a170903120f00b0015f099f9597mr974953plh.45.1654112179023; Wed, 01 Jun 2022 12:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654112179; cv=none; d=google.com; s=arc-20160816; b=B3MaXN20PhoPmJFHVNxUJX+4lxj3EsRexrPBqdLg8xqtjIo3m9Q2WcCprFkJm1txqh FOE+tKRLXl0uP9LwRWDAe0UPYe7wPEmic1NAEknOmfxV0at+srSjgETY/hiYMTO8CNet B7tlSFYRqFobd497vf41XKGbxiFqvOcXuuWWYsyGXq0WZ9GOWtS2cV5135jU3hByZnrm bPg1TPK6hnSl+doBRI41X1D1d3GcDWE0xj9a8hIoZ/qqgdGwLf/GVvafyMXgmbf5EDPm g2BahVkp/taQbgoozXjPQXOOc4N6K+WhSINodWjZrPZydcrF7Wno/ksLvHFRSeFVgOso YKeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=UvFekWgngD3VNI9GSqHoPyhQ8zCrXwD9zcHD05etGKY=; b=MGeXhbNsUTzkPCWf0aG1y/j+Svuge/wy2Y4+do1OQJv6SeD2l30ga9SosaPCUKBiIg DrGNULUETG76OoadcARi1Zjf08Xli++4G7eJtewtMLGCUhh4YepXwdElg5v8eN2/2xfb Z+3/PYp2NASQbs71pTTmmxXjUbM6oJU3T1e1xhTgyxhOVrwyZp4oBW9ugtlCcI1w1S6/ Ep5NrOpRgRTzB+JupaOrpBJ3gtqFEVnRyHtj5hbJ4KyiO6ev+RLo/wl2CHfctvHtsWt9 g912IxjNosHtV4yuLnyWrQOAjlj1i7zYMXdWZAh2Did6W44SVyNsvJpOofZAUBS/8q26 Fskg== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r144-20020a632b96000000b003fae0527d4csi3303656pgr.723.2022.06.01.12.36.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB99AFD345; Wed, 1 Jun 2022 12:05:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352565AbiFAMZk (ORCPT + 99 others); Wed, 1 Jun 2022 08:25:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237528AbiFAMZi (ORCPT ); Wed, 1 Jun 2022 08:25:38 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4D6073B2BF; Wed, 1 Jun 2022 05:25:37 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id BEB9A92009C; Wed, 1 Jun 2022 14:25:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id B798692009B; Wed, 1 Jun 2022 13:25:35 +0100 (BST) Date: Wed, 1 Jun 2022 13:25:35 +0100 (BST) From: "Maciej W. Rozycki" To: Niklas Schnelle cc: Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Alessandro Zummo , Alexandre Belloni , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" Subject: Re: [RFC v2 29/39] rtc: add HAS_IOPORT dependencies In-Reply-To: <20220429135108.2781579-52-schnelle@linux.ibm.com> Message-ID: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-52-schnelle@linux.ibm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,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 On Fri, 29 Apr 2022, Niklas Schnelle wrote: > diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig > index 41c65b4d2baf..e1bb11a225b2 100644 > --- a/drivers/rtc/Kconfig > +++ b/drivers/rtc/Kconfig > @@ -951,6 +951,7 @@ comment "Platform RTC drivers" > config RTC_DRV_CMOS > tristate "PC-style 'CMOS'" > depends on X86 || ARM || PPC || MIPS || SPARC64 > + depends on HAS_IOPORT Umm, I missed this one previously and this is wrong. We use this driver for the DECstation machines (CONFIG_MIPS/CONFIG_MACH_DECSTATION) and those do not use (nor indeed have) port I/O as they are TURBOchannel systems and they only have a single (memory) address space. Consequently their DS1287 chip is memory-mapped (in a linear fashion actually, i.e. there's no visible address/data register and individual locations are accessible with single CPU instructions), cf. arch/mips/include/asm/mach-dec/mc146818rtc.h (that probably ought to be converted to `readb'/`writeb' one day). So this has to be sorted differently, perhaps by just: + depends on HAS_IOPORT || MACH_DECSTATION Note that other machines handled by the MIPS port do use port I/O, cf. arch/mips/include/asm/mach-*/mc146818rtc.h. Maciej