From patchwork Mon May 22 10:50:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Schnelle X-Patchwork-Id: 97283 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1363555vqo; Mon, 22 May 2023 04:10:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6AOME9ypwynWvIZ1CJwh81J1EpMW1kW3YuMDWEFktVzk+WPNyY3fGrr/tnAHGgz2joTKL+ X-Received: by 2002:a17:903:234a:b0:1ac:85b0:1bdb with SMTP id c10-20020a170903234a00b001ac85b01bdbmr15113613plh.55.1684753814886; Mon, 22 May 2023 04:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684753814; cv=none; d=google.com; s=arc-20160816; b=wpyGevkqCZ7KhZVikerXa6p7u3vmtIQ9r16YqAntSmQeAAoJ2FmaLMOSL0/Cd4fs2b dASp5YaReT3d0Lg12oZrO5i3mbkJKQBT7ILx8vpHo/PqzHB3CKqi2+GI3gGlAq7quK7i B3FCOVphg1TGQpLU+rDaDlnzMbNX3Z8u7eFxwPWiAdBSoiA3zKk0Xlc/gr6pvOnNolWn zxJVmqyucafUUjRJEV0lTdwVUhyozFF+rSltZ4Et56WJkIS+tcQUmE4yHSTU++ecRzgT KZLRECwjQm0s00rn2OTgB7pafOPJBkc7BthRQ7QIPY32iXjwBp4OjNSF/GljzMu3Wddt 3RVw== 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=dKfLoHPLieLGfuOq/Db847WlBv3dR+C2SQLGOgoYf3Y=; b=B6WxEKmBiO2Mc2/LUvcHN1iatoUA3xpK59jd9bIAQ0edZx0saF3kczdwRoYkQEEoPK 8naCUp1ZlYjSeIyEojwfl73NkSnpkZYJFSgoJJKKYkR9qv14GtPfZin7Bpdekc/UgwV7 Yca6A9ZgtP9X4rNHnBO8D8yH2J1gpqw3xy6+UjESi3F1SiA/ctHqR6SClnrgU+pqZGVF aq0ihgfE8payXeypcz5DwMov5m3bPAalpDZ2Qlc2IVpRdoW+zDo41mUr3kLTFNEfqljo CUBFD/BtaPpqT9A2TvX/vliUyRbVcR5LBB8dYjpPcMEA6umO+wL2IFcyR1um86Buueku iHHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=UfHn4y8O; 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 j14-20020a170902758e00b001aaea258805si4373229pll.134.2023.05.22.04.09.59; Mon, 22 May 2023 04:10:14 -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=UfHn4y8O; 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 S233007AbjEVKyE (ORCPT + 99 others); Mon, 22 May 2023 06:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233011AbjEVKwQ (ORCPT ); Mon, 22 May 2023 06:52:16 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31E5CE7A; Mon, 22 May 2023 03:51:33 -0700 (PDT) Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34M8hwQs024922; Mon, 22 May 2023 10:51:21 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=dKfLoHPLieLGfuOq/Db847WlBv3dR+C2SQLGOgoYf3Y=; b=UfHn4y8OjIOokZuqeZUJZJzpa+B+qU7iFIPO9l9u1UekGtDrCIqcnFNfSpnlT7GRjKno exVD1jCm/V+0YZ+g0/Mf0plXWxv7G6S4m+3zHj6bBdklJoiN6+CTKwF/oJBGC5Swh7Qe 1bSK02+sU7NtRNlZQjwFjN+vM+m4ZNblwGxawzCTE5i5Mb/3Wk5taLcGDQnkYucbwP+t 8v6IV7tpB7uiwhFz5Dnzdg0sfYNJ7cXdOVBPnx9K0VizR9C6My+CfSFGqnl9fisEqfMu SElSqZduSitT9DhEAbvgtDrPbIRK0xK4pkO1tQqR4OH94x/N1X10H4agO/2FqBQpt/gq Kw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qqgk8s34m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:21 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34MAbKXd022924; Mon, 22 May 2023 10:51:20 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 3qqgk8s33y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:20 +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 34M3P0dr016258; Mon, 22 May 2023 10:51:18 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3qppdk0w9a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:17 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 34MApFTs58261996 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 May 2023 10:51:15 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 842DD20040; Mon, 22 May 2023 10:51:15 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2411B20043; Mon, 22 May 2023 10:51:15 +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:51:15 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann , Sebastian Reichel Cc: Greg Kroah-Hartman , Bjorn Helgaas , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Mauro Carvalho Chehab , Alan Stern , "Rafael J. Wysocki" , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , linux-pm@vger.kernel.org Subject: [PATCH v5 29/44] power: add HAS_IOPORT dependencies Date: Mon, 22 May 2023 12:50:34 +0200 Message-Id: <20230522105049.1467313-30-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 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 5F9JYAt8_MT5CSlDrdJVjX3PB3dorMz2 X-Proofpoint-ORIG-GUID: vp5H0BZvp_k7S3sYvFowlTQ7dwtZNwOu 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 mlxlogscore=999 spamscore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 impostorscore=0 phishscore=0 suspectscore=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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766592416030917405?= X-GMAIL-MSGID: =?utf-8?q?1766592416030917405?= 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 Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Niklas Schnelle --- 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