From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752576Ab0K3GAQ (ORCPT ); Tue, 30 Nov 2010 01:00:16 -0500 Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:59563 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949Ab0K3GAO (ORCPT ); Tue, 30 Nov 2010 01:00:14 -0500 Date: Tue, 30 Nov 2010 14:59:16 +0900 From: Paul Mundt To: Benjamin Herrenschmidt Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Paul Mackerras , Thomas Gleixner , Ingo Molnar , Mikael Starvik , Jesper Nilsson , Chris Metcalf , Tejun Heo , Andrew Morton Subject: Re: [PATCH] mm: make ioremap_prot() take a pgprot. Message-ID: <20101130055916.GC17114@linux-sh.org> References: <20101102203102.GA12723@linux-sh.org> <1291088916.32570.352.camel@pasglop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1291088916.32570.352.camel@pasglop> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 30, 2010 at 02:48:36PM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2010-11-03 at 05:31 +0900, Paul Mundt wrote: > > The current definition of ioremap_prot() takes an unsigned long for the > > page flags and then converts to/from a pgprot as necessary. This is > > unfortunately not sufficient for the SH-X2 TLB case which has a 64-bit > > pgprot and a 32-bit unsigned long. > > > > An inspection of the tree shows that tile and cris also have their > > own equivalent routines that are using the pgprot_t but do not set > > HAVE_IOREMAP_PROT, both of which could trivially be adapted. > > > > After cris/tile are updated there would also be enough critical mass to > > move the powerpc devm_ioremap_prot() in to the generic lib/devres.c. > > > > Signed-off-by: Paul Mundt > > Finally got to this :-) > > Looks good to me, compile test in progress and ... it passes. > > Acked-by: Benjamin Herrenschmidt Thanks. The -tip people didn't bite, so hopefully this can be picked up for -mm.