Re: [no problem] PC110 broke 2.6.9

From: Linus Torvalds
Date: Sat Nov 06 2004 - 21:58:38 EST




On Sun, 7 Nov 2004, Alan Cox wrote:
>
> On Sad, 2004-11-06 at 23:37, Linus Torvalds wrote:
> > Ahh.. Interesting. One improvement might be to make sure that this driver
> > links in very late in the game, so that if any other drivers have
> > allocated the IO, at least it won't override that. Also, it might make
> > sense to say that the dang thing can share interrupts.
>
> It can't share interrupts.

Not if it's there, no. But if the hardware doesn't actually exist on the
machine, and you can't probe for it, it may be better to say "hey, I'll
share interrupts, because I don't know if I actually exist or not" ;)

> > But yes, we should probably make sure to make it harder to enable the
> > driver by mistake, and try to do minimal probing of it. I have no idea how
> > to probe for the thing, though.
>
> I never found anything.
>
> > Alan, Vojtech, do you have any register information on this thing? Some
> > docs to try to realize when it's not there? Or some other way to detect
> > the IBM PC110 hardware (BIOS strings, something?)
>
> I have some register info, the driver is done by disassembly of the
> PC-DOS
> driver IBM shipped with the PC110. It's a pre pci, pre dmi machine so
> there aren't any obvious sane ways to probe. Its not something you'd
> want to build in as opposed to modular on any other system but the PC110

Well, that actually _is_ something we can probe for: "does this machine
have PCI".

IOW, we could have a trivial "if the list of PCI devices is non-empty,
then return immediately" kind of thing, no?

That would mean that (pretty much) anybody loading that driver by mistake
wouldn't get into trouble.

Linus
-
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/