Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3636741rdb; Wed, 13 Sep 2023 19:48:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJjfDObJiwJt92f/6/N+kLivvNsNhs6TFsiMgPmcHm4a2sfs4DM4vDWy5fHgy0ODNxcFXw X-Received: by 2002:a17:90a:7486:b0:263:f36e:d610 with SMTP id p6-20020a17090a748600b00263f36ed610mr3748231pjk.0.1694659703589; Wed, 13 Sep 2023 19:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694659703; cv=none; d=google.com; s=arc-20160816; b=pM8eOb4oXQQIxCIfnDzyMO41R7LQNejAFUDj4GPdTI4srITX7SJkzJJihzImDIYCxt owxNj7WXZfQuSuulkzFD+PnZI6qNyTxA+fSoqlB5Qiz0qAp/rAnDCZp2ENGxRXKp0Bk0 FFY1CI59C2Eewsct9xlUhrDSDzkkPq3DgXS/JAeXPgAmRT2qKU1Y17U8epGPb5im524e 8AIIelhQiWfrv4TZcOLdGueyUYjyxTVk0a2W7V6i7pDFcvBmbdtqs4BLLlEcs39hCWxy gPcSlGDPghM0xQ4MVR8FgZbIcVolKnpjujIu68lUFp2x8Ks1myE1z8ggxYck9KnBPCsW mb9A== 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=zfvZBncMMU2YSvF8BUaOv/NK0XFFKo70iWyd6Cf7xKA=; fh=lTV1xpYNJyhY8OvwizSdTFsnt2TyZqW3A/yYQdPFtiw=; b=FSRLsIffr1m1nFKNDPEiumE9YHZtYG3QsAszX+GffI7+GqS3zWnqLqhlRwOAtl/Am2 AcPRemig4CeoFVlGj9iehPyAI72jiQsUbifGG5gUo2HRMV8DGyENtJereQtXQtRNaiXT ibw++S/6QHa36NyU0xpjVzB7m1xIxwUI9dlfpSyl1aK/OudXHrCCsvJWgFNIh9v+S1NW es0LdIU6Jwf/0QzvtQZYHOz1X5os1OVitHLIS92xnxrK2VOwPoqa5SCfeZZTsC5SPi/O a1n/Ged37ssnNm2byZW2fzE3/OphX7GoJHspNyeKRm20gMb5uHP0kpkTK0TnZBGetzsq Y8WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=mIsTU+Va; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=CDD267g2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id gj17-20020a17090b109100b002741a4172a2si2839677pjb.84.2023.09.13.19.48.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 19:48:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=mIsTU+Va; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=CDD267g2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 2ED11805F0B8; Wed, 13 Sep 2023 07:08:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241227AbjIMOIw (ORCPT + 99 others); Wed, 13 Sep 2023 10:08:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231767AbjIMOIv (ORCPT ); Wed, 13 Sep 2023 10:08:51 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5F1D19B1; Wed, 13 Sep 2023 07:08:47 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 027BB5C01DF; Wed, 13 Sep 2023 10:08:45 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 13 Sep 2023 10:08:45 -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= 1694614124; x=1694700524; bh=zfvZBncMMU2YSvF8BUaOv/NK0XFFKo70iWy d6Cf7xKA=; b=mIsTU+Vay1BOgsSssEi9pxqX8d5xjC2FAs0wEWGO6ZUo2g7XGQ2 tdveal2n+J7T+8kCLJa/w1DI6ggOWzeBtSHYCTw9BPHWy+oebP7+E7QhiFwrni3K oQUJjYaY7LZuftI86fVOooWFakp5Oa9wfA/FTfpNqZC/wrJI6Wd0PadD/lzwNfgz hVTsPrdiErVsIUtA5fVNRxU/NN+UrFnP1LyaI44V01KCgdJltDegaEgzmIY4urVx Gd8mHwiCSnXBV4v5ZWq+KLSZ6/nitS+h2OsrwXNpRz7Pl856YVBBObJhwJGGO4o0 cxeWXfhV+ypMsBQoflNrghozpNlRZeCNqCA== 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= 1694614124; x=1694700524; bh=zfvZBncMMU2YSvF8BUaOv/NK0XFFKo70iWy d6Cf7xKA=; b=CDD267g20qfHMUwkKynraI/D+GMQKjjYBbBkySm+B0gaYPgN31R c1wsnopuAmZw4zrVA+C1eHCxSCBaJP3Q6BWuDUHd1u4oj5C7+7+4aKWDEiSTySol poy5SA/ijkT7TKjLMqcilvyQRbgDWPoi0zkQwYpWKNfMRcHoiT1qeJKvFhf8tXjT CUGKuhS7rKEFVVuvO0corSteXY8xRsnb3xppaOVUZfssuZWD9Z1UzKsOpzKqzOU6 9uKK6vqGZPNPPpDVhs2dEGvjilJEsbE3ynIrJmBFFEQQC2EbXDFjhwYgyUQ9vl6G bgwEqbo7kCsHCPkcmF/52Zm7ZY5pC9yy4Og== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudeikedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeegfeejhedvledvffeijeeijeeivddvhfeliedvleevheejleetgedukedt gfejveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 48B49B60089; Wed, 13 Sep 2023 10:08:44 -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: <5dad2d86-78ea-4a39-8ee1-98e3eb134d36@app.fastmail.com> In-Reply-To: References: <20230802184849.1019466-1-arnd@kernel.org> <20230802184849.1019466-4-arnd@kernel.org> Date: Wed, 13 Sep 2023 16:08:23 +0200 From: "Arnd Bergmann" To: "Geert Uytterhoeven" , "Arnd Bergmann" Cc: "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 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 07:08:53 -0700 (PDT) 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: >> From: Arnd Bergmann >> >> These functions were only used on the microdev >> board that is now gone, so remove them to simplify >> the ioport handling. >> >> This could be further simplified to use the generic >> I/O port accessors now. >> >> Signed-off-by: Arnd Bergmann > >> --- a/arch/sh/include/asm/io.h >> +++ b/arch/sh/include/asm/io.h >> @@ -181,7 +181,7 @@ static inline void pfx##out##bwlq##p(type val, un= signed long port) \ >> { = \ >> volatile type *__addr; = \ >> = \ >> - __addr =3D __ioport_map(port, sizeof(type)); = \ >> + __addr =3D (void __iomem *)sh_io_port_base + port; = \ > > Note that this adds unconditional users of sh_io_port_base, while > sh_io_port_base is provided by arch/sh/kernel/ioport.c, which is > currently only built if CONFIG_GENERIC_IOMAP=3Dn. > > This is not a problem yet, as the final part to enable GENERIC_IOMAP > on SH never made it upstream. However, Sato-san's series enables > GENERIC_IOMAP for SH_DEVICE_TREE=3Dy builds, leading to a link failure. 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. Is this needed for the trapped_io CF stuff? Arnd