Re: pci_disable_device kills hardware (was Re: [PATCH] propagate pci_enable_device() errors)

From: Greg KH
Date: Thu Aug 26 2004 - 18:49:53 EST


On Thu, Aug 26, 2004 at 07:14:11PM -0400, Jeff Garzik wrote:
> Greg KH wrote:
> >On Thu, Aug 26, 2004 at 03:52:51PM -0400, Jeff Garzik wrote:
> >
> >>thanks much.
> >>
> >>We still need to figure out what to do for multiple-driver situations,
> >>since the additional of pci_disable_device() calls literally
> >>_guarantees_ failures in a two-drivers-for-the-same-hardware situation.
> >
> >
> >the "two-drivers-for-the-same-hardware" is what needs to be fixed.
> >You are on your own if you do that.
>
>
> Sure, but that's handwaving away reality... It stands to reason that we
> would all _prefer_ one driver for each piece of hardware.

That's what the pci driver model forces you to do. If you go around
behind the back of it, you get what you deserve :)

For stuff like this, the IDE drivers need to be changed to use the (what
is it, 4 years old now?) pci driver model. There's no reason technical
why such a conversion hasn't happened yet, right?

thanks,

greg k-h
-
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/