From patchwork Wed Mar 1 10:22:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 13155803 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E74EC64ED6 for ; Wed, 1 Mar 2023 10:22:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D45A46B0071; Wed, 1 Mar 2023 05:22:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CCDBC6B0072; Wed, 1 Mar 2023 05:22:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B6F486B0073; Wed, 1 Mar 2023 05:22:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A3AC16B0071 for ; Wed, 1 Mar 2023 05:22:21 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 6D8DC1615A6 for ; Wed, 1 Mar 2023 10:22:21 +0000 (UTC) X-FDA: 80519939682.12.C87E590 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf03.hostedemail.com (Postfix) with ESMTP id C8C1320011 for ; Wed, 1 Mar 2023 10:22:19 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=HoRo+6Ez; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf03.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1677666139; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=MMRQRl3t6hAKjtY5VRuUkJZdfgn6RD+/9pcPLSeWAJw=; b=4FZLlZFw1hpwf16PQWlwtLQXGRf79Dy1bby+qJPRChHEV264tuzMrJuZLZ9c90015vKLwq bEIrIZ8b9DXSOsmoBuJT67JCjubqJ5YzP28e7L3hqRfphQLqCUkJKObPkDf5+osCU+hU6m ETPl0u2puMxWAyxrRO2x5AlLDIsBYEk= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=HoRo+6Ez; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf03.hostedemail.com: domain of bhe@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=bhe@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677666139; a=rsa-sha256; cv=none; b=JYvpMP4GZNASGuNVlGlcVq1BjisfgsegBu2TA/Mv4kFYHl/+/GCOdKAB85ZZfByrP2IIfD hCUNLbG6ouBC73Ss+sgm1LSk+Wxi+qMk6XEB7C7YW1YPx41lsVWkEEM9Z/dJoYJUCq4cQ1 u4GHYPb6L/CWjXcMeYnHz6Qbr26XCfg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1677666139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=MMRQRl3t6hAKjtY5VRuUkJZdfgn6RD+/9pcPLSeWAJw=; b=HoRo+6EzGujNBLtHNB5WLIOVf0pjPzE9TPsBW8HJPIMmOb6EuszSeCo2aFniqVXvssifYA mgYNO4PoByWDjPPqOvWj1SnsRsT/HNXP73pgK/gzKDox16v4ZLKv8EihQAUhZ8WYjsQHmk DYahyqY4CrtRtb/BS7BXnSw+MzaOCjA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-151--ajzeegeMgyallSEeClPog-1; Wed, 01 Mar 2023 05:22:15 -0500 X-MC-Unique: -ajzeegeMgyallSEeClPog-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 58311882820; Wed, 1 Mar 2023 10:22:15 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-13-180.pek2.redhat.com [10.72.13.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id ED85D492C14; Wed, 1 Mar 2023 10:22:11 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, linux-mm@kvack.org, arnd@arndb.de, geert@linux-m68k.org, hch@infradead.org, mcgrof@kernel.org, Baoquan He Subject: [PATCH v2 0/2] arch/*/io.h: remove ioremap_uc in some architectures Date: Wed, 1 Mar 2023 18:22:06 +0800 Message-Id: <20230301102208.148490-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: C8C1320011 X-Stat-Signature: rr69xdhzgpzq38p5sb98pwca63fzk95i X-HE-Tag: 1677666139-812153 X-HE-Meta: U2FsdGVkX18/oXqkxo7TbjQbbEUr9/nhTYtrYMz4pl4dHsQ48mEuA36tOuFZLg4hZDHbSkbGLCxOJj6euxRVUHp2kGgvA5AFGEJpkGl/rW9kA0ZFKU07khRQnNcL6C+//jN/8etQO8Xysl1xZ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amicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This patchset tries to remove ioremap_uc() in the current architectures except of x86 and ia64. They will use the default ioremap_uc definition in which returns NULL. If any arch sees a breakage caused by the default ioremap_uc(), it can provide a sepcific one for its own usage. v1->v2: - Update log of patch 2, and document related to ioremap_uc() according to Geert's comment. - Add Geert's Acked-by. Baoquan He (2): mips: add including arch/*/io.h: remove ioremap_uc in some architectures Documentation/driver-api/device-io.rst | 11 ++++-- arch/alpha/include/asm/io.h | 1 - arch/hexagon/include/asm/io.h | 3 -- arch/m68k/include/asm/kmap.h | 1 - arch/mips/include/asm/io.h | 47 +++++++++++++++++++++++++- arch/mips/include/asm/mmiowb.h | 2 -- arch/parisc/include/asm/io.h | 2 -- arch/powerpc/include/asm/io.h | 1 - arch/sh/include/asm/io.h | 2 -- arch/sparc/include/asm/io_64.h | 1 - 10 files changed, 55 insertions(+), 16 deletions(-) Reviewed-by: Luis Chamberlain