Re: [PATCH] PnP Updates for 2.6.2-rc2

From: Adam Belay (ambx1_at_neo.rr.com)
Date: 01/30/04

  • Next message: Adam Belay: "Re: [PATCH] PnP Updates for 2.6.2-rc2"
    Date:	Fri, 30 Jan 2004 00:00:49 +0000
    To: Andrew Morton <akpm@osdl.org>
    
    

    This patch updates the matching code to ensure that all requested devices are
    present on the card, even if they are in use. It is necessary for some ALSA
    drivers to work properly because early vendors would have different sets of
    devices on the same card ids. It is from Takashi Iwai <tiwai@suse.de>.

    --- a/drivers/pnp/card.c 2004-01-09 07:00:03.000000000 +0000
    +++ b/drivers/pnp/card.c 2004-01-29 22:06:22.000000000 +0000
    @@ -26,8 +26,25 @@
     {
             const struct pnp_card_device_id * drv_id = drv->id_table;
             while (*drv_id->id){
    - if (compare_pnp_id(card->id,drv_id->id))
    - return drv_id;
    + if (compare_pnp_id(card->id,drv_id->id)) {
    + int i = 0;
    + for (;;) {
    + int found;
    + struct pnp_dev *dev;
    + if (i == PNP_MAX_DEVICES || ! *drv_id->devs[i].id)
    + return drv_id;
    + found = 0;
    + card_for_each_dev(card, dev) {
    + if (compare_pnp_id(dev->id, drv_id->devs[i].id)) {
    + found = 1;
    + break;
    + }
    + }
    + if (! found)
    + break;
    + i++;
    + }
    + }
                     drv_id++;
             }
             return NULL;
    -
    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/


  • Next message: Adam Belay: "Re: [PATCH] PnP Updates for 2.6.2-rc2"

    Relevant Pages

    • Re: HARDWARE: Open-Source-Friendly Graphics Cards -- Viable?
      ... If it has any chance of being on-par or a little ... I wouldn't buy a card that wouldn't have the three aforementioned features. ... a blurry fast one. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.11 vs DVB cx88 stuffs
      ... >> be a good idea to build the cx88 stuff in the DVB section ... the card is working in ntsc just fine. ... Copyright 2005 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] Small PCI core patch
      ... the binary drivers make absolutely no verification of the ... > command streams passed from userland, you can make the card do whatever ... The resulting bad PR should fix their security holes quick ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: aditional parallel port problems
      ... > solve my problem with the help of Dino Klein, ... your card seems to be 'moded' through ... > module options the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-rc1-bk11+ and 2.6.9-rc1-mm3,4 r8169: freeze during boot (FIX included)
      ... the crash is not immediate. ... possibly in>32-bit addresses but the card hasn't been told to support ... Turning off high DMA fixes it. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)