Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1376356rdh; Mon, 25 Sep 2023 10:46:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IENjhhZx3cuAVWYx7AaquKQJ5Rh2+sRwaetxKvLcv6+9QYTv/gmiivIdjoMCMgL0aFskphQ X-Received: by 2002:a05:6a20:440d:b0:134:d4d3:f0a5 with SMTP id ce13-20020a056a20440d00b00134d4d3f0a5mr9687163pzb.2.1695663972030; Mon, 25 Sep 2023 10:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695663972; cv=none; d=google.com; s=arc-20160816; b=o6L59uJULg4/L3MX1d0oFFzkXR1H1VQaBnWsYmjUADXU7x0HHvlDC2YpCwsZjT1KJr TzksFwlvhuZwp6lZfxboaAruIxqnfn4hO2gWVeNl8E9gZ+vKOtprNZalwNwM8KnV26th aD75aw3Ed4tm33dmV4QMhfWsktAPh0kchq0u2Ga2RTVdzsynecq3Fh6pI1yh87A1PD/y MjY8HpQehk4s/hE4mgYzmjJ34QhOKsgVFNkpNSWLBJ4A3dfAdvG32MfC9RmNAEaaQNBg URM6EI17e/4Nwf/6H7HZ+12/4us0aCq0y4pcuIMG13MgoKEkntuhDrtYuqkEXAkqAeg8 WGfQ== 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=us8JRLFyt4MuiVWXXPyVfjRQFmj6YHaWS6GWwW/GJBA=; fh=XKEKoZH4tUVQJVaX7GgXutoGoVw64xu5Hsg2Fc1lZ0M=; b=kNxLvRRdIW39eaDvEvi3yBwyO5+dFP6PP83kz/sCnxIlItrJHn616JnQnAD4e8TnvK CdONdxQJkht1qivf7/KpE5Wa+CynhNfj6t/JLCLXm3bqgDsHCJnX26GFHAV2BC7rICis OQ+HzPayV77fPy+RiPDjJkNUMTjWSLXqk+N7iDweR2kyPctYTahZx5P5XqFeNr4Iq+Lu Gt49aR5rj0TKuFtqpT0U6C08+xI7Q7rfTYAqEXzDK19T6Wvn7rT2Gp26hSFC/BMJniYp LUIGnauHKdG6JjsQt7gYp96Hl9YHF1AgkkASMypyrm6HeW6v4tz420sRS4+/7MybbH1p dqrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=VyalqmU4; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="U9A5/dKr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f8-20020a056a001ac800b0068fd0b1bd61si11204210pfv.50.2023.09.25.10.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 10:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=VyalqmU4; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b="U9A5/dKr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 95F7F8085FA1; Mon, 25 Sep 2023 00:36:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232063AbjIYHgk (ORCPT + 99 others); Mon, 25 Sep 2023 03:36:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjIYHgg (ORCPT ); Mon, 25 Sep 2023 03:36:36 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7C36FE; Mon, 25 Sep 2023 00:36:28 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id A167F5C2631; Mon, 25 Sep 2023 03:36:25 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Mon, 25 Sep 2023 03:36:25 -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= 1695627385; x=1695713785; bh=us8JRLFyt4MuiVWXXPyVfjRQFmj6YHaWS6G WwW/GJBA=; b=VyalqmU4oJ1q8x2FSZ9V6nVOzI4TfHuoKi6+pr/976pN614EU6e xTm57+gLE7Ru167gtWu9FHHZk0szBYk4NME0hbrOo9EZg+RS1OSRsg48XVZ9/+IP Il9SyUCLifxObE8xLiJ4ovKzi6GIMJPv0M6wUbGeSKHwPriY58E/7hc9TjT1irhP 9we21kiWA2E08Aso7KpaDRpCAcZvRXLnac6sO6rUvOYmWEOlo1mmmm5SsTfkg5v5 /kxRoJ8lpWq7blSLXaCF1X7Mam+3BwFPz+Q68kbcXQCElNgc2K/bffMh/OHhr79G otPcMZciBIfhAexiMOmCvRR4wqBtPjrBz4A== 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= 1695627385; x=1695713785; bh=us8JRLFyt4MuiVWXXPyVfjRQFmj6YHaWS6G WwW/GJBA=; b=U9A5/dKrhcgtQXJ56TH4ndEhB/PzRfhq9wAUrYETErPYnHYwSUt Hmohh7GWdqhZ8SeP4aR/+iau9k8dUA3JwOdP5wdkHSW15PYQIe2wS9iJP8JOkjrf 20JuoY9xDh06opZ4og+PsRR303K4U+ebd4J/kr4k71zG79Up0f7LEXiJhPD+6d2m fYS97/9AWHAnGZ5dNPTtiXDsQw2SfXWdYltIxVe4EL01Z5WMqA9LXGrZUbn1Uvif Pm1enAjqXgx8fCNw/Nj+jGsmWXowjHBi21zPK//N/djHKH0X26XI23vKgIcdZSFe xJInAvKKjhbLqhLuVt8I/BOaXdTV5MS8Xog== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelfedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf tehrnhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrf grthhtvghrnhepgeefjeehvdelvdffieejieejiedvvdfhleeivdelveehjeelteegudek tdfgjeevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2DFDEB60089; Mon, 25 Sep 2023 03:36:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-761-gece9e40c48-fm-20230913.001-gece9e40c MIME-Version: 1.0 Message-Id: In-Reply-To: <87msxau3up.wl-ysato@users.sourceforge.jp> References: <20230802184849.1019466-1-arnd@kernel.org> <20230802184849.1019466-4-arnd@kernel.org> <5dad2d86-78ea-4a39-8ee1-98e3eb134d36@app.fastmail.com> <190041c8-2d99-4bc3-adc3-6fbe902c1265@app.fastmail.com> <87msxau3up.wl-ysato@users.sourceforge.jp> Date: Mon, 25 Sep 2023 09:36:03 +0200 From: "Arnd Bergmann" To: "Yoshinori Sato" , "Geert Uytterhoeven" Cc: "John Paul Adrian Glaubitz" , "Arnd Bergmann" , linux-sh@vger.kernel.org, "Rich Felker" , 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:36:38 -0700 (PDT) On Mon, Sep 25, 2023, at 09:08, Yoshinori Sato wrote: > On Thu, 21 Sep 2023 17:52:29 +0900, Geert Uytterhoeven wrote: >> On Thu, Sep 21, 2023 at 9:45=E2=80=AFAM John Paul Adrian Glaubitz wrote: >>=20 >> I think including Arnd's cleanups (that is, his v2) in v6.7 is fine. >> Sato-san's series needs more work, and is easy to fix for Arnd's clea= nup >> (just provide sh_io_port_base unconditionally). > > For devicetree support, we have been using GENERIC_IOMAP and GENERIC_P= CI_IOMAP. > This change has no effect, so it's okay to be merged first. Ok, thanks for confirming. I would still suggest that you try to avoid GENERIC_IOMAP altogether since sh has no custom inb/outb instructions and can just implement ioport_map() to return an __iomem token that can be passed into=20 readb/writeb, the same as the non-GENERIC_IOMAP version in sh does. Ideally you can however remove the iomap.c file and the asm-generic/iomap.h include and instead get the inline definitions from the defaults in include/asm-generic/io.h. Arnd