Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3472448rdb; Wed, 13 Sep 2023 13:07:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGM6cGghdipnXEZc7noMeIFID+zxMr43O7aLQujJ4WVhv5yC3uB0h66BTsnSqrB/m9BcxJR X-Received: by 2002:a17:90b:3e8c:b0:273:f10c:b6d2 with SMTP id rj12-20020a17090b3e8c00b00273f10cb6d2mr5393848pjb.18.1694635660107; Wed, 13 Sep 2023 13:07:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694635660; cv=none; d=google.com; s=arc-20160816; b=Q5Qy40Fd6RvV0E2LLZWFyfk0wrBnSF+4bTFU8sYseZSZQBrrQeVbVrwD4fq4pj/7Gj 1bBtbnsEs12Wg+9Q5ommjqKuhketcYQ289cSvRitz1t28f5Z6+LkJevm4ysvjsq3BWcn CcWTkkPhOOqmpZQkr/Q2DDtkBaVExx86S6zPWQ+gCVOQhmveWw9dbeYCzBwEQmzZoGTd DfBk/75Vzn6zME/rPGtxDU6PdBNfL73OGlOH3JH4zkROH6xYr5Lp0JSCf+YG4qEJHxYh VQ5UZLQetpygNhrnQMUUHXsWwvj1aJBjsm/4PrFBN+BIaWhjQvlYV+LF1VWrSNDUTUux 4S1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:cc:to:from :date:references:in-reply-to:message-id:mime-version:user-agent :feedback-id:dkim-signature:dkim-signature; bh=NhpcqPVyhTViuvq4Fg+wUDv1BlytxzozHxCRDkjhY08=; fh=EORDFvpZ5ZmVlIt7VCRUrU5czDS22jfkAmvu7DTL9Jc=; b=Csfe5rnIFMA9loaBUf/snbvqIst1XSOcpQgDEBukBZ5uLdxoIKTRoPOIZI+K6Ix+Ym xiI+mkqUbWoXRZxVQGzY1/h+bcFHsdzkx3nOzTEIb0ds+lBcwCnLLJPBO8yof6YHDtPN 7pBQe82YuW4cqNq18M2Y6zDQA6mnCP1Ssdycxq/4lciBulXxJXd7tbfHmWVnRY5FuEuj xXBxDWinzDo69MsS1BChLQmTnYumILgbxU/Hc0XV3K1KuhxqcAudidO6zemu6nmU0MgX zsL4qciG4PLF/CFoX4VhQIQhQJ6uX0gX0nEY8/zuMbya6Gmt844hMWwW04uOOgiPkQvI cm9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=NMsb9PyQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BGRvU8t5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id s8-20020a17090a764800b002532c9b252asi38797pjl.73.2023.09.13.13.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 13:07:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=NMsb9PyQ; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=BGRvU8t5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2A4F8801B182; Wed, 13 Sep 2023 07:30:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240598AbjIMOap (ORCPT + 99 others); Wed, 13 Sep 2023 10:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239984AbjIMOao (ORCPT ); Wed, 13 Sep 2023 10:30:44 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C2F192; Wed, 13 Sep 2023 07:30:40 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 988875C026F; Wed, 13 Sep 2023 10:30:39 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 13 Sep 2023 10:30:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1694615439; x=1694701839; bh=NhpcqPVyhTViuvq4Fg+wUDv1BlytxzozHxC RDkjhY08=; b=NMsb9PyQSsPsibltS40zPbm9eXfEAuMjBuyQzLTEp38luBZ+vgg APRVixaifeUESQaGxQ2YgjN1uSTZwwMboTcL/M6RbB72P8/6piflNIzlu+6LoJ/r MjdA7DYThkvYxfsY4hK+uU9qPfse0BydHC5YsrXC1LQcW1J44rfciTf1ivFKcMnF TMHboi6fpE821jV5JCLPJvIbrHMghFtlEY4D6DMSAXpmNneqWKUj7sE8zQfIS2/U 81x9EOo78otROCCyL8U3D0AUWy9mF8DSiSvkuwmW4rYTScMMFrs56qAmLatxSk4a VnMnfyIKbf8XkpqgGZFCHMT6WQOG4BgOO3w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1694615439; x=1694701839; bh=NhpcqPVyhTViuvq4Fg+wUDv1BlytxzozHxC RDkjhY08=; b=BGRvU8t5MYedFXtupTsPGt70fle0arCFF6mWvkdpnUaHrvXMXRg OZi7b2hWaNFaJExZ1wIGRv/zM4f7myrDv7tQ3Xk2mfS/F2MaPMqicSPgrVr6Xb8+ 5OY1cVXKuu6GhQzh5AMCUmRC5p2VJdN1iDgDzY7osyMGpuzOSqsQn578P5XW3r7O 3s35dWsFrCmzJyeYcNnuuxlJZd/d2mROYiFJgciF1r5UqFWbEvQxE6oV3D1TnO0M ar0qpg2neZIXYtn7VsLadBYHBiMHlw74rSuuwn2jqMy/uFD0/w3SdotQfl1GOnm8 o2Q3XlCXXd70h/EJ5pfVX4cE9L/RaxzldUg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeikedgjeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpefgkeeuleegieeghfduudeltdekfeffjeeuleehleefudettddtgfevueef feeigeenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id C94FEB60089; Wed, 13 Sep 2023 10:30:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-745-g95dd7bea33-fm-20230905.001-g95dd7bea Mime-Version: 1.0 Message-Id: <190041c8-2d99-4bc3-adc3-6fbe902c1265@app.fastmail.com> In-Reply-To: References: <20230802184849.1019466-1-arnd@kernel.org> <20230802184849.1019466-4-arnd@kernel.org> <5dad2d86-78ea-4a39-8ee1-98e3eb134d36@app.fastmail.com> Date: Wed, 13 Sep 2023 16:30:18 +0200 From: "Arnd Bergmann" To: "Geert Uytterhoeven" Cc: "Arnd Bergmann" , "John Paul Adrian Glaubitz" , linux-sh@vger.kernel.org, "Rich Felker" , "Yoshinori Sato" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4] sh: machvec: remove custom ioport_{un,}map() Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:30:48 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email On Wed, Sep 13, 2023, at 16:13, Geert Uytterhoeven wrote: > On Wed, Sep 13, 2023 at 4:08=E2=80=AFPM Arnd Bergmann = wrote: >> On Wed, Sep 13, 2023, at 14:32, Geert Uytterhoeven wrote: >> > On Wed, Aug 2, 2023 at 8:49=E2=80=AFPM Arnd Bergmann wrote: >> >> Do you have a link to that series? I don't understand why you'd >> want to enable GENERIC_IOMAP on sh, given that its PIO accesses >> are always memory mapped in the end. > > "[RESEND RFC PATCH 00/12] DeviceTree support for SH7751 based boards." > https://lore.kernel.org/linux-sh/cover.1693444193.git.ysato@users.sour= ceforge.jp/ Ok, thanks. > In the meantime, there is a v2, which I wasn't aware of when I wrote > my previous email, so perhaps my comment is no longer valid. > "[RFC PATCH v2 00/30] Device Tree support for SH7751 based board" > https://lore.kernel.org/linux-sh/cover.1694596125.git.ysato@users.sour= ceforge.jp Right, it looks like the GENERIC_IOMAP part if gone from that series, and I also see that the PCI host bridge does not actually map the port I/O window. That's usually fine because very few drivers actually need it, and it also means that there should be no need for GENERIC_IOMAP or the simpler alternative. The first version probably only did it accidentally, which is a common mistake, and I think the ones for hexagon, m68k, and mips can probably be removed as well with some simplifiations. x86 and ia64 want GENERIC_IOMAP because they require using custom instructions for accessing IORESOURCE_IO registers, but it's not really generic. Arnd