Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp192701lfo; Tue, 17 May 2022 21:56:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8b0cUWwPaqKnrpYH2Uh6OsZpe7bINeWC+dCMKVAh/PTQ3UHjeOEwHDaPoltErteZHfw3l X-Received: by 2002:a17:90a:343:b0:1cb:234a:a975 with SMTP id 3-20020a17090a034300b001cb234aa975mr40025421pjf.83.1652849780088; Tue, 17 May 2022 21:56:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652849780; cv=none; d=google.com; s=arc-20160816; b=g5eiQjszDg1dEqUyjBSUyLa6bzWzfraSyz6PpZ1c+cTGFrK3343t9ZAif4h4xP/aPg IgyjTRkMxGwGC9CHVRzoOiX4WGD6pYJhOFjMeUI77AlyXht3zMMWNfJNA1fwbiVKm0My v2yMzQxvyEqicoc2pC5oEY8cF0khbnleykXPquC4nBWUOxVnMLUwkEdRnHnMv2Ut5+Hq tZB3AW4BtxyyIpgFGL7RfhzYFNg22s8JPENNvip0IPkYyr4PjfNhuJGXTNjklue+8xD8 glGrGIqo5CtCpB8xHpc60XdcT1OSw/4OJYOeQZjC/rR2U2++m73Lr47KTXu+j455Mbaj K18w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/JjH2s+XnUZEsXjcYOLzSvl6ZNThviCEVc61/n52xQc=; b=Pk5Le+j61D0vScMoBsuaHRmiB0CLRKiVm+SoQBaJvTVRel8WPUBRJvcgTJKAG+jCej wOyKd1N14oKlLcAUeKZpJLrcq7znf+NUeTWf0urjoAC9/LD1sNwfEPs0EalGDKWvVPWb Rg6b0BKpwYokGq16GQa/jcvNCzQ1PZZ8bFKKW/CLFGTKwoREtcT62a3VpEDYFxqvqOrx yDi2lcMhF806P9IUBxAY+aYitFOlw9mZUJZVMpg+tNXe2Z5iKvtnTKOdX8SMYDKKW6ZD E5TXjBr39HUwwEZC6G5y9fPXjmo2NQBOg78dn3SjuiwbBS65/y4O/ibirow9/TJkDlk0 /5Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eA8eNHlX; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m4-20020a170902db0400b00161c545c5c3si1078220plx.601.2022.05.17.21.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:56:20 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eA8eNHlX; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 83C1E6A439; Tue, 17 May 2022 21:04:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230282AbiEQWPL (ORCPT + 99 others); Tue, 17 May 2022 18:15:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbiEQWPJ (ORCPT ); Tue, 17 May 2022 18:15:09 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 671AF396A5; Tue, 17 May 2022 15:15:08 -0700 (PDT) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8D66F100006; Tue, 17 May 2022 22:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1652825707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/JjH2s+XnUZEsXjcYOLzSvl6ZNThviCEVc61/n52xQc=; b=eA8eNHlXjV5vGVMPA6To+ieNXYlkdCwriqFYaa5SORfbCKHNDdeSdBeodpV/X4Fl7owmXe es/tABfnIXYTFpw+TovGh4Q7UlrKq//xc5JzoD88srolhTw4uF8BTeU/6/SI40qxr7qgZW O1wDFJ4yy2KrOtPrQ80yikxBHz7GXZWJtCWPQNoDMgvitXGn8YZ24C3FgbJQLQ6NaGm+S6 BGI8INMoAb4tivhqtyctogtgbzmjUPrir5gl5JXoZlg34M+jqnFNSLtxoOisJRUpQpWmSK tOO/hxRNQ96/KU/7AHIXBJPuMcngLMxKF49dpA8ukctdWmHwX/0juUY0RfP1Qg== Date: Wed, 18 May 2022 00:15:06 +0200 From: Alexandre Belloni 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 , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" Subject: Re: [RFC v2 29/39] rtc: add HAS_IOPORT dependencies Message-ID: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-52-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220429135108.2781579-52-schnelle@linux.ibm.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 Hi, On 29/04/2022 15:50:49+0200, Niklas Schnelle wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. We thus need to add HAS_IOPORT as dependency for > those drivers using them. > I'm fine taking that this cycle if there are no dependencies. Should I? > Co-developed-by: Arnd Bergmann > Signed-off-by: Niklas Schnelle > --- > drivers/rtc/Kconfig | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > 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 > default y if X86 > select RTC_MC146818_LIB > help > @@ -971,6 +972,7 @@ config RTC_DRV_CMOS > config RTC_DRV_ALPHA > bool "Alpha PC-style CMOS" > depends on ALPHA > + depends on HAS_IOPORT > select RTC_MC146818_LIB > default y > help > @@ -1188,7 +1190,7 @@ config RTC_DRV_MSM6242 > > config RTC_DRV_BQ4802 > tristate "TI BQ4802" > - depends on HAS_IOMEM > + depends on HAS_IOMEM && HAS_IOPORT > help > If you say Y here you will get support for the TI > BQ4802 RTC chip. > -- > 2.32.0 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com