Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2021126iob; Fri, 29 Apr 2022 19:41:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdvtOOW1Gh6cNHcfekSD9p1VVgcCYAlPQt11t/FxHscIHQTviH23siUAOcXC25GbsV+HEr X-Received: by 2002:a05:6512:3fa0:b0:44a:f66c:8365 with SMTP id x32-20020a0565123fa000b0044af66c8365mr1620365lfa.152.1651286475701; Fri, 29 Apr 2022 19:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651286475; cv=none; d=google.com; s=arc-20160816; b=GdtoV+41HzH14cOmUYu0TP5kjFzLpQ6nhZW45x8j6w0oZ45tS/nHXM0fOdLBXB4xMC sr/wISr5pEq/Wor94sX7mUQq9FJ7T46TI5F0Z/GBfnaL5HHjzZ6a1qqrD7acvR1b0B3v IhkA8sRIoS5xeNGCTtgz9PpMZOUF2ZM0JCn1Tq8HJKr9bRc+vp0lEP9b7pQDeUWh75Wn WN97JP+MIpRfYlsRwQQi6N7rUnywbU5KD4ufcX6sR0H/BM5nvIRvIrK4my7CkqKE21uB uEUXVTigCSLmNEmwApquD7ZKV7HM8cCOFW8oEs2UL23dL+Ac+bg3xFQt2D43nryBWWlK Rggg== 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=bsnoYaCxcP6yUiJWmu0WIZU/5X+rJ9IzWoxXls9WFFs=; b=tncgPzKZhUEEbjC/lUBvSHq2ieSAEyQ/pFGZ3mpYibYy+XoltixVnuG0UQZfyzpwOj 63iU4zJ/3TLWAs+GLhL3EYJkc4EZq5Iq5VY7uvD5Ru5/8MhNWLRnY3cM/gIZ/smwvlx8 tLB4NQwTxRxAHNtPmHTbi2yG8kc+kEFlW0GBsu9Wtb4/66/x0/lP9ftQhFYgtO0EkTIx VNjmheafSHfCLsIEErNCMtz5hbD+ia3y5NcwMfZ9veKqe4WhlY1KCPr9LAxFuJXesUC0 LHJZmCRH+KEk0HApFe2nzUcE0o2qa3mLBlCx9lgExdKme7UrLf1TD1dlurKSxRZGwPQ8 wSDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=rU2YH484; 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=NONE 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 by33-20020a05651c1a2100b0024f2dfb7effsi8503056ljb.584.2022.04.29.19.40.46; Fri, 29 Apr 2022 19:41:15 -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=rU2YH484; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376634AbiD2N5X (ORCPT + 99 others); Fri, 29 Apr 2022 09:57:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376626AbiD2Nzv (ORCPT ); Fri, 29 Apr 2022 09:55:51 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D19DA6E565; Fri, 29 Apr 2022 06:51:43 -0700 (PDT) Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 23TDAab1015911; Fri, 29 Apr 2022 13:51:37 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=bsnoYaCxcP6yUiJWmu0WIZU/5X+rJ9IzWoxXls9WFFs=; b=rU2YH484KzyNdxXrJITxrxFIe8kLx00bN0BSIT0ob6FnkOtbblTTeUcGQD2I/E3RvoCZ fTWNLwG7saqr61RKTKAmbwnXgU0NI2Q+Lwy5bzCOyfFN2MrbH1y/R2cPPB9ThlPqbVkb H5nQ5AJ8YFgBpSzEywgZW/qAcpZ4Yvr2gQ/VM2EEQTUsnTAP6j+I8JuJJ95irtSy9nRd HF1feOkNig9XWEa0UUQGqLUCC4vf0TAAr6dO9DQ7iap6lEcSd1fVIpfO9Ab/AnbRH2tK 3+uXLfGGb4rKMyQjaz425vypO39TvSJJy4Uq5Pjav6X5BsLmggvWRa/UafgobsaYyJM9 kw== 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 3fqtdnd8ay-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:36 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 23TDQlvn014243; Fri, 29 Apr 2022 13:51:34 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma04ams.nl.ibm.com with ESMTP id 3fm93916wp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 29 Apr 2022 13:51:34 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 23TDcNU149938796 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Apr 2022 13:38:23 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 50C6B4C044; Fri, 29 Apr 2022 13:51:32 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0AFC64C040; Fri, 29 Apr 2022 13:51:32 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 29 Apr 2022 13:51:31 +0000 (GMT) From: Niklas Schnelle To: Arnd Bergmann Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, Arnd Bergmann , Benson Leung , chrome-platform@lists.linux.dev (open list:CHROME HARDWARE PLATFORM SUPPORT) Subject: [PATCH 22/37] platform: add HAS_IOPORT dependencies Date: Fri, 29 Apr 2022 15:50:36 +0200 Message-Id: <20220429135108.2781579-39-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220429135108.2781579-1-schnelle@linux.ibm.com> References: <20220429135108.2781579-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: o8WtM_XB3PH4AGoTEbS1VXLb64fLX7Ku X-Proofpoint-ORIG-GUID: o8WtM_XB3PH4AGoTEbS1VXLb64fLX7Ku X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-29_06,2022-04-28_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 mlxscore=0 bulkscore=0 phishscore=0 suspectscore=0 mlxlogscore=793 clxscore=1011 impostorscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2204290078 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 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: 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 75e93efd669f..51f895663e95 100644 --- a/drivers/platform/chrome/Kconfig +++ b/drivers/platform/chrome/Kconfig @@ -111,6 +111,7 @@ config CROS_EC_SPI 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.32.0