Re: [PATCH] isa_{read,write}{w,l} fixed

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Fri Feb 11 2000 - 17:24:41 EST


Philipp Rumpf wrote:
>
> > Two key points here --
> >
> > * isa_xxx are only to ease the transition to newstyle ioremap. if you
> > are hacking code, go ahead and update it to use
> > ioremap/readX/writeX/iounmap.
>
> I don't see how that justifies inconsistent behaviour, especially
> considering some old code apparently did use readb() with a pointer.

You are completely missing the point. It is *intentional* that
isa_writeb() is slightly different from writeb(). isa_writeb() exists
to ease the transition from an old ISA interface (or lack thereof) to a
newer interface which uses ioremap/writeb.

Old ISA drivers do everything under the sun... they directly access I/O
memory. they use writeb() without ioremap. they ioremap, then directly
access the ioremap'd memory. All of that is wrong, and all of that can
be (a) properly cleaned up with ioremap/writeb, or (b) quickly cleaned
up with isa_xxx.

-- 
Jeff Garzik         | "Vegetarian" is the Indian word
Building 1024       | for 'lousy hunter.'
MandrakeSoft, Inc.  |

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:21 EST