Re: [PATCH] PnP Fixes for 2.6.0-test9

From: Adam Belay
Date: Sun Nov 16 2003 - 00:33:20 EST


# --------------------------------------------
# 03/11/15 ambx1@xxxxxxxxxx 1.1448
# [PnPBIOS] read static resources on PnPBIOS init
#
# The PnPBIOS specifications recommend that we read static (boot time)
# resources when the PnPBIOS driver is first initialized. Because the
# PnPBIOS driver is not modular and can not be ran more than once per
# boot, it's safe to access the static resource data. Many buggy
# BIOSes actually expect us to read from it first. With this patch,
# the PnPBIOS driver will read static resources initially and then
# switch to dynamic mode when allocating resources for specific nodes.
# --------------------------------------------
#
diff -Nru a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
--- a/drivers/pnp/pnpbios/core.c Sun Nov 16 00:25:08 2003
+++ b/drivers/pnp/pnpbios/core.c Sun Nov 16 00:25:08 2003
@@ -353,16 +353,8 @@

for(nodenum=0; nodenum<0xff; ) {
u8 thisnodenum = nodenum;
- /* eventually we will want to use PNPMODE_STATIC here but for now
- * dynamic will help us catch buggy bioses to add to the blacklist.
- */
- if (!pnpbios_dont_use_current_config) {
- if (pnp_bios_get_dev_node(&nodenum, (char )PNPMODE_DYNAMIC, node))
- break;
- } else {
- if (pnp_bios_get_dev_node(&nodenum, (char )PNPMODE_STATIC, node))
- break;
- }
+ if (pnp_bios_get_dev_node(&nodenum, (char )PNPMODE_STATIC, node))
+ break;
nodes_got++;
dev = pnpbios_kmalloc(sizeof (struct pnp_dev), GFP_KERNEL);
if (!dev)
-
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/