Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3598593iob; Mon, 2 May 2022 00:06:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLfzvASXsBdfh3qoJnW1dCZGdLoaVHMt/siIQZyjJaodvK/sjwg74mNZERzMyDh6MikiOk X-Received: by 2002:a05:6512:282c:b0:472:5e33:e239 with SMTP id cf44-20020a056512282c00b004725e33e239mr5311611lfb.597.1651475218243; Mon, 02 May 2022 00:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651475218; cv=none; d=google.com; s=arc-20160816; b=aaqVInbO8HTVrPCUxAjbN63MqXVRQ8fghQqwsenB4VcKyBG07TXQkM9cwjKEHl1VN+ j4tvrmvAGM5fJzQs6oFRZDPrBpvf7F8771Y9navm5k/neIc0FsUxym3EECsecJBPyI73 Xk4yC//cPUYW4fk6Ehl+WqMdXzQSveAbV0ujkU0NuA7Z4FcDDEDC5FENyZ6M3eF0LwDA ob0stsIlBCXwGB2F1XVPbAOVWjdMyjjWuNI9VDBXpFDU/h5gNA4XqkjSjDrD304w/CIk SHFXBpblrCfxtnVnJeFV9HlzZoxl45XE+DQ0dZvSNQ3Kn7JnB5qPAsKo4P51ZEoumeh3 Evow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=+e0OS0jdwM0ste0CCTZic6/ixhDPnmAaqxN6Co5MrLM=; b=U+EO2wFnJ2zZ+WbD+6oEafC9Jrdsfac4N+QtPuEv6dkfw1fPi5fJbBggNb39uaalrN rriNEBADonJav92QBMtBpNgR2uxASAqNu5s3cexOdW5Cm7dJmw2IzWrBzQSo/n8G57pG OF7H//OM3LxadnzOoUR2mah/xbWeRa0efga+x7T8RJHSsEPJhwqwJUCXSoyHXp6rp6Li igJKSytnApYgmWnj1LINjK7CjbRqp6u2qxJaVb6AaB00IFjKBwKYog+9k9Rx5P9d6EO3 chYW4s99UOviboM0smDSmXScUs934JEpbJz2AgcGG6+rahrZUhki0y8Gki5v5r2PW35X xUDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oH96y0DF; 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=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a05651c154900b00250605100c3si495934ljp.434.2022.05.02.00.06.31; Mon, 02 May 2022 00:06:58 -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=@ibm.com header.s=pp1 header.b=oH96y0DF; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377846AbiD2Oty (ORCPT + 99 others); Fri, 29 Apr 2022 10:49:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377963AbiD2Ot3 (ORCPT ); Fri, 29 Apr 2022 10:49:29 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77DDC84EF4; Fri, 29 Apr 2022 07:46:11 -0700 (PDT) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23TEUbfq019124; Fri, 29 Apr 2022 14:46:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=+e0OS0jdwM0ste0CCTZic6/ixhDPnmAaqxN6Co5MrLM=; b=oH96y0DFo5ryBziODc8t13MjfzAcy8bISyG+R3DIfm1nTyqsgHGkN8dLoVCo0a76TqZV rNmmP3QIKtEd9Sx3598ujmp9RLfxeR5Ti2RZrDAKTAFHIwohFSlP1/wTFte57X9PbFjy mexOZRTCacr7Dyb7kag1VXci6h+mQKDUVws6nMryCi3+yN8isFETvH/qZTWd/uVjlU8Z Oi9NPnkruc4y7SNRbst/WUmLpHVH6RxESuG5wJVJkr8Q2w6HedzemstuKRO0g+SsNYiz wDJezV1e36vo2i4qxNwiY+v2/2q9MYx4UmwUhzCdn/xjKXOv2uhbmGGENBKipClKOb8i Pg== Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3fr27h2eva-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 14:46:06 +0000 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23TEhmCC030518; Fri, 29 Apr 2022 14:46:04 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma05fra.de.ibm.com with ESMTP id 3fm938yc6t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 14:46:04 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23TEk13O42336612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Apr 2022 14:46:01 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B9542AE053; Fri, 29 Apr 2022 14:46:01 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 28965AE04D; Fri, 29 Apr 2022 14:46:01 +0000 (GMT) Received: from sig-9-145-61-57.uk.ibm.com (unknown [9.145.61.57]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 29 Apr 2022 14:46:00 +0000 (GMT) Message-ID: Subject: Re: [RFC v2 10/39] gpio: add HAS_IOPORT dependencies From: Niklas Schnelle To: William Breathitt Gray 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" Date: Fri, 29 Apr 2022 16:46:00 +0200 In-Reply-To: References: <20220429135108.2781579-1-schnelle@linux.ibm.com> <20220429135108.2781579-19-schnelle@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-18.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 4tyF1YQXcKzZEbdTsAgzd5uvwySxGP6J X-Proofpoint-GUID: 4tyF1YQXcKzZEbdTsAgzd5uvwySxGP6J X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-29_07,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 clxscore=1011 adultscore=0 priorityscore=1501 mlxlogscore=512 suspectscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204290080 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 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=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. > > > > Co-developed-by: Arnd Bergmann > > Signed-off-by: Niklas Schnelle > > --- > > drivers/gpio/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > 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 > > > > 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 > > -- > > 2.32.0 > > 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? > > William Breathitt Gray 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.