| To: | ralf@linux-mips.org |
|---|---|
| Subject: | [PATCH 2.6] Lasat pci assignment fixup (pci-lasat.c) (dependant on previous cleanup patch) |
| From: | Brian Murphy <brm@murphy.dk> |
| Date: | Thu, 17 Mar 2005 22:36:49 +0100 |
| Cc: | linux-mips@linux-mips.org |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Hi Ralf,
this fixes Lasat pci to work with multi-function devices by
assigning the correct values based on pin number (instead of ignoring
them). And this is of course the real reason for the patches.
Please apply.
/Brian
--- pci-lasat.c 2005-03-17 22:20:56.000000000 +0100
+++ arch/mips/pci/pci-lasat.c 2005-03-17 22:21:21.000000000 +0100
@@ -64,11 +64,9 @@
{
switch (slot) {
case 1:
- return LASATINT_PCIA;
case 2:
- return LASATINT_PCIB;
case 3:
- return LASATINT_PCIC;
+ return LASATINT_PCIA + (((slot-1) + (pin-1)) % 4);
case 4:
return LASATINT_ETH1; /* Ethernet 1 (LAN 2) */
case 5:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2.6] Lasat cleanups (pci-lasat.c), Brian Murphy |
|---|---|
| Next by Date: | Re: need help with CompactFlash/PCMCIA, Pete Popov |
| Previous by Thread: | [PATCH 2.6] Lasat cleanups (pci-lasat.c), Brian Murphy |
| Next by Thread: | Netbooting CoLo on the Cobalt RaQ1, Stuart Longland |
| Indexes: | [Date] [Thread] [Top] [All Lists] |