lkml.org 
[lkml]   [2003]   [Nov]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH] PnP Fixes for 2.6.0-test9
    # --------------------------------------------
    # 03/11/15 ambx1@neo.rr.com 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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:58    [W:0.023 / U:1.004 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site