Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp592945lqp; Fri, 5 Apr 2024 03:10:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFPDbq+QHFy7x6cfnD9iVSviGynnEtpVwZ0dNtng0rtGQ0+REj4KTbX3YtjjJKohjlwik3bdd5gpsRxLlKt5TNmQqrRSNn7N3bpmvEVA== X-Google-Smtp-Source: AGHT+IE/GTV0q+R6F8CbdC2uf/59cVnLl5dN0dOXl0NQMkKPBuAqrp4Ekh2qQVGrhTKOdPBEGBIb X-Received: by 2002:a17:902:dac9:b0:1e2:8ab7:dec4 with SMTP id q9-20020a170902dac900b001e28ab7dec4mr931571plx.44.1712311836029; Fri, 05 Apr 2024 03:10:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712311836; cv=pass; d=google.com; s=arc-20160816; b=Uji2AG8FhtZyqyPypa/5eusdxDFDGy8bpFa0Bg8gFdcaJ8Eol68ZLIZPTOnXOKJIqn slFR/zosAuQz95SSItNFEHVNKYwEHRUhAAtUVjYV6n5V/X3+cwOLOMEgSmsqaOJ1Wlsc bNVkFLe+BKCxJ1OQ5azkw+XFeWbW49Uf8jic9rqy0j8nBun3Iab7tIku+QdcYi8vVC2u yj27ay0381DUu6LKrQ/4UR8wLMKaS35BRO0VJDLAE0CJ58EgsehdSVIB/NoetshoxZBv ALmS6uaeJ8Y2EFdIueTPnatKks/7VXu3zgoYmLkOG62UHvMRH/LCoYo7vEe9nqX7ZlKq PzoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=0sGKWciGZw5LrxNhlyYAuC2UF0DAI3RCQwnZ+F/SXu8=; fh=ZwB6EEkvjrknp4+WjVvBk6pikYhgQY0tKZ6s9jODdzw=; b=icYI350qzwZY9mKaE663+AdRA69Gx/66PtyCXBjykfTiGB+sOv6Kot2xNZ5CVRbYWu ZgmK87Lgh477cJn//mm2ROGDSFbEjelguqgDmQtNMmwfhvqRlzX/eerZe/asp8dIZKY+ pWR8gfj3Zst5r3ffol2kjIVNqrbjuswZClrDJKlVtQFUxqN1WiDS8rpV4VgIlLzMzkPx mwa+a3nH2F34/r6H4QFBlx13h9EPhcbHXcZHvMycw7qGddzPbB71R8+egPZyECm+55kf IXaeGRbFibJIBke40g05UqtWY8EydRdbEMjaEvJLcd06DRV08h3HpXoc1hehr8db+2uS qVkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=n7qxBIIs; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-132796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j9-20020a170903028900b001e28329ef2csi1147358plr.608.2024.04.05.03.10.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 03:10:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=n7qxBIIs; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-132796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 83819284F6C for ; Fri, 5 Apr 2024 10:10:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC0DE161914; Fri, 5 Apr 2024 10:10:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="n7qxBIIs" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CC8316132C; Fri, 5 Apr 2024 10:10:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712311825; cv=none; b=R3ZY+mxb/SYswsdtGMLRUFf6Rf3rEnFCqHmDc4Po3sXJtj60WcXjrUfS4tih4d7nawieBKg7/e7uKyKJnSgGc79yOe+QK9352cp/iOOXeAi8nUXhXvsEfipqq9pmnSEOTXdGksRFXnbAvoKljom9+fWwRG0cY4lMQ7dZPZnthOU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712311825; c=relaxed/simple; bh=K+pW7okZKaFWQxkTBLeX6s6ahG+/ReITCIbt1VKD3UM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YmnS7AnDBz7UIQxM4Zj47xCLu5OcKS0hfjx7c1z+e5tLPdl/PjYfXJj2jQ23I1OeST6G9yKv+JSAqBKI0nL0rMOuM3N1N0c/BcjLMudgopDJOKPlaAPa0ILclGQ4uFk5z0WRamOQSgJc+pJfXK2/pc2SGbI6M3gp+cjYhMzUsvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=n7qxBIIs; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 4359Vion020789; Fri, 5 Apr 2024 10:10:17 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=0sGKWciGZw5LrxNhlyYAuC2UF0DAI3RCQwnZ+F/SXu8=; b=n7qxBIIs5zlkHt4y+2hWabKip0J3cCgVdH3aipxJQeYmAwyJTZqchXdJT533TM+JqJJ/ 01K/u/jNQIqln2ScFMowKA3XAPoB7c7CZmZwMTY4QrwJOK7bAUOV0beEuCF/dQNVVvYi zvWesfuyOFxf6Zd71mT95vbRzgPQ3PPLHvHBRqcc1mh5pkGxAhlGGCkgOvexyql8aWZp TayL+tDXU7wzYEQpClr0/PQy/wWi9U6U3Yh/zS+5u3OTyQ6qVuwIZmmU6ELQLSPRg0bn 7JboILJKujC39sJzQSQeJiVWsvpMAw/8yHy8CfxqmBtypx8Dja0jQ6s+5xhtDMzb+/pA og== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xae3pg57c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 Apr 2024 10:10:16 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 4359iSKw009143; Fri, 5 Apr 2024 10:10:16 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3x9epy1snd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 Apr 2024 10:10:16 +0000 Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 435AAAEg51380526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 5 Apr 2024 10:10:12 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8E77B2006E; Fri, 5 Apr 2024 10:10:10 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5BD412004B; Fri, 5 Apr 2024 10:10:10 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Fri, 5 Apr 2024 10:10:10 +0000 (GMT) From: Niklas Schnelle To: Andi Shyti , Wolfram Sang Cc: linux-i2c@vger.kernel.org, Arnd Bergmann , Heiko Carstens , linux-kernel@vger.kernel.org, Niklas Schnelle Subject: [PATCH v2 1/1] i2c: add HAS_IOPORT dependencies Date: Fri, 5 Apr 2024 12:10:09 +0200 Message-Id: <20240405101009.2807447-2-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240405101009.2807447-1-schnelle@linux.ibm.com> References: <20240405101009.2807447-1-schnelle@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: EhPk8x7FtMWYP8ddoYXQGLTo0_Vk9Tgc X-Proofpoint-ORIG-GUID: EhPk8x7FtMWYP8ddoYXQGLTo0_Vk9Tgc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-05_09,2024-04-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxscore=0 adultscore=0 phishscore=0 mlxlogscore=999 malwarescore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404050074 In a future patch HAS_IOPORT=n will disable inb()/outb() and friends at compile time. 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 --- Note: This patch does not depend any not-yet-mainline HAS_IOPORT changes and may be merged via subsystem specific trees at your earliest convenience. v1 - v2: - Removed HAS_IOPORT dependency for I2C_PARPORT drivers/i2c/busses/Kconfig | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 97989c914260..5f4dc31ed142 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -18,7 +18,7 @@ config I2C_CCGX_UCSI config I2C_ALI1535 tristate "ALI 1535" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the SMB Host controller on Acer Labs Inc. (ALI) M1535 South Bridges. The SMB @@ -30,7 +30,7 @@ config I2C_ALI1535 config I2C_ALI1563 tristate "ALI 1563" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the SMB Host controller on Acer Labs Inc. (ALI) M1563 South Bridges. The SMB @@ -42,7 +42,7 @@ config I2C_ALI1563 config I2C_ALI15X3 tristate "ALI 15x3" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the Acer Labs Inc. (ALI) M1514 and M1543 motherboard I2C interfaces. @@ -52,7 +52,7 @@ config I2C_ALI15X3 config I2C_AMD756 tristate "AMD 756/766/768/8111 and nVidia nForce" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the AMD 756/766/768 mainboard I2C interfaces. The driver also includes @@ -77,7 +77,7 @@ config I2C_AMD756_S4882 config I2C_AMD8111 tristate "AMD 8111" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the second (SMBus 2.0) AMD 8111 mainboard I2C interface. @@ -107,7 +107,7 @@ config I2C_HIX5HD2 config I2C_I801 tristate "Intel 82801 (ICH/PCH)" - depends on PCI + depends on PCI && HAS_IOPORT select P2SB if X86 select CHECK_SIGNATURE if X86 && DMI select I2C_SMBUS @@ -165,7 +165,7 @@ config I2C_I801 config I2C_ISCH tristate "Intel SCH SMBus 1.0" - depends on PCI + depends on PCI && HAS_IOPORT select LPC_SCH help Say Y here if you want to use SMBus controller on the Intel SCH @@ -186,7 +186,7 @@ config I2C_ISMT config I2C_PIIX4 tristate "Intel PIIX4 and compatible (ATI/AMD/Serverworks/Broadcom/SMSC)" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the Intel PIIX4 family of mainboard I2C interfaces. Specifically, the following @@ -232,7 +232,7 @@ config I2C_CHT_WC config I2C_NFORCE2 tristate "Nvidia nForce2, nForce3 and nForce4" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the Nvidia nForce2, nForce3 and nForce4 families of mainboard I2C interfaces. @@ -265,7 +265,7 @@ config I2C_NVIDIA_GPU config I2C_SIS5595 tristate "SiS 5595" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the SiS5595 SMBus (a subset of I2C) interface. @@ -275,7 +275,7 @@ config I2C_SIS5595 config I2C_SIS630 tristate "SiS 630/730/964" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the SiS630, SiS730 and SiS964 SMBus (a subset of I2C) interface. @@ -285,7 +285,7 @@ config I2C_SIS630 config I2C_SIS96X tristate "SiS 96x" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the SiS 96x SMBus (a subset of I2C) interfaces. Specifically, the following @@ -303,7 +303,7 @@ config I2C_SIS96X config I2C_VIA tristate "VIA VT82C586B" - depends on PCI + depends on PCI && HAS_IOPORT select I2C_ALGOBIT help If you say yes to this option, support will be included for the VIA @@ -314,7 +314,7 @@ config I2C_VIA config I2C_VIAPRO tristate "VIA VT82C596/82C686/82xx and CX700/VX8xx/VX900" - depends on PCI + depends on PCI && HAS_IOPORT help If you say yes to this option, support will be included for the VIA VT82C596 and later SMBus interface. Specifically, the following @@ -885,6 +885,7 @@ config I2C_NPCM config I2C_OCORES tristate "OpenCores I2C Controller" + depends on HAS_IOPORT help If you say yes to this option, support will be included for the OpenCores I2C controller. For details see @@ -1397,6 +1398,7 @@ config I2C_ICY config I2C_MLXCPLD tristate "Mellanox I2C driver" depends on X86_64 || (ARM64 && ACPI) || COMPILE_TEST + depends on HAS_IOPORT help This exposes the Mellanox platform I2C busses to the linux I2C layer for X86 and ARM64/ACPI based systems. -- 2.40.1