Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp566965imm; Mon, 9 Jul 2018 06:57:44 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfmOXH427toOG1MdyjtNhirOCxn9DSCJDtGGSuA/90JDliOPyGHwZP2UlYGW3CzvHEQDS2U X-Received: by 2002:a17:902:184:: with SMTP id b4-v6mr6389084plb.340.1531144664434; Mon, 09 Jul 2018 06:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531144664; cv=none; d=google.com; s=arc-20160816; b=S3m83nf9XnNy01bzePL/prFhYbjWVXQgfg858OhygLae8avakZUZvpfEOKH32pXBZD 8V4rrSrl1HilMXUSepwxG1pdgIDq085DHRkDWtZzlIIQ1a+GUvoq86ZrCZIhlASCFf9B 6Fr9t6utkZJdCGdtkVMyS9HaTam3jjg/9u0QqwQaeWSYdl2bRsrwqk5RNp4YVs2hNTGA X6EpgKWH/X+wBYXvqwSzTJ2o+scUcMsDybDk9VRSatvuOIw2eqd3Q8oAscHtVSim5Mh9 kKaAZPV+I43uIDoeqaipYS4iOxZ2W5PyNwzEBz8/IIJh8Aa+VD2QHYpMNl2oYyHrNq0I QlVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Lz9n33k6zDjpf5y3OZAwtxvxwQxZJ33mT7WTAFWVG+w=; b=tHOpdJMVuYhgjQyaDqQ4tgiqgExRlWLVMMx7hupxhdgLFvQacEcZJAAeVoS6f0wFhn cWKOyiMJWe1Da9TqCn2ooJQ5IvFdMvjgnEPHsPo6yEbs9IDJ2BkIT3K5pXJ6Cab7RLcc rxJwNc7jHkAk95MT3ZmqDSxQxaxhhKhMhUONlAqKQvrdXd9TKoa7MXMOYZhL8S4TBo6z PmAiFW6F8EK2r9BzQHFlvrPkrB+kuWzOlcthiEf5TNpwCAwz1vEdroNtIqGZrUO8INfd VBEYyNfZr2/h1oWKLLiUF+Fcc2czlji6hMTkEwzjGWNufz7o2CycsWj7sjF5i72nXGsT fCMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WtgzlADw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 4-v6si14673328plc.436.2018.07.09.06.57.29; Mon, 09 Jul 2018 06:57:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WtgzlADw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754578AbeGIN4t (ORCPT + 99 others); Mon, 9 Jul 2018 09:56:49 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:35637 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754492AbeGIN4o (ORCPT ); Mon, 9 Jul 2018 09:56:44 -0400 Received: by mail-lj1-f193.google.com with SMTP id p10-v6so8757262ljg.2; Mon, 09 Jul 2018 06:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Lz9n33k6zDjpf5y3OZAwtxvxwQxZJ33mT7WTAFWVG+w=; b=WtgzlADw9ZDPfND1dVhKV1NHGmzErrduPLYcPqnqN5hqxKrb4av7X33RbUwC+92T22 pr/29Hg9fvVzkKD8Om7EdihtR8ifvsxYDd7BDShhhHBJ/MFSL6mJTqthtWVviDZ0h/Kt 5oy/V5j7R3DuwV53PaRoXcpjopSiYyMBqoWmvmOved7XSFoAJ0XnBOyvlKtSV6A51nX2 29s12SEDgec3Bji2Tw8d6m1USiH4QFElniHY2EeySkuMZYw1XiTceB7OKKGHs7AobdCW XNoy+zh9VmWoQgLaP0yeIm8XrRNaYg9Ep0Nsrp2JjI146fY8zW+ZYO9zv1HRhqkOWr7Y dlhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Lz9n33k6zDjpf5y3OZAwtxvxwQxZJ33mT7WTAFWVG+w=; b=CtB+5Jc/rm+lzUkjBcZsqX53zSHvVpyuZ88PrFx29YU9J4kD8rorzCpaoOh+ZM6J0L znsTy1EVDDP6gRN5saTw39nBGtnkC+YoLSCTKzGv1f/64kpSxTpWgmUHWkIOGyBnywtw BswBBJTEJ7rZm7CbDnqe/EQJ9h5PjzNxvKAqJxm9a2JiFOrib67QIRkf5VwcXj5qWKJa AFtwdC15oQCKYRH+E7YQP2XmiNrQP/o1dT0p5sw/1/HY7ODOuFi/6+u6yw78iwi4Thvb E4tIRMfi7kjO7VJmOvC38j7QLlifHuHlqXSq3nHOBZK8+Q959LtJ+vqXA3er/DlCcx2B Xvqw== X-Gm-Message-State: APt69E2g87u0yhK1wUhQdsi/EDG1emxBEU2kNABKnRMvnJ3Uga+4hHXJ bRHootT/bRHNXoapQ0GpwLw= X-Received: by 2002:a2e:8743:: with SMTP id q3-v6mr5205532ljj.139.1531144603232; Mon, 09 Jul 2018 06:56:43 -0700 (PDT) Received: from linux.local ([5.166.218.73]) by smtp.gmail.com with ESMTPSA id g12-v6sm4076662lfe.1.2018.07.09.06.56.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Jul 2018 06:56:42 -0700 (PDT) From: Serge Semin To: ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org Cc: okaya@codeaurora.org, chenhc@lemote.com, Sergey.Semin@t-platforms.ru, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Serge Semin , stable@vger.kernel.org Subject: [PATCH 2/2] mips: mm: Discard ioremap_uncached_accelerated() method Date: Mon, 9 Jul 2018 16:57:13 +0300 Message-Id: <20180709135713.8083-2-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180709135713.8083-1-fancer.lancer@gmail.com> References: <20180709135713.8083-1-fancer.lancer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adaptive ioremap_wc() method is now available (see "mips: mm: Create UCA-based ioremap_wc() method" commit). We can use it for UCA-featured MMIO transactions in the kernel, so we don't need it platform clone ioremap_uncached_accelerated() being declard. Seeing it is also unused anywhere in the kernel code, lets remove it from io.h arch-specific header then. Signed-off-by: Serge Semin Singed-off-by: Paul Burton Cc: James Hogan Cc: Ralf Baechle Cc: linux-mips@linux-mips.org Cc: stable@vger.kernel.org --- arch/mips/include/asm/io.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h index babe5155a..360b7ddeb 100644 --- a/arch/mips/include/asm/io.h +++ b/arch/mips/include/asm/io.h @@ -301,15 +301,11 @@ static inline void __iomem * __ioremap_mode(phys_addr_t offset, unsigned long si __ioremap_mode((offset), (size), boot_cpu_data.writecombine) /* - * These two are MIPS specific ioremap variant. ioremap_cacheable_cow - * requests a cachable mapping, ioremap_uncached_accelerated requests a - * mapping using the uncached accelerated mode which isn't supported on - * all processors. + * This is a MIPS specific ioremap variant. ioremap_cacheable_cow + * requests a cachable mapping with CWB attribute enabled. */ #define ioremap_cacheable_cow(offset, size) \ __ioremap_mode((offset), (size), _CACHE_CACHABLE_COW) -#define ioremap_uncached_accelerated(offset, size) \ - __ioremap_mode((offset), (size), _CACHE_UNCACHED_ACCELERATED) static inline void iounmap(const volatile void __iomem *addr) { -- 2.12.0