Skip to content

Commit

Permalink
Brian Murphy says:
Browse files Browse the repository at this point in the history
    this fixes Lasat pci to work with multi-function devices by assigning
    the correct values based on pin number (instead of ignoring them).

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Thiemo Seufer <ths@networkno.de>
  • Loading branch information
Thiemo Seufer authored and Ralf Baechle committed Oct 29, 2005
1 parent ec125c1 commit 50bd2c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/mips/pci/pci-lasat.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
{
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:
Expand Down

0 comments on commit 50bd2c7

Please sign in to comment.