提交 50bd2c72 编写于 作者: T Thiemo Seufer 提交者: Ralf Baechle

Brian Murphy says:

    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: NRalf Baechle <ralf@linux-mips.org>
Signed-off-by: NThiemo Seufer <ths@networkno.de>
上级 ec125c12
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册