On Tue, Jan 21, 2003 at 09:09:14PM +0100, Jaroslav Kysela wrote:
> > the card is not detected by pnp, that problem stays. is that a problem of the pnp layer or is
> > my toshiba laptop just so damn stupid??
> Nope. It's fault of the driver. It scans for a card. Actually, the
> structure card -> devices is created only by the ISA PnP driver.
> I don't see any reason to not group the PnP BIOS devices into one "card",
> too. Adam, do you have any comments?
I have considered this approach several times. However, there are the following
problems with representing the pnpbios devices under one card:
1.) If a driver attaches to the pnpbios card all other card-based drivers will
be unable to use the pnpbios. One will attach and cause the others to fail. It
is possible for the user to have more than one pnpbios sound card but with this
approach such a user would only be able to use one sound device from the entire
2.) Doing so would misrepresent the pnpbios topology because it physically
doesn't have any cards.
3.) The opl3sa2 driver doesn't need a card because it is only asking for one
device anyway. Using the card interface puts unnecessary overhead on both the
driver and the pnp layer.
4.) The PnP Card Services were designed to support older hardware (pre-pnpbios).
Eventually vendors realized how stupid it was to use more than one device to
perform a single function. Therefore the opl3sa2 and others do not use several
devices and do not need a card interface.
I propose that we use a different solution...
What if we have the opl3sa2 driver along with the other one device drivers
use the pnp_driver interface instead of the pnpc_driver. Jaroslav, Do you
agree with this or would you suggest something else? If you agree, I'll get
to work on a patch.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Jan 23 2003 - 22:00:27 EST