Re: [PATCH] PnP Changes for 2.5.72

From: Adam Belay (ambx1@neo.rr.com)
Date: Wed Jun 18 2003 - 18:45:31 EST


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1417 -> 1.1418
# drivers/pnp/pnpbios/core.c 1.31 -> 1.32
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/06/18 ambx1@neo.rr.com 1.1418
# [PNP] PnPBIOS resource setting fix
#
# If a device is disabled when initially read, its blank resource data will not
# be cleared and the pnp layer will assume incorrectly that the device has
# already been configured. This patch resolves the issue by initializing the
# resource table if the device is found to be disabled.
# --------------------------------------------
#
diff -Nru a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
--- a/drivers/pnp/pnpbios/core.c Wed Jun 18 23:01:51 2003
+++ b/drivers/pnp/pnpbios/core.c Wed Jun 18 23:01:51 2003
@@ -935,6 +935,10 @@
                 dev->capabilities |= PNP_REMOVABLE;
         dev->protocol = &pnpbios_protocol;
 
+ /* clear out the damaged flags */
+ if (!dev->active)
+ pnp_init_resources(&dev->res);
+
         pnp_add_device(dev);
         pnpbios_interface_attach_device(node);
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
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 : Mon Jun 23 2003 - 22:00:28 EST