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

Jeff Garzik (jgarzik@mandrakesoft.com)
Fri, 11 Feb 2000 17:24:41 -0500


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/