Re: Prerelease kernel will not hotplug a USB host-controller when it isinserted into a Cardbus slot.

From: David Brownell (david-b@pacbell.net)
Date: Wed Jan 03 2001 - 09:57:23 EST


> I am writing to let you know that in all test12-pre6+ kernels,
> I get a "Bad PCI invocation" error when hotplug attempts to
> handle the insertion of a USB host-controller into a Cardbus
> slot.

That's new info ... you'd previously thought that it wasn't even
invoking /sbin/hotplug!

The scripts I know about will produce that message when they're
invoked without PCI_CLASS set. That's a sanity check which was
needed for the intial PCI hotplug support, which wouldn't pass
that info -- needed to hotplug devices using class drivers, such
as USB host controllers.

But they'll also dump all the arguments and environment of
hotplug before they get that far, if you set DEBUG=yes; please
enable that and let us know the whole environment that's getting
passed !

- Dave

p.s. Re that patch Andrew mentioned, it shouldn't have made
    a difference unless "PCI_CLASS=%04X" truncated the top
    eight bits of the class (it's 24 bits, not 16: 8 bits
    each of class, subclass, prog-if.) That would have had a
    different failure mode: only class 0 devices (pci.ids
    says is "unclassified" devices) would PCI hotplug.

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



This archive was generated by hypermail 2b29 : Sun Jan 07 2001 - 21:00:15 EST