linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Bertrand Baudet <bbaudet@lacie.com>
Cc: linuxppc-embedded@lists.linuxppc.org, jgarzik@redhat.com,
	B.Zolnierkiewicz@elka.pw.edu.pl
Subject: Re: MPC5200Lite PCI & IRQ
Date: Fri, 18 Jun 2004 10:28:35 +0100	[thread overview]
Message-ID: <1087550915.19489.3137.camel@hades.cambridge.redhat.com> (raw)
In-Reply-To: <5A96167EBCEA8440A48790B5419953AE13C443@gr-lafayette.lacie.com>


On Fri, 2004-06-04 at 15:00 +0200, Bertrand Baudet wrote:
> Hi,
>
> I'm trying to plug a sata card in the PCI slot of the MPC5200Lite.
...
> By default the IRQ line of the sata card is 0,
...
> From the source code, it looks like a value 0 for the IRQ means the IRQ
> is disabled.
>
> From "drivers/ide/ide-probe.c", in the 'hwif_init' function:
> ...
> if (!hwif->irq) {
>    if (!(hwif->irq = ide_default_irq(hwif->io_ports[IDE_DATA_OFFSET])))
>    {
>       printk("%s: DISABLED, NO IRQ\n", hwif->name);
>       return (hwif->present = 0);
>    }
> }
> ...
>
> Commenting out the above code allow the PCI card to run properly.

This is a bug in the IDE driver. Zero is a perfectly valid IRQ number --
I have boxes where PCI slots get IRQ #0 too. Please fix the IDE driver
and send the patch to the IDE maintainer.

--
dwmw2


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

      parent reply	other threads:[~2004-06-18  9:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-04 13:00 MPC5200Lite PCI & IRQ Bertrand Baudet
2004-06-04 16:17 ` Wolfgang Denk
2004-06-18  9:28 ` David Woodhouse [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1087550915.19489.3137.camel@hades.cambridge.redhat.com \
    --to=dwmw2@infradead.org \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=bbaudet@lacie.com \
    --cc=jgarzik@redhat.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).