Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965825AbWKEEBX (ORCPT ); Sat, 4 Nov 2006 23:01:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965828AbWKEEBX (ORCPT ); Sat, 4 Nov 2006 23:01:23 -0500 Received: from gate.crashing.org ([63.228.1.57]:60847 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S965825AbWKEEBX (ORCPT ); Sat, 4 Nov 2006 23:01:23 -0500 Subject: Re: lib/iomap.c mmio_{in,out}s* vs. __raw_* accessors From: Benjamin Herrenschmidt To: Linus Torvalds Cc: Russell King , Linux Kernel list , Jeff Garzik , Andrew Morton , "David S. Miller" , Paul Mackerras In-Reply-To: References: <1162626761.28571.14.camel@localhost.localdomain> <20061104140559.GC19760@flint.arm.linux.org.uk> <1162678639.28571.63.camel@localhost.localdomain> <1162689005.28571.118.camel@localhost.localdomain> <1162697533.28571.131.camel@localhost.localdomain> Content-Type: text/plain Date: Sun, 05 Nov 2006 15:00:55 +1100 Message-Id: <1162699255.28571.150.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 855 Lines: 25 On Sat, 2006-11-04 at 19:46 -0800, Linus Torvalds wrote: > > On Sun, 5 Nov 2006, Benjamin Herrenschmidt wrote: > > > > Make the generic lib/iomap.c use arch provided MMIO accessors when > > available for big endian and repeat operations. Also while at it, > > fix the *_be version which are currently broken for PIO > > Just rip the _be versions out, methinks. At least one user: ./drivers/scsi/53c700.h: __u32 value = bEBus ? ioread32be(hostdata->base + reg) : ./drivers/scsi/53c700.h: bEBus ? iowrite32be(value, hostdata->base + reg): Should I make it use explicit swab32 instead ? Ben. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/