Message ID | 20230516110038.2413224-28-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 b10csp399162vqo; Tue, 16 May 2023 05:50:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ78D+7aIM5p+jBqvkhWwv2d/N9+mAcpW8qo6s5x9sHQlx2dUBLrrnoY4ME8NaP7BkA9f/TI X-Received: by 2002:a05:6a00:1a8e:b0:64a:9090:5147 with SMTP id e14-20020a056a001a8e00b0064a90905147mr21468520pfv.10.1684241426243; Tue, 16 May 2023 05:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684241426; cv=none; d=google.com; s=arc-20160816; b=Wc4ZEvh372crNYLXsKzbqqg0TtOV8qRc4AmQ05PxHMODKx5aBsa90/zeIIKvA5id6z cfGFWxFWgvScLCjZnG0NXoAKmBUT07hxP0GA3BkBbyok5c84n4HLSNJWbEmHqhYSHZdd yEpLoSOupPhFxBOGgnkrQTVoqUJDN5O5ZGPzklxRrAlcB4XRtG4vIHs2UujuUcRBMPtd gBovFwiGpDGFbrqwDxFCMaB9shpoL25azvjU3kHmOWVitSsGewZFIsDkEsuZrA/tNlUA UnElnNS+x5RatvT8LmfQDM/qEJA1LxKeKkJDig29tpQbCa4Q/9wGuAofgQknYF3VIbn9 ngKg== 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=zKQnd4uCl/rhw32LGsiVvNh8GGFSIw6T5V4V90czzb0=; b=ICw2wPwGHQWEdltORpx/8XeaZB0uEqZEgujSMQYfOxzqWaV9PpwfsmdTGiyFCfQndB N5hRVDM6+7jPn8fuiA1Ay04RE+DJrVUZl+ibRma0BUZLtIJg2Avip4iWLiHmnDQ3mOb5 sZPMCmjkBITW2iKF1IhRNWJeI3tv7EU58vNUSBYCBS9i6/AsiI5852vrU5/qigWdEGlJ iSyzYQoEKKBJhMFgYVZ2A5fbbdnoKRjWSFo+tMvcRHYTG4mJuAQXZTY96xIqBM4LK5Bh 5WFkJhGaEHx4mRhqfLV/UDTA3Bl0aAFDiCqInnA4hNBFDlmxuK5xtgqTGKBWcKvAriBu zUBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=QPXkpjXj; 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 h189-20020a6253c6000000b0064a8535dc6csi11293798pfb.108.2023.05.16.05.50.13; Tue, 16 May 2023 05:50:26 -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=QPXkpjXj; 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 S233114AbjEPMJR (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Tue, 16 May 2023 08:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233116AbjEPMJP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 08:09:15 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA945FD6; Tue, 16 May 2023 05:09:14 -0700 (PDT) Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34GAelHI017020; Tue, 16 May 2023 11:05:26 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=zKQnd4uCl/rhw32LGsiVvNh8GGFSIw6T5V4V90czzb0=; b=QPXkpjXj3mAjvlFO1ds3iHTejHe9kI5eeX5QYlNAP5V+2y97Uw3wlm/YnI4PnKpNY9wR LnvNPRPpXngPi/M8zOWX4LP37srDUFBxC1J+J6q3xgaAtGEbD2X8VRqj1OCppsX49Ltc d9uLxZUSoVBs9JZIejRnH01Zoea2KeAdsVknX+8YRCfJttQfOz8coHnER6sb8e4DSkzy A56KQVzf40od9kS1wSXnenEoY5N+VuiT1pfes876xkLnopXAExhvj6uG8FDGqILlv59j 5ohaikHpDDz0DwbX755Z+5zKjxwpAX2Zey8CRo5nsg623nvdy6W/EKfYC/wj7T8mqIhC xg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qm82f0swm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:05:25 +0000 Received: from m0356517.ppops.net (m0356517.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34GAttGQ005341; Tue, 16 May 2023 11:04:53 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qm82f0pne-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:04:53 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34G5LLca028625; Tue, 16 May 2023 11:01:05 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3qj264sk97-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 May 2023 11:01:05 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34GB13FV38142594 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 May 2023 11:01:03 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E99D2005A; Tue, 16 May 2023 11:01:03 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B42C72004B; Tue, 16 May 2023 11:01:02 +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:01:02 +0000 (GMT) From: Niklas Schnelle <schnelle@linux.ibm.com> To: Arnd Bergmann <arnd@arndb.de>, Sebastian Reichel <sre@kernel.org> 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-pm@vger.kernel.org Subject: [PATCH v4 27/41] power: add HAS_IOPORT dependencies Date: Tue, 16 May 2023 13:00:23 +0200 Message-Id: <20230516110038.2413224-28-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-GUID: gC677OthMYI01q4JVlcqAclFGUKy6eql X-Proofpoint-ORIG-GUID: O-AEjRKOh3i3Wg5hvo4w2omSiYB1HJvh 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 mlxscore=0 bulkscore=0 spamscore=0 suspectscore=0 mlxlogscore=999 impostorscore=0 malwarescore=0 adultscore=0 phishscore=0 priorityscore=1501 clxscore=1011 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305160094 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?1766055137454960163?= X-GMAIL-MSGID: =?utf-8?q?1766055137454960163?= |
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. Acked-by: Sebastian Reichel <sre@kernel.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> --- Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so per-subsystem patches may be applied independently drivers/power/reset/Kconfig | 1 + 1 file changed, 1 insertion(+)
Comments
Hi, On Tue, May 16, 2023 at 01:00:23PM +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. > > Acked-by: Sebastian Reichel <sre@kernel.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> > --- > Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so > per-subsystem patches may be applied independently Thanks, queued to power-supply's for-next branch. -- Sebastian > drivers/power/reset/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig > index 8c87eeda0fec..fff07b2bd77b 100644 > --- a/drivers/power/reset/Kconfig > +++ b/drivers/power/reset/Kconfig > @@ -158,6 +158,7 @@ config POWER_RESET_OXNAS > config POWER_RESET_PIIX4_POWEROFF > tristate "Intel PIIX4 power-off driver" > depends on PCI > + depends on HAS_IOPORT > depends on MIPS || COMPILE_TEST > help > This driver supports powering off a system using the Intel PIIX4 > -- > 2.39.2 >
diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index 8c87eeda0fec..fff07b2bd77b 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -158,6 +158,7 @@ config POWER_RESET_OXNAS config POWER_RESET_PIIX4_POWEROFF tristate "Intel PIIX4 power-off driver" depends on PCI + depends on HAS_IOPORT depends on MIPS || COMPILE_TEST help This driver supports powering off a system using the Intel PIIX4