From: Duncan Laurie <duncan@sun.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: Re: problem with Serverworks CSB5 IDE
Date: Fri, 25 Apr 2003 09:39:45 -0700 [thread overview]
Message-ID: <3EA964D1.3070908@sun.com> (raw)
In-Reply-To: <1051268422.5573.25.camel@dhcp22.swansea.linux.org.uk>
Alan Cox wrote:
>
> The revision id is read when we init_chipset_svwks, which comes from the
> PCI setup. If the chip is in legacy mode we call init chipset early on
> regardless. If it is in native mode it gets called too and we ignore
> its view of the IRQ (since thats now PCI defined).
>
Yeah I saw that after I hit send, but for serverworks the init_chipset
is not always called because it can fall into a corner case when in native
mode because the PCI interrupt pin register is hardwired to zero (don't
ask me why...) so it follows a codepath in do_ide_setup_pci_device()
where init_chipset isn't called.
This patch adds the function call, which fixes the svwks_revision
variable and the missing /proc/ide/svwks:
--- setup-pci.c~ 2003-04-25 09:20:31.000000000 -0700
+++ setup-pci.c 2003-04-25 09:24:27.000000000 -0700
@@ -609,7 +609,7 @@
if (noisy)
printk(KERN_WARNING "%s: bad irq (%d): will probe later\n",
d->name, pciirq);
- pciirq = 0;
+ pciirq = (d->init_chipset) ? d->init_chipset(dev, d->name) : 0;
} else {
if (d->init_chipset)
d->init_chipset(dev, d->name);
>
>> /* Check the OSB4 DMA33 enable bit */
>> return ((reg & 0x00004000) == 0x00004000) ? 1 : 0;
>> } else if (svwks_revision < SVWKS_CSB5_REVISION_NEW) {
>>- return 1;
>>+ return 2;
>
>
> Why this change ?
>
>
Because the max supported mode for CSB5 < rev 0x92 is udma 4 (=2),
not udma 2 (=1).
-duncan
next prev parent reply other threads:[~2003-04-25 16:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-23 21:27 problem with a cobalt RaQ550 system and DMA (Serverworks OSB4 in impossible state) Olivier Bornet
2003-04-23 22:21 ` Alan Cox
2003-04-23 23:29 ` Olivier Bornet
2003-04-24 8:00 ` Olivier Bornet
2003-04-24 21:51 ` problem with Serverworks CSB5 IDE Duncan Laurie
2003-04-24 23:52 ` Duncan Laurie
2003-04-25 11:00 ` Alan Cox
2003-04-25 16:39 ` Duncan Laurie [this message]
2003-04-25 15:42 ` Alan Cox
2003-04-25 18:52 ` Duncan Laurie
2003-04-25 18:02 ` Alan Cox
2003-04-28 13:03 ` Alan Cox
2003-04-24 0:02 ` problem with a cobalt RaQ550 system and DMA (Serverworks OSB4 in impossible state) Duncan Laurie
2003-04-24 7:55 ` Olivier Bornet
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=3EA964D1.3070908@sun.com \
--to=duncan@sun.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.