Message ID | 20230522105049.1467313-12-schnelle@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1362093vqo; Mon, 22 May 2023 04:07:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7TkFLu4I4JhYHxxMs5ufMzAw5FiXiPLuyLJzi0i1pBUDzPBxU465MTf3V6QXSmw8mPldaE X-Received: by 2002:a17:902:dac3:b0:1ae:501:e233 with SMTP id q3-20020a170902dac300b001ae0501e233mr14150053plx.7.1684753662552; Mon, 22 May 2023 04:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684753662; cv=none; d=google.com; s=arc-20160816; b=wE2axcWunB7VqBrVphg8rvef5xOfj4gi9geKBQjb76Tjw5FwBjzCMNAbyFAvudokdb tbaScHZA9ztlfkvyzZitL2382HjbiLslvTU0uXJFDqF/8TqMa7r6805EdTCSpNT7BPxY VTxECejgHnhqPiM4n07fDkyAUyZdldHwY9xlD1nTpL+OR5UXAZiuHy/CIiylkj4crKsh s0XkUUVKjayblSFcCeODHY04SSJmdunPQDJy9y+FwSixgAziFY6PMcdBZxtthFbx+Td1 J+89U7Gc+KGJtfKu4OQUgkri9XcDVxhuxyFFQPH4WezHEyI0KAvWhNYbv1eBoZvUrozA 3Tig== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=6+4RrjdTfnJAshOCnAfyvJneuAtW/UXGQv11A4MgapE=; b=RH9a0SJlmFwRk0tQhpV72uVX4L/4R2yWoGF6IFYxr+fIY043FH/IwwFvTZ6/8lLx9R hasJyBV3QgKCYij4AuGOCmCipoFeOVmsxm5clFGXkzdDLQMQ8DIAoegZcmrS8j1rk3wM 3vFmoM+Mtidn9ntn4RZGXy8BrQBwwUP/4TknvtnJVh+XsRJO8l3o6xiWLcKw8Ccx7IaK VPyjmNqqAB5x7gltgSkhCyZrexahiM5PssgpJGaA+baYlgiTgOy7RrN5hfgc3pKyKCtq 6+yrgNAeTHH4lwVafBJr0CGKGhWt37ge73PKjgSiHfYULQxuLCSopKH21N0GNyapfbzC /OMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=VyrSDAsA; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n7-20020a170902e54700b001aafb271d16si4660016plf.461.2023.05.22.04.07.30; Mon, 22 May 2023 04:07:42 -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=VyrSDAsA; 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=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232989AbjEVKwH (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Mon, 22 May 2023 06:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232876AbjEVKvi (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 22 May 2023 06:51:38 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21702103; Mon, 22 May 2023 03:51:19 -0700 (PDT) Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34MAbXmk012319; Mon, 22 May 2023 10:51:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=6+4RrjdTfnJAshOCnAfyvJneuAtW/UXGQv11A4MgapE=; b=VyrSDAsAYDFG6OEqx5enKzSk51dcNvfQbBjK4MsPGZ3D4fUaWuyCtxUZdk7wVN8d9U4J Un7t9MT0zYwnW8LdKoaT1AJQdWYeC5OG/ZNiOc/a55YN6UjWyRybIXwKEuN3d2LODddV nAEYbUp29RO4qjxF8tP8RYQ1X2m7lBMOMtqcZAvlgfVimJ878v02B6emauFnmz/f/dJQ aBvZRlneTldH0UE2lISrldC1CJt16z79EQkFIr6iPVl2NLYaNHDjXywP8WrMhznzHFQB FYw9v4X18Q2CwMf+zMAqqxTex09UrG6ZTMajnhz0na27JwqMwblk4b8gs487ZaJ2YP4o dw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qq7qjgn5p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:05 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34MAmxsk005059; Mon, 22 May 2023 10:51:04 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qq7qjgn4r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:04 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34M5ooLM001949; Mon, 22 May 2023 10:51:01 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma02fra.de.ibm.com (PPS) with ESMTPS id 3qppcs8s0m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:01 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34MAox7e15925974 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 May 2023 10:50:59 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0E86A2004B; Mon, 22 May 2023 10:50:59 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A79B520040; Mon, 22 May 2023 10:50:58 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 22 May 2023 10:50:58 +0000 (GMT) From: Niklas Schnelle <schnelle@linux.ibm.com> To: Arnd Bergmann <arnd@arndb.de>, Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Bjorn Helgaas <bhelgaas@google.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, Mauro Carvalho Chehab <mchehab@kernel.org>, Alan Stern <stern@rowland.harvard.edu>, "Rafael J. Wysocki" <rafael@kernel.org>, Geert Uytterhoeven <geert@linux-m68k.org>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann <arnd@kernel.org>, linux-gpio@vger.kernel.org Subject: [PATCH v5 11/44] gpio: add HAS_IOPORT dependencies Date: Mon, 22 May 2023 12:50:16 +0200 Message-Id: <20230522105049.1467313-12-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230522105049.1467313-1-schnelle@linux.ibm.com> References: <20230522105049.1467313-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: aSnFaYpRsTjOi28xxWAIUX2crvxnb9OA X-Proofpoint-GUID: x-LN_IorG9amB50fBQe3pvKBvQPVNJcZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-22_06,2023-05-22_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 priorityscore=1501 clxscore=1015 mlxlogscore=734 impostorscore=0 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305220089 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766592256485961429?= X-GMAIL-MSGID: =?utf-8?q?1766592256485961429?= |
Series |
treewide: Remove I/O port accessors for HAS_IOPORT=n
|
|
Commit Message
Niklas Schnelle
May 22, 2023, 10:50 a.m. UTC
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. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Co-developed-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Arnd Bergmann <arnd@kernel.org> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> --- drivers/gpio/Kconfig | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
Comments
On Mon, May 22, 2023 at 12:51 PM Niklas Schnelle <schnelle@linux.ibm.com> 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. > > Reviewed-by: Linus Walleij <linus.walleij@linaro.org> > Co-developed-by: Arnd Bergmann <arnd@kernel.org> > Signed-off-by: Arnd Bergmann <arnd@kernel.org> > Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> > --- > drivers/gpio/Kconfig | 26 +++++++++++++------------- > 1 file changed, 13 insertions(+), 13 deletions(-) > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index 5521f060d58e..a470ec8d617b 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -704,18 +704,6 @@ config GPIO_VISCONTI > help > Say yes here to support GPIO on Tohisba Visconti. > > -config GPIO_VX855 > - tristate "VIA VX855/VX875 GPIO" > - depends on (X86 || COMPILE_TEST) && PCI > - select MFD_CORE > - select MFD_VX855 > - help > - Support access to the VX855/VX875 GPIO lines through the GPIO library. > - > - This driver provides common support for accessing the device. > - Additional drivers must be enabled in order to use the > - functionality of the device. > - > config GPIO_WCD934X > tristate "Qualcomm Technologies Inc WCD9340/WCD9341 GPIO controller driver" > depends on MFD_WCD934X && OF_GPIO > @@ -835,7 +823,19 @@ config GPIO_IDT3243X > endmenu > > menu "Port-mapped I/O GPIO drivers" > - depends on X86 # Unconditional I/O space access > + depends on X86 && HAS_IOPORT # I/O space access > + > +config GPIO_VX855 > + tristate "VIA VX855/VX875 GPIO" > + depends on PCI > + select MFD_CORE > + select MFD_VX855 > + help > + Support access to the VX855/VX875 GPIO lines through the GPIO library. > + > + This driver provides common support for accessing the device. > + Additional drivers must be enabled in order to use the > + functionality of the device. > > config GPIO_I8255 > tristate > -- > 2.39.2 > I already applied v4. Has this changed since the last version? If not, then you can drop it now from your series. Bart
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 5521f060d58e..a470ec8d617b 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -704,18 +704,6 @@ config GPIO_VISCONTI help Say yes here to support GPIO on Tohisba Visconti. -config GPIO_VX855 - tristate "VIA VX855/VX875 GPIO" - depends on (X86 || COMPILE_TEST) && PCI - select MFD_CORE - select MFD_VX855 - help - Support access to the VX855/VX875 GPIO lines through the GPIO library. - - This driver provides common support for accessing the device. - Additional drivers must be enabled in order to use the - functionality of the device. - config GPIO_WCD934X tristate "Qualcomm Technologies Inc WCD9340/WCD9341 GPIO controller driver" depends on MFD_WCD934X && OF_GPIO @@ -835,7 +823,19 @@ config GPIO_IDT3243X endmenu menu "Port-mapped I/O GPIO drivers" - depends on X86 # Unconditional I/O space access + depends on X86 && HAS_IOPORT # I/O space access + +config GPIO_VX855 + tristate "VIA VX855/VX875 GPIO" + depends on PCI + select MFD_CORE + select MFD_VX855 + help + Support access to the VX855/VX875 GPIO lines through the GPIO library. + + This driver provides common support for accessing the device. + Additional drivers must be enabled in order to use the + functionality of the device. config GPIO_I8255 tristate