[PATCH] 2.6.13-rc4-git3: snd_intel8x0: handle irq_request failure on resume

From: Rafael J. Wysocki (rjw_at_sisk.pl)
Date: 07/31/05

  • Next message: Ingo Molnar: "Re: [patch] Real-Time Preemption, -RT-2.6.13-rc4-V0.7.52-01"
    To: Andrew Morton <akpm@osdl.org>
    Date:	Sun, 31 Jul 2005 12:43:21 +0200
    
    

    Hi,

    This patch adds the handling of irq_request() failures during resume to
    the snd_intel8x0 driver.

    Please consider for applying,
    Rafael

    Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

    --- linux-2.6.13-rc4-git3/sound/pci/intel8x0.c 2005-07-31 12:35:00.000000000 +0200
    +++ patched/sound/pci/intel8x0.c 2005-07-31 12:36:10.000000000 +0200
    @@ -2390,7 +2390,12 @@ static int intel8x0_resume(snd_card_t *c
     
             pci_enable_device(chip->pci);
             pci_set_master(chip->pci);
    - request_irq(chip->irq, snd_intel8x0_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip);
    + if (request_irq(chip->irq, snd_intel8x0_interrupt, SA_INTERRUPT|SA_SHIRQ, card->shortname, (void *)chip)) {
    + snd_printk("unable to grab IRQ %d\n", chip->irq);
    + chip->irq = -1;
    + pci_disable_device(chip->pci);
    + return -EBUSY;
    + }
             synchronize_irq(chip->irq);
             snd_intel8x0_chip_init(chip, 1);
     
    -
    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: Ingo Molnar: "Re: [patch] Real-Time Preemption, -RT-2.6.13-rc4-V0.7.52-01"

    Relevant Pages

    • Re: mfi freebsd7
      ... Failed to open driver node /dev/megadev0 ... you might have more luck with sysutils/linux-megacli since that explicitly mentions LSI MegaRAID SAS, I wish they would make the util open source though. ... A RAID1 config shoudl suit a busy webserver well. ... To unsubscribe, ...
      (freebsd-questions)
    • PERC 3/Di - aacraid driver issue on DELL PowerEdge 2650
      ... out to be a buggy aacraid driver. ... I would check the mailing lists on ... > Indeed, I will install the latest system BIOS update, and the latest ... > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • Re: [opensuse] opensuse 10.2 feature question
      ... To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx ... For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx ... "Develop success from failures. ...
      (SuSE)
    • Re: trouble getting my wireless stuff to work
      ... MadWiFi Linux driver. ... with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: how can I trust the driver
      ... Because the driver has root permission, ... the best one can do is to examine the file I/O and network I/O ... I don't remember of the top of my head the commands to check network and file I/O but I have ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)