Re: [PATCH] ppc64: Add mecanism to check existence of legacy ISAdevices

From: Benjamin Herrenschmidt
Date: Fri Oct 22 2004 - 20:11:43 EST


On Sat, 2004-10-23 at 10:32, Linus Torvalds wrote:
> On Sat, 23 Oct 2004, Benjamin Herrenschmidt wrote:
> >
> > This patch adds an arch function that can be overriden by the various
> > platforms at runtime, to query if a given legacy IO device actually
> > exist on the platform (based on the standard base port).
>
> Ehh..
>
> Why don't you use the "isapnp" or "acpi" interfaces?
>
> Yeah yeah, you don't actually have isapnp on your system. But like it or
> not, when we talk ISA enumeration, there is an existing standard for doing
> it. And since the drivers involved don't actually do BIOS calls or
> anything like that, they don't need to know that your "acpi" or "isapnp"
> enumeration comes from ppc64 firmware..

Hrm... currently, those drivers just blindly go tap IO ports and ...

- the isapnp stuff is _huge_, it's quite difficult to figure out what
to bring in and what not, and how to adapt it, especially since my
knowledge of the ISA stuff isn't that big

- It's only about 2 or 3 drivers and none of theem uses isapnp at this
point anyway

It's really only about keyboard, floppy, and _maybe_ parport, I'm not
sure bringing in the whole isapnp stuff is worth it, but I'll have a
look. I'd appreciate if the workaround I posted could get in for now
though.

Ben.


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