Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1887808lqe; Tue, 9 Apr 2024 03:38:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUAwQT+SIdUuSngDuBqQA2spT3NjRo9aEwjFtHuJhuXinBmxxYbInHON/doWHoxDQEGK2Mh2P/HUhtaHPmNgpO+SUl/Tnv0Orl9fVqNSg== X-Google-Smtp-Source: AGHT+IHJWFFQO2UqmnB3xhVaayJKgrR9XmTXSrSyBJY0FGVjAapQPQs/RrnMkYcIuxlSIl0qZmz1 X-Received: by 2002:a17:907:31c9:b0:a51:dd50:6a with SMTP id xf9-20020a17090731c900b00a51dd50006amr3910736ejb.66.1712659110878; Tue, 09 Apr 2024 03:38:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712659110; cv=pass; d=google.com; s=arc-20160816; b=aearzIRmKFJWmqSzorz3VgwkQjF7Ba8XWpXD+B278ikT1UCsHEwTV3s9y235yoQonB v10Z28HJ7rlMA0dcC1beyis4898ynB0l7TJbRdXEp62iXJhx2hu/E81/NOS72sOy3ANw xO3pzMmQNinUfi6OUFnzvvwgxMiGfUW89AVsT9x0KvjudwKRf4sKT09los90WZl5+W5x b8UoX9k1+lDBMYFtjFMZ5Ntcqk7jGckcZWk5/UrQ4VftKyNoYkqYAvGz9FtNklUIFakh +LRza2WCbyfGuHnGZ4VU467EXQGTWSeT7xAMXovfCwfuiaOCfAB5yx2ku3b2jhbkyJbi DmUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=3MeIa8KL5MlWCUG4uY3dZqToF2euGQAK2QMuY/LcZ3E=; fh=/jhuYZR0bFUb7fYj9BFw9nIheASsBHVLdWfZnM9sOzs=; b=ox6Nj+CYRRY17VMjeoCGB2XSZRyL2Rzw6Akv/r/Tf5rVkrXafdZpj79ZjffqK44Tqq gQkNoWRaWBTgs3X1Z0pwZd4VMIybmQ91QztTChyYXvLi8sAvVPIP4dMyQ6XNFwFqAqaj s+VAniyIfB2groftl1Cm5mVrjsMRwjzRGhmIcUz0nUcKZha2zbOYQi09s9DMkxYV5qpm IFi/aj0sA0N8jtp2RJ+rvt0sIpJb6PGTQ0CR335ICkuQIjnUsHP5YYmaEs29VekFTIDg jZ9d6zj5/Oe2SEm7nevGrdZFeQuTFaN//dlm93o8CeARXZtgzM6o+D0cuTXJtX8HkKsG jROQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=korsgaard.com); spf=pass (google.com: domain of linux-kernel+bounces-136686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136686-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id jg30-20020a170907971e00b00a47534ae659si4844144ejc.922.2024.04.09.03.38.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:38:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=korsgaard.com); spf=pass (google.com: domain of linux-kernel+bounces-136686-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136686-linux.lists.archive=gmail.com@vger.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 A45721F23C39 for ; Tue, 9 Apr 2024 10:38:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08319823A8; Tue, 9 Apr 2024 10:38:20 +0000 (UTC) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 26B7855E55; Tue, 9 Apr 2024 10:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712659099; cv=none; b=tPuO4BQHk0hbrh6YyVyGsp5yxLSLZVgoP6gkzp0zvoyBFUTcwlgog5cvyBgbYNFF+PRg30pl8h6WPSlqOWz1MLU7u5iGuRNXpc0OhcoOCmeQKJMcLuUPgW5KlRTkPDCuIFr/Lt8s2cnXkCAVJZ9Vil+BzIS7+nKkZn9GMjztkHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712659099; c=relaxed/simple; bh=eubZmHmwoUSkTmhPCXYJou0AiLJ/nfzFiHg2vPPxelc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=AqWBuSFRBZj9/Ud0ItT2LAIgDahOAq7i+NyoxWgDiG++RvJpn3PBopHPHNCJsbGo9YMZC0Lse6pcq0pB660PCQCb2iX/vuno80KByNyRPFcZeBKq8zLxZ7bVX6QsWxpekiVJOFRAipqh1hLA3Fss6nyajXj6z9Rhn1eGxLjasSc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=korsgaard.com; spf=pass smtp.mailfrom=korsgaard.com; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=korsgaard.com Received: by mail.gandi.net (Postfix) with ESMTPSA id A3D854000D; Tue, 9 Apr 2024 10:38:12 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.96) (envelope-from ) id 1ru8rj-00EZ2E-0H; Tue, 09 Apr 2024 12:38:11 +0200 From: Peter Korsgaard To: Arnd Bergmann Cc: Andi Shyti , Andrew Lunn , Arnd Bergmann , Geert Uytterhoeven , Wolfram Sang , Jarkko Nikula , Geert Uytterhoeven , Niklas Schnelle , Samuel Holland , Gregor Herburger , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: ocores: convert to ioport_map() for IORESOURCE_IO References: <20240408092923.2816928-1-arnd@kernel.org> Date: Tue, 09 Apr 2024 12:38:11 +0200 In-Reply-To: <20240408092923.2816928-1-arnd@kernel.org> (Arnd Bergmann's message of "Mon, 8 Apr 2024 11:28:36 +0200") Message-ID: <87zfu2om7g.fsf@48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: peter@korsgaard.com >>>>> "Arnd" == Arnd Bergmann writes: > From: Arnd Bergmann > There is at least one machine that uses this driver but does not > have support for inb()/outb() instructions. > Convert this to using ioport_map() so it can build on architectures > that don't provide these but work correctly on machines that require > using port I/O. > Fixes: 53f44c1005ba ("i2c: add HAS_IOPORT dependencies") > Reported-by: Geert Uytterhoeven > Link: > https://lore.kernel.org/lkml/CAMuHMdVUQ2WgtpYPYfO2T=itMmZ7w=geREqDtsP8Q3ODh9rxdw@mail.gmail.com/ > Signed-off-by: Arnd Bergmann Acked-by: Peter Korsgaard -- Bye, Peter Korsgaard