Received: by 10.223.164.202 with SMTP id h10csp404887wrb; Fri, 10 Nov 2017 08:09:59 -0800 (PST) X-Google-Smtp-Source: AGs4zMbQR5ccLovrj0/EsMA9h0eu6sJL42ncxMNnECxQIkeFB7wX4VnqCCBwN1YTx6l3ZMgJ7oYC X-Received: by 10.99.172.25 with SMTP id v25mr806178pge.182.1510330199565; Fri, 10 Nov 2017 08:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510330199; cv=none; d=google.com; s=arc-20160816; b=T7mcrG8TQFKxMbGd2fhCKLymvUzqhsfhc+y3PVZKQxPAI7S0z7NqgslToRrFvd1TvE v3U02gXu9jlHQap189YrcVB/ISfGQ8/8pC7hhYcWykzjGfWEv87upoo1Sl0jgcHaujKt wGkuc+IvVJ5I5BzAGGnY9O4W4EYoRXTiF9aq90im2VVFyA5UULnZtFh7pvcs0Z+ulInP aNwC5oeZNiXW1dcDO0UyUMhliYg19qkHQaAB1wLi2Xr7tieNbfH0PlPLRB6PM8bwKHB1 bC/fUy+/8xjTzN+VkTi5JaR6pfwmGL1ytvqbV+CRodvuXQmtwW67UDVkk93IKJKb6+QA yaYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Dnd5rlCx47H3UbvHTmSUfmePfY4fDhwYoW/roU2splo=; b=eD5xnIB2D1NTqO+cv6dGhAZwjrr4HpVnWbGNuHHaOlQOzuRj+q/oHgnvHJp9CLX6i3 ghumY1cVbQffZzK3NwSjABazPy/FL/657bsXfSSsWipzKM1WmBEEPJAwA2Vl4fCCjjJq HOzZ/fHT7eaYlUSPmhhrjbvhystW7DHwiE+Wt60b9wvtPm+KJLgajtqle1+/+dYKoSsh ykaHxPLP4mIgW8uWbj07Za+Veq/2vXXNWFESK3cuMecyzfC7DLf0mSM2SCCASp7KWbqU AzwgVlFJyMSneaXBpJE7LNV/CUiJpfgUQrlRb6If/XO15i60BrZdf9Px49bQFHbhajWY EOXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=khyOO8wJ; 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=NONE 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 x5si9078185pge.370.2017.11.10.08.09.47; Fri, 10 Nov 2017 08:09:59 -0800 (PST) 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=khyOO8wJ; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753402AbdKJQIN (ORCPT + 82 others); Fri, 10 Nov 2017 11:08:13 -0500 Received: from mail-vk0-f66.google.com ([209.85.213.66]:49786 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751191AbdKJQIK (ORCPT ); Fri, 10 Nov 2017 11:08:10 -0500 Received: by mail-vk0-f66.google.com with SMTP id t184so6391578vka.6; Fri, 10 Nov 2017 08:08:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Dnd5rlCx47H3UbvHTmSUfmePfY4fDhwYoW/roU2splo=; b=khyOO8wJjIglzBhBYuCbcWQd8/OzTZPmNJ0eYRIdSFxrgOs6cvZzbJ4/7jkgt+T+AY U/cWzStDxet1QRqkB5ghHlS6yJPdIwaFvy1orR1iaKsaNapCKLsFjDtumxQT7PpgqqlB 7JVfdOBzFT8VDH5PJRqDSQvgZEdZygJOewbX064C1l/BeHfHJ8VMX6acfPGKvdLRJ7Iv 5K0yGYm7XpdVP5XKQrfrNJOBE9p1A+AtunfZI2DYXgk1DKfZgCriHkqNsCF9l97yx74Z kxtu2xEcbrS2PHNe3JLnho9oRNSQHVg1W0gy6s18Y1lCeE0DTeRTLSK/oaWa3D4hU9qy 40Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Dnd5rlCx47H3UbvHTmSUfmePfY4fDhwYoW/roU2splo=; b=OyT+f211VZPiyDEV3cVvGdsSlTbDT2Pa5lh9drrLXh+OqemZ59N1oiN5pAbVDXV5C6 8W93lsWW5WSHNkpAn4uhtPHWmCmwjZLi/iGkT7IJrFmOyLv0ftmY3+udE4F3qmdjZ8Fm QotTx/qaVErUTnsmV4TUNFm+TpAWJgwtVZZ3NPzsJUgS/ehaKu+ZplLsGSaU3zYMO1IP ENZgKbs50bWFYold6/KHoMz00ORk/6xYxRLq4WrY4+Z4oz3/UTUFWB2wDXOop7n6T+fh 5ivc1ZBDUxBY1lH4ecCyRemv7WiGSQf+BrWHUaL8ks5egp85MDuKw/kRCo57KS3rLUb1 h26Q== X-Gm-Message-State: AJaThX7LTBg5c1oqfi1tkIscx6kLDIMbwoM9V+S6Xz01Os5hyPXAZy7Z 6fSaahJ+W0N1mSatne7/3w5bCMQoB1PMbNl4OvU= X-Received: by 10.31.129.133 with SMTP id c127mr684544vkd.22.1510330089719; Fri, 10 Nov 2017 08:08:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.62.8 with HTTP; Fri, 10 Nov 2017 08:07:29 -0800 (PST) In-Reply-To: References: <4e9acf2ec55fb26ddb290ca2d955eeea628e0a77.1510118606.git.green.hu@gmail.com> From: Greentime Hu Date: Sat, 11 Nov 2017 00:07:29 +0800 Message-ID: Subject: Re: [PATCH 12/31] nds32: Device specific operations To: Arnd Bergmann Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen , deanbo422@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-11-09 15:04 GMT+08:00 Greentime Hu : > 2017-11-08 17:04 GMT+08:00 Arnd Bergmann : >> On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> >>> + >>> +#define ioremap(cookie,size) __ioremap(cookie,size,0,1) >>> +#define ioremap_nocache(cookie,size) __ioremap(cookie,size,0,1) >>> +#define iounmap(cookie) __iounmap(cookie) >> >>> +#include >> >> asm-generic/io.h now provides an ioremap_nocache() helper along with >> ioremap_uc/ioremap_wc/ioremap_wt, so I think you can remove the >> ioremap_nocache definition here. You might also be able to remove >> __ioremap and __iounmap, and only provide ioremap/iounmap, plus >> the identity macro 'define ioremap ioremap' > > Thanks. I will try to use generic ioremap_nocache() helper in the next > version patch. I think I can't remove ioremap_nocache definition because it is defined in asm-generic/io.h with !CONFIG_MMU. From 1583571211487038660@xxx Thu Nov 09 07:06:32 +0000 2017 X-GM-THRID: 1583483429061741337 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread