Message ID | 20230516110038.2413224-10-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 b10csp336133vqo; Tue, 16 May 2023 04:03:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4r/qW0P+Tq0Heg8mf0T6DjryzpJNgfRJowbNaJn/XJzhxzHiQWs/qwjL9S7X6clDpg3R+h X-Received: by 2002:a05:6a00:22d2:b0:647:e45f:1a4c with SMTP id f18-20020a056a0022d200b00647e45f1a4cmr28838448pfj.11.1684235007708; Tue, 16 May 2023 04:03:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684235007; cv=none; d=google.com; s=arc-20160816; b=Lfqg98zikk+y8gNb1eNycQAZ631S4l7pPUHvpUY12B4fZ0m19q0YXJUVh2O/KXLDlL sbTHbH8ML/L6k/HNSgcdr7IZUGxcqDPLdLo80Eh/hXcGrxYyGViRnbCZ7YiIjqW7gRnd tw2Pn62XQnEHEaZkde0rp0fAurY2yPNSi+7vUzDI5Vl3cCe3TvEwEYG+TmqI8KrK6Way 8g9Yy5e98SDB67VK5LEv6kIKPZpBNMubbFuue11UfzLa6rup2TwnNc+v8YATl4eXTguX /Yef1asuiaju/btyuelq4twmQCzv0ePh52gI/ERDyeAm0POhpIbQgw+GGbPOuuncfNUB wCTw== 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=xRReE5ko/BCe1tVD+/9RD7bOs0UYjJYLUfL5d5D7PJk=; b=jIbOz7V8gKRP1+cozY1kEv7R5Ct9y4m1ISP6YoTx7HmdSvBBJM0PZkls5nlmUzqAnQ NKAViwOJuog1ZCpmDf0cm2tSPRh0/zg37HPqH5yDN5+Gk7506GF4uQAlD7nstbv3mhjT DGPlco/ds8eHwy9RlgJ1a35DUeRw2NPa0goReoB4AIgQ+QMtVEhrmWgjL9S5YSYjCLd7 xDgA6URwjquX4s4PxI9B5pulDKb04fdcteBrhdVQHsLryI1AwuG1b0kHvZAJE0TzmyZ8 trGohiF+C2Fl6N7qTP/yq80trw70dtP/JyrCGCOQXy+T3uKljBR6w8AbmpTANbzdaB7Z oWLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=l5zr5gmf; 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 a28-20020a637f1c000000b0052502825c67si19221264pgd.387.2023.05.16.04.03.10; Tue, 16 May 2023 04:03:27 -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=l5zr5gmf; 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 S232518AbjEPLAz (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 07:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231825AbjEPLAx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 07:00:53 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6B391717; Tue, 16 May 2023 04:00:52 -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 34GAsRh0023414; Tue, 16 May 2023 11:00:52 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=xRReE5ko/BCe1tVD+/9RD7bOs0UYjJYLUfL5d5D7PJk=; b=l5zr5gmfUtSs9FHf1FccNSFPIRq1GpKcpkHP8+MEo5TgOHOCRG2c0mKVJ1Fl6CXPcQsY bJPWewZn5dQPCQAkp/r7TJ6hlBJgHtcvrIVGabCEncxqinEnV1DlsL5CpxgVwxdbgzqX HFQZ0smnDkWLLrZ636fBc6QAzUHKf00dahDurjWA9OW0mS2fINTWDCNLdUmVaLN+tiTO w+zutIkyRZnTx0w16K44Uj13Ax4k72sgH5E27oYm9oSoMQkqdndAY8htCpsSEahQf/2s QEwS7DdAwlqJvF4BZge36Ejfld4dgYe9JVaLVe9YCZYtAi2E6/s0BigCGX5tgq5S+iaP ew== Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qm8g2g4s3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:00:52 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34G8T28a025703; Tue, 16 May 2023 11:00:49 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma06fra.de.ibm.com (PPS) with ESMTPS id 3qj1tdsaue-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:00:49 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34GB0lTE24183424 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 May 2023 11:00:47 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E1A0F20043; Tue, 16 May 2023 11:00:46 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8634720040; Tue, 16 May 2023 11:00:46 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 16 May 2023 11:00:46 +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 v4 09/41] gpio: add HAS_IOPORT dependencies Date: Tue, 16 May 2023 13:00:05 +0200 Message-Id: <20230516110038.2413224-10-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230516110038.2413224-1-schnelle@linux.ibm.com> References: <20230516110038.2413224-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: rhjFKQXQmb7gHAlEt8JrWlxx0f0dJs5o X-Proofpoint-GUID: rhjFKQXQmb7gHAlEt8JrWlxx0f0dJs5o 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-16_04,2023-05-16_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 adultscore=0 spamscore=0 clxscore=1011 impostorscore=0 mlxlogscore=725 suspectscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305160089 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?1766048407368760197?= X-GMAIL-MSGID: =?utf-8?q?1766048407368760197?= |
Series |
treewide: Remove I/O port accessors for HAS_IOPORT=n
|
|
Commit Message
Niklas Schnelle
May 16, 2023, 11 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. 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> --- Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so per-subsystem patches may be applied independently drivers/gpio/Kconfig | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-)
Comments
On Tue, May 16, 2023 at 1:01 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. > > 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> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Yours, Linus Walleij
On Tue, May 16, 2023 at 1:00 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. > > 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> > --- > Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so > per-subsystem patches may be applied independently > > 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 > Applied, thanks! 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