Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934086AbXHYKKI (ORCPT ); Sat, 25 Aug 2007 06:10:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760124AbXHYKJ5 (ORCPT ); Sat, 25 Aug 2007 06:09:57 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:39320 "EHLO the-village.bc.nu" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751735AbXHYKJ4 (ORCPT ); Sat, 25 Aug 2007 06:09:56 -0400 Date: Sat, 25 Aug 2007 11:17:58 +0100 From: Alan Cox To: Jeff Garzik Cc: Jiri Slaby , linux-kernel@vger.kernel.org, Greg KH , linux-ide@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz Subject: Re: readXs on pci*iomap-ped regions [Was: [PATCH] /drivers/char sx.c ioremap -> pci_ioremap api] Message-ID: <20070825111758.47500f39@the-village.bc.nu> In-Reply-To: <46CFEEB3.6000802@pobox.com> References: <46CF2849.2090008@gmail.com> <4af2d03a0708241159v56b46299h46df9777a98590e5@mail.gmail.com> <20070824201530.5d741b37@the-village.bc.nu> <46CF399E.3010808@gmail.com> <20070824213439.0007e653@the-village.bc.nu> <46CFEC40.7060006@gmail.com> <46CFEEB3.6000802@pobox.com> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 911 Lines: 21 On Sat, 25 Aug 2007 04:56:19 -0400 Jeff Garzik wrote: > If the driver knows its MMIO, using readX/writeX after pci_iomap() is > just fine, for all current implementations, and it makes sense that way. There is nothing that guarantees this is permitted, any more than there is anything saying not to use outb/outl. Some of the implementations do quite strange things. It may happen to work but its not in the documentation or the comments. If you want to change this then you need to check the existing usages and update all the docs if its safe, oh and tell the sparc64 pcmcia people to take a hike, which is probably not a big problem. Alan - 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/