From patchwork Mon Dec 27 16:43:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Schnelle X-Patchwork-Id: 12699957 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E406EC433F5 for ; Mon, 27 Dec 2021 16:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zeC/qCGomGOPFR+2L2nVM8AgIeS5sqIaPpc1PJzUsJ4=; b=2MwvZLgKovDHz4 /3/BReePh/U5Kb1QK6WHLFRzRYjm8psiSdKRinZxODWcqJc8549CYU/sy5vss2FNOiWlbSxdAzhtv FVg14xkv8+OhxyHoVTPkTJf3MUMxbO5bdAW5lGEIAg+7YWRz6VT+moFeHAZFTQ3bOuSaf7AWY3grW VYUab7iAPmmGahnUJZuot19p+x7r5CSMT8puBTt9s8tqJA0qn1w6MCaiBpotvm284p+KdQUBRqCsh ceeS/qH4FadVRuBkY/4XQRnV4D+gSOlmNtbS9+wGltwOe7Zn5AVXaz5vpdjd2OcpNT3zw3zaiUOiv nFysb5/VFh7H/A060x+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1tBw-00H3UI-KN; Mon, 27 Dec 2021 16:49:44 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1t6g-00H0gY-GF for linux-riscv@bombadil.infradead.org; Mon, 27 Dec 2021 16:44:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=v3dGe2QGDD3E3vFku8Pa8VDCXFhOulGUR3qCP6owhSU=; b=rCDssyf3WLGu3Z/Pc7sM1FW+I8 VI8TBoc+wLoHApuEZftiYM8lc7A/OrEyfb9Sih6jz3nBbEZMV/szMlFfmMT8NJ+/UWjplxiLfnl7b VAypt0AU1r/aKH9WOpxfb+9cuvxGdbCRiZrJg1hEXRze3KE6gyHuLT4/jpQKs2X5AXiuReodJL5r8 /x2y8jywWFz00SjvF9N3FukugdxdIPCEXgkDkI/f1R9yJTDBlYqucnAUjhLqaHVp2xwVFOiUD99+N CxHJGIDbeI+TkKThF7P65C+1iYOeiVr46d35odE8Ukyp9jp/aKHvfG4HOchDNOuL665K4HTGHDDv5 Mpa5IG9A==; Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n1t6b-003qqM-CV for linux-riscv@lists.infradead.org; Mon, 27 Dec 2021 16:44:17 +0000 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1BRGBqGl022410; Mon, 27 Dec 2021 16:43:50 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=v3dGe2QGDD3E3vFku8Pa8VDCXFhOulGUR3qCP6owhSU=; b=G8RISsiB0A1g0aa/BpWgPIwBPOsI4HkuYvP2GMVls0R6X2bVmTCqxrEq1flvzqt/k/6v jU7e1S+eSNz33QYe4KO/sLnAuyzHGAZZtxYXNyYtsV1W6xH0XjUt9gvwJu3xCz1RbwO5 aVlF9wIsWosb8kQgzfcD2fAEZ+NbiYfkddGIqkEQDjIgGXdQy6Ov8pteWrfSeeqgCQk7 qia+6MBI1IeNN5AXS9SgI5UO2BdV2jweoWausbTDGvU4BTtL/2QivqCURznJZXrruxE8 GS3n/gGYiQ/MGHgzkuHRiWYg0J73eue06Ff5DSJ1WJHW3hWEFv9qnQjGldLWC+nRYtwU oQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3d7gsv8fj0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Dec 2021 16:43:50 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 1BRGhniT021750; Mon, 27 Dec 2021 16:43:50 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0a-001b2d01.pphosted.com with ESMTP id 3d7gsv8fhb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Dec 2021 16:43:49 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 1BRGgHIS010422; Mon, 27 Dec 2021 16:43:47 GMT Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by ppma06fra.de.ibm.com with ESMTP id 3d5tjjau7r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Dec 2021 16:43:47 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 1BRGhi5546399824 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 27 Dec 2021 16:43:44 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8E1F6A405F; Mon, 27 Dec 2021 16:43:44 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D687A405B; Mon, 27 Dec 2021 16:43:44 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 27 Dec 2021 16:43:43 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann , Bjorn Helgaas , John Garry , Nick Hu , Greentime Hu , Vincent Chen , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Sebastian Reichel Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, linux-riscv@lists.infradead.org, linux-csky@vger.kernel.org, linux-pm@vger.kernel.org Subject: [RFC 21/32] power: Kconfig: add HAS_IOPORT dependencies Date: Mon, 27 Dec 2021 17:43:06 +0100 Message-Id: <20211227164317.4146918-22-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211227164317.4146918-1-schnelle@linux.ibm.com> References: <20211227164317.4146918-1-schnelle@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 8CYSt9YHIivEn0Y5OnkwflGqubJ7MCQC X-Proofpoint-ORIG-GUID: GE2cugr94VI9zNbRd3hi3sXXigkl0fnc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2021-12-27_08,2021-12-24_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 clxscore=1011 priorityscore=1501 phishscore=0 lowpriorityscore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 impostorscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2112270080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211227_164413_844074_A6D17451 X-CRM114-Status: GOOD ( 16.47 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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: 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 4b563db3ab3e..96b91eaca0cd 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -151,6 +151,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