Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7037636rwr; Tue, 2 May 2023 08:40:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6F3Rzkei7oEMtin1ZN4VLd6YpuROAJiKLa/fiRX8B1QfZu1Tg2IqiPbCCM/f55zsS1McnA X-Received: by 2002:a05:6a21:338c:b0:f0:4a5e:b686 with SMTP id yy12-20020a056a21338c00b000f04a5eb686mr21354721pzb.29.1683042045808; Tue, 02 May 2023 08:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683042045; cv=none; d=google.com; s=arc-20160816; b=X+ZGi+AxeQjOIthKlr+TmgYuKVFuNmZ4EoPiG9gV+2bhDUBMbn8DRoh81w883gAb4f K2Bzc7yTkUAjoie5bWGByNLhtS8HbDknxtu2rAN2YM82FyRRQP2LO6UPeZIHfPdexgTx McyO5QbYLuK2qR4AkOeukqMwqezHzVuwJHNjlvWpPe+2WPC1rOIKI+o89q3rgiFqdHMR n6HhQjGBCBrLBv2ea9h6zVwvPoyGNUjlE3guNi5dYLPE2N6fdU8z+x3fgbTBt95kKZGu a8V2KhxeGb8zzY0r+aWr0/H0qeZt42bI8X3PluUB0SfaB+IKnpnzE/nJOXohBiwlt6C3 aZHA== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=zKFCGKJKIfICjkEeutXAf5e2aPU786ErR7PydeAy9Qw=; b=0XfW6gOY+bOimhNPVFO2RkphflnaXB4qKXFKJGKrxdKNG1qoXU0rvhpvyw5SOWjpuU lMRfmXmuk4FxSLaIbkH0W8oc8YW1u21iuKwPAXCeEmzmpsQt91pecDWNIXtS5wxu4hlI FwrnxbkOGWcgX2wQIT2oM5i2BIAKnyqJQAKhhX12V22aR1+k18+TRY1TJx+Kh72ux4YC OSH1AJcCdrBigS+85Ozo1yDNbVObGAPM9yrmlDdSIGU34DmhTHR9vx5+9hpkmgG/g+9W MhqHB065OQwyd82IvBgrD1ZR4b1C+xjMoS4KNWAgu4OA8u49AdJ9ACzJDmm0Udy+vQTs 6vhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="FNTxB/0h"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u185-20020a6279c2000000b006374bd74796si31321144pfc.379.2023.05.02.08.40.30; Tue, 02 May 2023 08:40: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=@kernel.org header.s=k20201202 header.b="FNTxB/0h"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234489AbjEBPak (ORCPT + 99 others); Tue, 2 May 2023 11:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234176AbjEBPai (ORCPT ); Tue, 2 May 2023 11:30:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 852B9197; Tue, 2 May 2023 08:30:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1FAA661947; Tue, 2 May 2023 15:30:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34D3FC433EF; Tue, 2 May 2023 15:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683041432; bh=oOAFn1iw+VvOdPt870Z4/mUcqKg5x0WNhxwZ+XrKuhI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=FNTxB/0hXeVVhLW2dD5Dk+1hNcyjBdeS129PxOXvlmvYOZoD/D1TkPMMgEXMKv1aa eXsQ2S4cYnSdJkG1TVfatugGxRB/Xm+xyIyBQujRbVFHW9g9fqK+LMfka25Zm7f8LG 2IZky9g1kYeiYMbhdwqVPWu/n4kD4cm/U9zwYXDRqPmN3k0DyS58uz59216UMTjveF Cs4jDM3uwbi3PPjHOdr53EFLO5rG7u2YKUG5USbP5TrFstlkgVkEgv0sQFBKOc7OC7 ZtSJG6nPX5mHb60bmUeDKTmE7Z90Y4gLhubF/zfphv9Uey/iG4j1Dutw5bup8zemoX elOJVLFssnLrQ== Date: Tue, 2 May 2023 10:30:30 -0500 From: Bjorn Helgaas To: Niklas Schnelle Cc: Arnd Bergmann , Sudip Mukherjee , Greg Kroah-Hartman , Bjorn Helgaas , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Mauro Carvalho Chehab , Alan Stern , "Rafael J. Wysocki" , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann Subject: Re: [PATCH v3 21/38] parport: PC style parport depends on HAS_IOPORT Message-ID: <20230502153030.GA688533@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230314121216.413434-22-schnelle@linux.ibm.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 The wording of this subject line is a bit ambiguous and doesn't quite say what the patch does. It reads like a statement of fact, i.e., "this is the current state," but I think the patch actually *adds* a HAS_IOPORT dependency like many of the other patches. I guess it also *removes* a HAS_IOMEM dependency; I didn't investigate to figure out why that is or whether it's even related (I guess it is, but I don't know how). On Tue, Mar 14, 2023 at 01:11:59PM +0100, Niklas Schnelle wrote: > In a future patch HAS_IOPORT=n will result in inb()/outb() and friends > not being declared. As PC style parport uses these functions we need to > handle this dependency. > > Co-developed-by: Arnd Bergmann > Signed-off-by: Niklas Schnelle > --- > drivers/parport/Kconfig | 4 ++-- > include/linux/parport.h | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/parport/Kconfig b/drivers/parport/Kconfig > index 5561362224e2..5c471c73629f 100644 > --- a/drivers/parport/Kconfig > +++ b/drivers/parport/Kconfig > @@ -14,7 +14,6 @@ config ARCH_MIGHT_HAVE_PC_PARPORT > > menuconfig PARPORT > tristate "Parallel port support" > - depends on HAS_IOMEM > help > If you want to use devices connected to your machine's parallel port > (the connector at the computer with 25 holes), e.g. printer, ZIP > @@ -42,7 +41,8 @@ if PARPORT > > config PARPORT_PC > tristate "PC-style hardware" > - depends on ARCH_MIGHT_HAVE_PC_PARPORT || (PCI && !S390) > + depends on ARCH_MIGHT_HAVE_PC_PARPORT > + depends on HAS_IOPORT > help > You should say Y here if you have a PC-style parallel port. All > IBM PC compatible computers and some Alphas have PC-style > diff --git a/include/linux/parport.h b/include/linux/parport.h > index a0bc9e0267b7..fff39bc30629 100644 > --- a/include/linux/parport.h > +++ b/include/linux/parport.h > @@ -514,7 +514,7 @@ extern int parport_device_proc_register(struct pardevice *device); > extern int parport_device_proc_unregister(struct pardevice *device); > > /* If PC hardware is the only type supported, we can optimise a bit. */ > -#if !defined(CONFIG_PARPORT_NOT_PC) > +#if !defined(CONFIG_PARPORT_NOT_PC) && defined(CONFIG_PARPORT_PC) > > #include > #define parport_write_data(p,x) parport_pc_write_data(p,x) > -- > 2.37.2 >