Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp82087lqp; Thu, 4 Apr 2024 07:38:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXcbykzpCNUMh3VdctItEapByuc5m2ZrndwINsdSvoHOLyS04saWRjRBu6lGren98fipxpaQNitr3L+lzmenXZkuyJ5IvYfWSpxcHEISA== X-Google-Smtp-Source: AGHT+IHmg2PT4zxkAQ9eyF1AE8QOUOGRqrF/QlRZ+x7ymxBRXsDahzJf/dZoOgfW/EzpoKALxixY X-Received: by 2002:a17:90a:bd8d:b0:2a2:6735:c426 with SMTP id z13-20020a17090abd8d00b002a26735c426mr3004573pjr.34.1712241535112; Thu, 04 Apr 2024 07:38:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712241535; cv=pass; d=google.com; s=arc-20160816; b=0SGPv+oS9HXbVaqMCr/aw3BxpYCtTwLTG+54L3Hf8ZMIxbuur8Y556zwQ6/JYAjBYd jxqd1Fpyi5JgcvPmaQZrN5XVDRtpbzy+EPVmAEILYHWVnHnXgFteoUxBWp9xwTDokIUx M5lwHL6BKG7NMYXL0C0H0GsiCzMsa47zi+/4gP26GsrwLYZaCmRu7l22EqqvHbO3eteS VKysSyXJiNeri52IyvrfKFWnXkk8mSb21xI2tv3Iqa1eCkA4xLwHSAX/4tdX1GMO0HA+ sOsct54DQJ2nxRuyciszZZlsz/vXNyIjBEFAYckw5iQkELbGxud+hkyVbV/5Cwq5104R rg/g== 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=WcyE0KBVPhTXQ9urqSa3btedWY7FAZxHWDh7OaDIYCM=; fh=H0EHeS5yW9NK6pyCYxCmFq+VM/63K2iu9Y85Sv19EvA=; b=I8eAtcoD+e3ki44rkTH3g9O5+NDvpXR9LA19Y/sV487mf3ejamcsIHz3VHzOwRCMUf xSUhsUt7vp9G2g0xS180E5cdgdQ86L9KdM6CCo04Ww6QVV/u6oAqYY20PZ6pROGu0Vip R/3mB9R9FnFFlaJQwewEtAEIaUJywUmBzmxbCU4sCjbgsIbZfdLD+2qMnFRKg6lI8wRD WCWSC+3WqeXno/Y/P6lqgYkeLAekYUedW4/Kgegz9gQxZ+iYVhb8fRl9C5/Zk1SfzbcK Zxcwb98CrarnO70Z3sDPKB0kunrZWOVXGKRe94a/zzH6VQTDwzOtIgPT/GUDpXnq+DfA B6Ag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="b/TXBJGw"; 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-131628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131628-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 l1-20020a17090a49c100b002a28b5ee082si1847635pjm.140.2024.04.04.07.38.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 07:38:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131628-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="b/TXBJGw"; 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-131628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131628-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 2109428A093 for ; Thu, 4 Apr 2024 14:34:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00F7E76044; Thu, 4 Apr 2024 14:34:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="b/TXBJGw" 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 5B846125B9; Thu, 4 Apr 2024 14:34:02 +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=1712241244; cv=none; b=BdJJ+aE+ikID2TIGc+nZfXY4oNZQZ8qpZxxNGr3it7VB5MaISc2E425yXb781d597NvE96X16qSgSheZ+zJOEh7fJpL/f6B5SxpOUnO+LkWKYWU2O39XrYdqXac5mYCIRXxJVdR17za0AUk48voHJC98je0SCzDGuX5rubN7WjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712241244; c=relaxed/simple; bh=hiBkXgaCKmEwKuYL3VAf4WjC++2fJLqbFzvSGPoAXSg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ij7u8U5aeIHz4069ki5Mj3FU08AF17l+xAIMMF18UVqoWQO9IoNhZorBcpRfeOjba2xyg3HGGu2X5a4duR8LHi9FZrP6Yvf0idC1vj37H3W/TjFYI66oPMhY8PLWjN/E1djHQNwRcVxH7fGIKD9m9m9BES6n9L5Le6vJ1UqIzHw= 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=b/TXBJGw; 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 (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 434ET3lr016039; Thu, 4 Apr 2024 14:33:59 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=WcyE0KBVPhTXQ9urqSa3btedWY7FAZxHWDh7OaDIYCM=; b=b/TXBJGwX3czbQqZ32kM/EJZlnJnZVnEJt5QZL42bw6JyHllkEY09ybPz8UEPF4wKsBI gPs68WtUFNFqoBUsnpXoBXmrY/iuHgt5H2eJgsfD1a/mrAraEZ8ACiS5moz2N3HAn0Fw 8Tab9sm9S6Uv0GNc7vfU4xyTh6DAF0bZ6Gwjd1nrN9Fogz2GSIuk/kjDYksIttvI+a83 ubQcQRW4KGgvL8hQLEsGeiO+S7ajxiUefXePuPmOHMQ2WP6z+3GJ+XSKdcp8mpHdkaZE JCwTwn2c1R+3e5oRr3XkyjBTceW8WcFnJ9qF5Q++MfMnMCNaOlcWf+uTo2zDxLgSvH+c gQ== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3x9x0kg0jn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Apr 2024 14:33:58 +0000 Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 434DcXEn031079; Thu, 4 Apr 2024 14:33:58 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 3x9epxmng4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Apr 2024 14:33:57 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 434EXqEb35193262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 4 Apr 2024 14:33:54 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 94D6120043; Thu, 4 Apr 2024 14:33:52 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 740462004E; Thu, 4 Apr 2024 14:33:52 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 4 Apr 2024 14:33:52 +0000 (GMT) From: Niklas Schnelle To: Andi Shyti Cc: linux-i2c@vger.kernel.org, Arnd Bergmann , Heiko Carstens , linux-kernel@vger.kernel.org, Niklas Schnelle Subject: [PATCH 1/1] i2c: add HAS_IOPORT dependencies Date: Thu, 4 Apr 2024 16:33:51 +0200 Message-Id: <20240404143351.3950179-2-schnelle@linux.ibm.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240404143351.3950179-1-schnelle@linux.ibm.com> References: <20240404143351.3950179-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-ORIG-GUID: HIqP7C5jGTpMN5CuKpoImrMft47utz0g X-Proofpoint-GUID: HIqP7C5jGTpMN5CuKpoImrMft47utz0g 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-04_10,2024-04-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 clxscore=1011 phishscore=0 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404040100 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. drivers/i2c/busses/Kconfig | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 97989c914260..6bbfc52bf55b 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 @@ -1289,6 +1290,7 @@ config I2C_CP2615 config I2C_PARPORT tristate "Parallel port adapter" depends on PARPORT + depends on HAS_IOPORT select I2C_ALGOBIT select I2C_SMBUS help @@ -1397,6 +1399,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