Hi All,<br><br>I am working on porting Linux <a href="http://2.6.16.60">2.6.16.60</a> on PowerPC based board with Tsi109 system controller. <br>Our platform support is defined in arch/ppc<br>Here is our hardware interrupt routing<br>
Tsi109 PCI BUS <br>&nbsp;&nbsp;&nbsp; (BUS 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; V<br>&nbsp;&nbsp;&nbsp;&nbsp; VME controller (BUS 0 IDSEL 16) IRQ 36 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PMC Slot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (BUS 0 IDSEL 17) IRQ 37<br>&nbsp;&nbsp;&nbsp;&nbsp; PCI-PCI Bridge (BUS 0 IDSEL 18) No IRQ required<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&nbsp;&nbsp;&nbsp;&nbsp; (BUS 1)|<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; |-------&gt;&nbsp;&nbsp;&nbsp; PMC Slot (BUS 1 IDSEL 19) IRQ 38<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; USB Contr(BUS 1 IDSEL 20) IRQ 39 <br><br>I faced a problem at map_irq. Due to pci_swizzle, PCI probe is always returning p2p bridge IDSEL for all device on BUS 1.<br>
In our case, we routed independent interrupt lines for the devices on BUS 1.<br><br>I made a quick workaround by assigning IRQ&#39;s based on dev-&gt;devfn. <br><br>Is there any standard way of assigning independent interrupts for the devices connected below P2P bridge?<br>
<br>I am facing problem with on-board USB controller. Even though /proc/interrupts shows correct assignment. USB is always returning the following message<br><br>usb 2-1: new low speed USB device using ohci_hcd and address 2<br>
ohci_hcd 0000:01:04.0: Unlink after no-IRQ?&nbsp; Controller is probably using the wrong IRQ<br><br>If the interrupts are not assigned properly, how the above message pop-up soon after inserting USB device?<br><br>Here is the proc entry<br>
# cat /proc/interrupts<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPU0<br>&nbsp;12:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 105&nbsp; tsi108_pic Level&nbsp;&nbsp;&nbsp;&nbsp; serial<br>&nbsp;38:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4270&nbsp; tsi108_PCI_int Level&nbsp;&nbsp;&nbsp;&nbsp; eth0<br>&nbsp;39:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp; tsi108_PCI_int Level&nbsp;&nbsp;&nbsp;&nbsp; ehci_hcd:usb1, ohci_hcd:usb2, ohci_hcd :usb3<br>
<br>Whereas USB PMC on BUS 0 works fine.<br><br>I request you to provide some pointers on the same.<br><br>Thanks a lot,<br>Suresh<br><br><br>