Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp239579iob; Mon, 2 May 2022 18:11:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0jjoT0nrEPAEuuB2yOgUVWrAz7WJv/wD1ue+caxfpyLhXjEnZ8ZGrRIG1o6MDlggQR2xo X-Received: by 2002:a05:6a00:a85:b0:506:b9e:7f43 with SMTP id b5-20020a056a000a8500b005060b9e7f43mr13863167pfl.5.1651540274335; Mon, 02 May 2022 18:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540274; cv=none; d=google.com; s=arc-20160816; b=I2/Z8ujIFgiSnnu2hNH2QDiwSti+clJ1Ob09oBgmxhFSTXHZpJEnMNirMkHly9g2t9 SczzSaoo0dbLvrqEUPmfVdb3iJZ3Dr1Mtxeg/SQaGUsHMJqqrIOfpou9InMdT37lgqyZ umLd2hDCArUwCzftPbyGERc2/X8ankThw43X4zP/Q45KivCygSgEeKlKun7EY8895JJ8 3lPk1lmshVqGtERP5YojhFvCsLX8B8xvE3ryzQFCKvuhixcTvZ5h4t7/kebSMlj3r+Db 2JGidXfzLswOI4+8Nz+iAV0K31Or7KVRFk/V79AeKnu3t8RKe27fKvyigTfl+LKwNwqn dH3w== 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=bZXp9UdtwQUhq4ByWWPM2fGxW46dWdEnK/AAX/Cv5Mk=; b=ws188Hbh/cPYN2TEU4tyrHLBoFj6k/dEF9iSCtDrDjKA0Vs3SArF+mvf+CdgNAj3vu M44SFaNIbUTNtPwJaIi8m46h4uIvottTJ6BR4hjnwKZ/pd8LAuB7Rso4B0ZQo1Mx1c9L PdZIWtRLLu0gn+8ZkB7YVw7o3jEyO5qAU8lwRfJ62L4ThaH50hB04DEFyUinqVC20pWN b21IAPCoK3UeDfyVfDQABViTmZfEf/IN5/tMKA+8SR1iH1p7Zb8A6h9TIoqdCzNFp69l vKC0+zYYpM/v+AeY3Dip+MvVE+yjfiRrlOBVWhnfIO0JHLTVNCpGnrl2z62eXDoMvxop Kw9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K7k1NR2i; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j63-20020a638042000000b003c186087638si3301738pgd.592.2022.05.02.18.11.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:11:14 -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=@linaro.org header.s=google header.b=K7k1NR2i; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3F5505C645; Mon, 2 May 2022 17:52:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378583AbiD2Pkq (ORCPT + 99 others); Fri, 29 Apr 2022 11:40:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378568AbiD2Pkm (ORCPT ); Fri, 29 Apr 2022 11:40:42 -0400 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CDE1D64C0 for ; Fri, 29 Apr 2022 08:37:22 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id z126so6201214qkb.2 for ; Fri, 29 Apr 2022 08:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=bZXp9UdtwQUhq4ByWWPM2fGxW46dWdEnK/AAX/Cv5Mk=; b=K7k1NR2iw9kVdnCUnxPN/AGmdqZLJYlSXYLXaJhLiudcd1Mtfwu8JpG1ZiL21PbPDl cZKLE89rhE2vHHzVazDpdjx/0YSML1XahKPVknxXXd3hsT2Oz+bwVvWGWPMtv3uucyup IrWcjmwiZ4ehml0LcXKVLkAuFRzWVjst1EZEsV/Ag4yMMWb8ZQn9Is5yrcfTKQSKO32C v39WiD/8BkGWUU0aCAosD6uGHsWt8/WCfg1025NmSs6w3Qzp7mwsQZ2PXyD+5M28iOlZ S/C4saM3TAbiCrvaCL8cBRRByxhaJdVo87fa/f6cpD6YSIrtgXx7MAZ4o6kS9t+CxrbX jsGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=bZXp9UdtwQUhq4ByWWPM2fGxW46dWdEnK/AAX/Cv5Mk=; b=uROCZYDCIM6ErJMtsSEM5efWrE38Gg1aWwFK3sjT0uabY88uvaeWjM2+idZx6bZ5DM mhqWqldiOJQmmSiMe5nTVHs5g/eteg1GwZR+9XL3SVBjFoB7i8dWczyOKol/YfPB/dDE Bcy+2hJ7t5nAkJtxqZxqfavE49eTTzrVXS0kElj8V/MlkebCor10Eh5jf9BT6Tp8Tynz uQgDh6hU7zuxHPXdwI6A2Zd/TaAw5Y9pWLKP8UdV+IUJJN6V76qZ5FqkD2PJeDXLyr9P BZ0oq6UM4JijebGkAGf6wWQy9LM/0iYFquUfDFLVklIqIB80Gi576PGJoIBMW4nVM+4G CICA== X-Gm-Message-State: AOAM530JQe3pUJaWh/jZOOPMEgCi6xFsuCR5nTsstm8Wck9mgHEE6yDY m9W9fLWHGSNGahKc+oHT/112CA== X-Received: by 2002:a05:620a:1906:b0:67b:3ac1:8f72 with SMTP id bj6-20020a05620a190600b0067b3ac18f72mr22573943qkb.478.1651246641508; Fri, 29 Apr 2022 08:37:21 -0700 (PDT) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id r9-20020ac85c89000000b002f378738ed4sm1906774qta.7.2022.04.29.08.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 08:37:20 -0700 (PDT) Date: Fri, 29 Apr 2022 11:37:18 -0400 From: William Breathitt Gray 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 , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" Subject: Re: [RFC v2 10/39] gpio: add HAS_IOPORT dependencies Message-ID: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-19-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UN0ca/LPGGPy0rfH" Content-Disposition: inline In-Reply-To: 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 --UN0ca/LPGGPy0rfH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 29, 2022 at 04:46:00PM +0200, Niklas Schnelle wrote: > On Fri, 2022-04-29 at 10:32 -0400, William Breathitt Gray wrote: > > On Fri, Apr 29, 2022 at 03:50:16PM +0200, Niklas Schnelle wrote: > > > In a future patch HAS_IOPORT=3Dn will result in inb()/outb() and frie= nds > > > not being declared. We thus need to add HAS_IOPORT as dependency for > > > those drivers using them. > > >=20 > > > Co-developed-by: Arnd Bergmann > > > Signed-off-by: Niklas Schnelle > > > --- > > > drivers/gpio/Kconfig | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > >=20 > > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > > > index 45764ec3b2eb..14e5998ee95c 100644 > > > --- a/drivers/gpio/Kconfig > > > +++ b/drivers/gpio/Kconfig > > > @@ -697,7 +697,7 @@ config GPIO_VR41XX > > > =20 > > > config GPIO_VX855 > > > tristate "VIA VX855/VX875 GPIO" > > > - depends on (X86 || COMPILE_TEST) && PCI > > > + depends on (X86 || COMPILE_TEST) && PCI && HAS_IOPORT > > > select MFD_CORE > > > select MFD_VX855 > > > help > > > --=20 > > > 2.32.0 > >=20 > > I noticed a number of other GPIO drivers make use of inb()/outb() -- for > > example the PC104 drivers -- should the respective Kconfigs for those > > drivers also be adjusted here? > >=20 > > William Breathitt Gray >=20 > Good question. As far as I can see most (all?) of these have "select > ISA_BUS_API" which is "def_bool ISA". Now "config ISA" seems to > currently be repeated in architectures and doesn't have an explicit > HAS_IOPORT dependency (it maybe should have one). But it does only make > sense on architectures with HAS_IOPORT set. There is such a thing as ISA DMA, but you'll still need to initialize the device via the IO Port bus first, so perhaps setting HAS_IOPORT for "config ISA" is the right thing to do: all ISA devices are expected to communicate in some way via ioport. William Breathitt Gray --UN0ca/LPGGPy0rfH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCYmwGKgAKCRC1SFbKvhIj K8KEAP0TKKesiZ/wUezoJg8+48qr5yK22ZRd1gc3a6/67xLQNgEAvu4pev2XF5/q 8PHoF5Bmkx2ZgF9O5X8qFa9zGNUxqAk= =PRGE -----END PGP SIGNATURE----- --UN0ca/LPGGPy0rfH--