Skip to content

Commit a472b09

Browse files
author
Russell King
committed
ARM: PCI: add legacy IDE IRQ implementation
The IDE code used to specify the IDE IRQs for chipsets operating in legacy mode. This appears to no longer work, and this information must be provided by the arch. Do so. This partially fixes CY82C693 (and probably others) on Footbridge platforms. Signed-off-by: Russell King <[email protected]>
1 parent 43024ed commit a472b09

File tree

1 file changed

+1
-4
lines changed
  • arch/arm/include/asm

1 file changed

+1
-4
lines changed

arch/arm/include/asm/pci.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,9 @@ static inline void pci_dma_burst_advice(struct pci_dev *pdev,
5757
extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
5858
enum pci_mmap_state mmap_state, int write_combine);
5959

60-
/*
61-
* Dummy implementation; always return 0.
62-
*/
6360
static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel)
6461
{
65-
return 0;
62+
return channel ? 15 : 14;
6663
}
6764

6865
#endif /* __KERNEL__ */

0 commit comments

Comments
 (0)