Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2760655rwd; Mon, 22 May 2023 04:06:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Arj4B9V8kK+l1yGIg+sFXNKPqI+ddwDf40gTStSY1PsC8LwT/QGEnKuC0PPkLjHpprAiZ X-Received: by 2002:a17:903:22c4:b0:1ae:6003:2dd9 with SMTP id y4-20020a17090322c400b001ae60032dd9mr14273381plg.43.1684753569182; Mon, 22 May 2023 04:06:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684753569; cv=none; d=google.com; s=arc-20160816; b=Ckl55NsVesI5Cjhpy6iwxR3qcjs7+q3BK5lJ40gHpls/xoR6eWMx+HRFXQZLngue94 00i53gZAOi0kvBIE4dLJ4W7Zbo1Yiy9Qtgc0Z41LgCdOlmqW2al3SwEIEDnYIIeqoXSM i6EU19Qs/vmcOkls2SYVs4nJUeE8LzB9TihtxL5mM2CjTuJ8MT7lCNThfOOq0ehLOXev 5tFa1N/HYr4FGxqiVzSXh2E+lqc8xGBPeQC+4F+OpcrmA49QiTQf3cqKASCoo5WlSl3k AFPpG6G8TGnxBAVC/B0QBy45QEvemRNBw0kB04nGTady7nHoCI3SkIdejaCu1NFohtY+ e+6g== 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=8yLmsYgRdQYd+Bq6j/lBtS5iLfygP3CtMvOwoy+AhWY=; b=XPcQCl1v9KEmWRZeSG6yQiGZ48PxxWiVl/N92PYGOIBvRWzRSHVJDd8kTY+EgaXUDf h8zOd0mfSSGrYgl6phyrKIWA/t6Z+IiqsZ1WXl5UrRVm7tFuk/OIsDG6qyIevVvwgeNP SeDYuxgPPjkpe78jcuFclOKduHes6afTi1ZhuY1MdmNni3eM7HmYaFfOSK1IGTR8F9Cr eo8PUyfO3NPMexdzMW4xc+B9yKcNi+Ork4bgPV/C4tjCESpm1KxSGfDSgcdNgqgQluGe TPBxNQ/47sUeNR79q0wyK3Tum8mMGkJexW6SsDAftCcY9SHF+YdMRsaauEowQXNe7MkX rRXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=Pb4RZ2Qy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a170903018700b001ade5e66c39si4761118plg.114.2023.05.22.04.05.55; Mon, 22 May 2023 04:06:09 -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=Pb4RZ2Qy; 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 S233010AbjEVKyU (ORCPT + 99 others); Mon, 22 May 2023 06:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232797AbjEVKw2 (ORCPT ); Mon, 22 May 2023 06:52:28 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9950BE7C; Mon, 22 May 2023 03:51:34 -0700 (PDT) Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34MAMjXh005104; Mon, 22 May 2023 10:51:19 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=8yLmsYgRdQYd+Bq6j/lBtS5iLfygP3CtMvOwoy+AhWY=; b=Pb4RZ2QyK2AFLozv/QmDVTKCulRhy3VJeuco8glT2TRMzlu5KmU46BGPubbS8l9EhwFX D2P4bD2EFiM0Ovl44aDEndqZ1n/bbK7bxLmu2cxEw86YvLbwviZiKKzM92ec9UziE1jM g+WhVIrcjOQi6WRNfNecDV8gKUED0CElrJ52J1TATcr0lScSxlWAOw6AoNn4iwNSjx2t XPZ/DahGzW/gxc7HJ8cq/vu8DhUqoGgHeuAN8bDMvZ6Y/1CxEE0HzSYmWw4Vk9bh29Ux CzHzBtly5pB0Fm1cCw1cWozkarICy7cuDYNn11K9P7+rc0R0f3wX8zrLj0AxuPhqWayz +A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qqfq39qyv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:19 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34MAIRuL021202; Mon, 22 May 2023 10:51:18 GMT Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3qqfq39qxe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:18 +0000 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 34M6KApK015110; Mon, 22 May 2023 10:51:16 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma05fra.de.ibm.com (PPS) with ESMTPS id 3qppbmgrw5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 10:51:16 +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 34MApEKV39846230 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 22 May 2023 10:51:14 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F2C052004D; Mon, 22 May 2023 10:51:13 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 977E520043; Mon, 22 May 2023 10:51:13 +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:13 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann , Benson Leung Cc: Greg Kroah-Hartman , Bjorn Helgaas , =?UTF-8?q?Uwe=20Kleine-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 , Tzung-Bi Shih , chrome-platform@lists.linux.dev Subject: [PATCH v5 27/44] platform: add HAS_IOPORT dependencies Date: Mon, 22 May 2023 12:50:32 +0200 Message-Id: <20230522105049.1467313-28-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: 3hMKMFgCyXyhbXfpklYTTQul6KNZsZRW X-Proofpoint-GUID: PQd1jKnWBLlozuUODC1jIc5sis_MZ7mC 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 phishscore=0 mlxlogscore=812 priorityscore=1501 adultscore=0 lowpriorityscore=0 mlxscore=0 spamscore=0 suspectscore=0 malwarescore=0 impostorscore=0 clxscore=1015 bulkscore=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 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 Acked-by: Tzung-Bi Shih Signed-off-by: Niklas Schnelle --- drivers/platform/chrome/Kconfig | 1 + drivers/platform/chrome/wilco_ec/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/platform/chrome/Kconfig b/drivers/platform/chrome/Kconfig index 7d82a0946e1c..7eb1cfde29b4 100644 --- a/drivers/platform/chrome/Kconfig +++ b/drivers/platform/chrome/Kconfig @@ -132,6 +132,7 @@ config CROS_EC_UART config CROS_EC_LPC tristate "ChromeOS Embedded Controller (LPC)" depends on CROS_EC && ACPI && (X86 || COMPILE_TEST) + depends on HAS_IOPORT help If you say Y here, you get support for talking to the ChromeOS EC over an LPC bus, including the LPC Microchip EC (MEC) variant. diff --git a/drivers/platform/chrome/wilco_ec/Kconfig b/drivers/platform/chrome/wilco_ec/Kconfig index 49e8530ca0ac..d1648fb099ac 100644 --- a/drivers/platform/chrome/wilco_ec/Kconfig +++ b/drivers/platform/chrome/wilco_ec/Kconfig @@ -3,6 +3,7 @@ config WILCO_EC tristate "ChromeOS Wilco Embedded Controller" depends on X86 || COMPILE_TEST depends on ACPI && CROS_EC_LPC && LEDS_CLASS + depends on HAS_IOPORT help If you say Y here, you get support for talking to the ChromeOS Wilco EC over an eSPI bus. This uses a simple byte-level protocol -- 2.39.2