Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1222999lqe; Mon, 8 Apr 2024 02:30:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6Vm+W40OiwHat0fVxa0SVBaK0yWMqJUQjirF8XapR6YHsWxadvGhy+0/zKWHXFRHnac+15i1AiT9J1k8SVbY1bWJIgSpmhWF4NESt1A== X-Google-Smtp-Source: AGHT+IEh5OLZXn1x7BgDps9RoLIoz1j3jqIVtXgqf6wZVeJ/hfOgg4ss5FWIF/JRgOdDBoX8OVLZ X-Received: by 2002:a50:8709:0:b0:56e:2a05:a0e3 with SMTP id i9-20020a508709000000b0056e2a05a0e3mr6878680edb.21.1712568641407; Mon, 08 Apr 2024 02:30:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712568641; cv=pass; d=google.com; s=arc-20160816; b=qebt2HKaCXoPwYdPfZDP24YTTMqNLFT7f6YF0HBsiundfiBvWEVhHv8C4O2diOnmG2 PH4bfNaAxV5X+aDQAlkt1o7BGzwsVhSjQDKZQPvGdpESose/nFO7A8m5ySEG7tTOPAx0 WjNEKqQOpT5HrxqbjK+MkD2GLO+Z026n41mhSCHKfG8c5hFyC89Jo2IZKIY4bHolxCKN ONTOCV+JccAbV9SWzu/cAiZKKM5hC+KMZ8ZPoSCwrPEh3b+zs2ivk14Wqm29Wql3uGvm QjiIUO3/+Kwusmx37u2RdcXWFPoELsBOCUbiZXqaH9UynQNmpRR1CzHm1bj7WfJ85hOq ETfw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:user-agent:feedback-id:dkim-signature; bh=fEIe2GPUwKxyAjYUzP4iDEt3NBix0j4ZlTzg8YDG+Tw=; fh=ljvgPx1m8k9N8kxCDEXMn4P7FzXWe1uoP+rZqc6e+Cg=; b=lUTuzZ5w0Qnmy6dZuraEPL32WyqzfX4pVtM/171qDt1XSwxslOGdm+PHbf7ivq9W8K vlB363YfbLmUZTa0FudOmD5rECPuhCImg/lH+mlLf3QvfSyPgZy4b75zIQiazk01ebSC 5FkktPu7p9wBRwCwtGJzMbHQjT2p2sfvcl468ulVU7nQ9FytokfobRjv8ebKy2R1oxlJ 79EKaHvBHIEAltbvUEuONMmvbyN30lz5drq/Fr1F8E+sc7R/Q25f2v2J7tCrURejE/D6 tlYEdfUp+CJ+3bVmmIdFzx0RYTPFpopEsKYB4YNmewAVjFcRQTqnMyM9UDGmHYUWqUEU PNeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="L/txA6WV"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id go41-20020a1709070da900b00a51d9d7bc2fsi597862ejc.66.2024.04.08.02.30.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:30:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="L/txA6WV"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135146-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135146-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 25D3F1F22137 for ; Mon, 8 Apr 2024 09:30:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70869481AE; Mon, 8 Apr 2024 09:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L/txA6WV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8ED7247A7D for ; Mon, 8 Apr 2024 09:30:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712568631; cv=none; b=fvbSh5W20mQpPbX83dgLLy6F1Wl71dq2k/QPiZXe4UyHpl162tHmjuEeJ8/MtR1WV0lu8yOreg/XyPcgOwE1DGiJLB1xlrjQpAFm6YGt4VXzlEIunT3uyQc/d/kUoHHvUlFpwzMZwwCphDtydbiQrBizEShtGckab1H+1ZAvaOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712568631; c=relaxed/simple; bh=P24/uUI2t35l6v8xeXfYYCdNlO4Ii4Tbd8HftEwsUDg=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=aq+qOMQKA+rlg65fiCaFABeWn/WqrfLwHQ3l9lbadt+vg+5BWP9Ww69L/U92SeaEz5bmX5KY+2h9hLElVhIHKz6RsZeHRMI3fS3vuu1uM5+mkiRtvNKYSevE3A+LY9UuJ1bxhCR3kesZDTB3cuC+E+VE77jr7ccVcEjm1xkRR/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L/txA6WV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCD63C433C7; Mon, 8 Apr 2024 09:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712568631; bh=P24/uUI2t35l6v8xeXfYYCdNlO4Ii4Tbd8HftEwsUDg=; h=In-Reply-To:References:Date:From:To:Cc:Subject:From; b=L/txA6WV2oR1st+A6SOgulGDXdlkDRJ+BGIUI8WTHs1g2i1ft9EL8eHy2SXFRIxON VLXya/nGnwoua7A3cv3+i/OfuUS0cOgAKPV17Q2PV6eBKF7C3xBdJ2Uovm+NutDVm0 1efoSn2aVUZiBB6OXKZ/HXdyMqBhRSW7jnmSiR8eJzPL0I1fQ2eF0Wtz9jRljBB73s fHP9goqFBc4bmpfVMRcXR5tsLOhd2l/jFRYvVenjKv0rnCaw2gpPPJpo1nuhjTV+39 /CklYJcMg43pQ4M6etFgHwr2oyw1jynscKdzUY3oR58BJ/vwh4Hj0QnRGhKRmG+/Lb b78abvCnhjBTA== Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfauth.nyi.internal (Postfix) with ESMTP id D48491200066; Mon, 8 Apr 2024 05:30:29 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Mon, 08 Apr 2024 05:30:29 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegiedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugeskhgvrhhnvghlrdhorhhgqeenucggtf frrghtthgvrhhnpedvtddtffejfeeggefgleefgfeghfehfeefffetgffgleegudevveet hfefjeevkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrrhhnugdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidquddvkeehudej tddvgedqvdekjedttddvieegqdgrrhhnugeppehkvghrnhgvlhdrohhrghesrghrnhgusg druggv X-ME-Proxy: Feedback-ID: i36794607:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 87932B6008D; Mon, 8 Apr 2024 05:30:29 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-368-gc733b1d8df-fm-20240402.001-gc733b1d8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <01fe2d77-4539-4695-9001-21a9a131760b@app.fastmail.com> In-Reply-To: References: <20240405101009.2807447-1-schnelle@linux.ibm.com> <20240405101009.2807447-2-schnelle@linux.ibm.com> Date: Mon, 08 Apr 2024 11:30:08 +0200 From: "Arnd Bergmann" To: "Geert Uytterhoeven" , "Niklas Schnelle" Cc: "Andi Shyti" , "Wolfram Sang" , linux-i2c@vger.kernel.org, "Heiko Carstens" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/1] i2c: add HAS_IOPORT dependencies Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Apr 8, 2024, at 10:50, Geert Uytterhoeven wrote: > Hi Niklas, > > On Fri, Apr 5, 2024 at 12:10=E2=80=AFPM Niklas Schnelle wrote: >> In a future patch HAS_IOPORT=3Dn will disable inb()/outb() and friend= s 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 chan= ges >> and may be merged via subsystem specific trees at your earliest >> convenience. >> >> v1 - v2: >> - Removed HAS_IOPORT dependency for I2C_PARPORT > > Thanks for your patch, which is now commit 53f44c1005ba6421 ("i2c: add > HAS_IOPORT dependencies") in i2c-host/i2c/i2c-host (next-20240408). > >> --- a/drivers/i2c/busses/Kconfig >> +++ b/drivers/i2c/busses/Kconfig >> @@ -885,6 +885,7 @@ config I2C_NPCM >> >> config I2C_OCORES >> tristate "OpenCores I2C Controller" >> + depends on HAS_IOPORT > > This restricts the driver to platforms that select HAS_IOPORT, while > the driver supports both MMIO and IOPORT. > > At least for > arch/xtensa/configs/audio_kc705_defconfig:CONFIG_I2C_OCORES=3Dy > the HAS_IOPORT dependency does not seem to be met. > > I think the IOPORT part in i2c-ocores.c should be protected by > "#ifdef HAS_IOPORT" first, so the driver can still be built on platfor= ms > that do not support IOPORT. Good catch! I sent a fixup for this driver now. Arnd