common.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) | common.c (601bf18b6630d37bde945fc890a995650f53e2c9) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/pci.h> 3#include <linux/interrupt.h> 4#include <linux/timer.h> 5#include <linux/kernel.h> 6 7/* 8 * These functions are used early on before PCI scanning is done --- 40 unchanged lines hidden (view full) --- 49int __init pci_is_66mhz_capable(struct pci_channel *hose, 50 int top_bus, int current_bus) 51{ 52 u32 pci_devfn; 53 unsigned short vid; 54 int cap66 = -1; 55 u16 stat; 56 | 1// SPDX-License-Identifier: GPL-2.0 2#include <linux/pci.h> 3#include <linux/interrupt.h> 4#include <linux/timer.h> 5#include <linux/kernel.h> 6 7/* 8 * These functions are used early on before PCI scanning is done --- 40 unchanged lines hidden (view full) --- 49int __init pci_is_66mhz_capable(struct pci_channel *hose, 50 int top_bus, int current_bus) 51{ 52 u32 pci_devfn; 53 unsigned short vid; 54 int cap66 = -1; 55 u16 stat; 56 |
57 printk(KERN_INFO "PCI: Checking 66MHz capabilities...\n"); | 57 pr_info("PCI: Checking 66MHz capabilities...\n"); |
58 59 for (pci_devfn = 0; pci_devfn < 0xff; pci_devfn++) { 60 if (PCI_FUNC(pci_devfn)) 61 continue; 62 if (early_read_config_word(hose, top_bus, current_bus, 63 pci_devfn, PCI_VENDOR_ID, &vid) != 64 PCIBIOS_SUCCESSFUL) 65 continue; --- 63 unchanged lines hidden (view full) --- 129 cmd |= PCI_STATUS_REC_MASTER_ABORT; 130 } 131 132 if (status & PCI_STATUS_REC_TARGET_ABORT) { 133 printk(KERN_DEBUG "PCI: target abort: "); 134 pcibios_report_status(PCI_STATUS_REC_TARGET_ABORT | 135 PCI_STATUS_SIG_TARGET_ABORT | 136 PCI_STATUS_REC_MASTER_ABORT, 1); | 58 59 for (pci_devfn = 0; pci_devfn < 0xff; pci_devfn++) { 60 if (PCI_FUNC(pci_devfn)) 61 continue; 62 if (early_read_config_word(hose, top_bus, current_bus, 63 pci_devfn, PCI_VENDOR_ID, &vid) != 64 PCIBIOS_SUCCESSFUL) 65 continue; --- 63 unchanged lines hidden (view full) --- 129 cmd |= PCI_STATUS_REC_MASTER_ABORT; 130 } 131 132 if (status & PCI_STATUS_REC_TARGET_ABORT) { 133 printk(KERN_DEBUG "PCI: target abort: "); 134 pcibios_report_status(PCI_STATUS_REC_TARGET_ABORT | 135 PCI_STATUS_SIG_TARGET_ABORT | 136 PCI_STATUS_REC_MASTER_ABORT, 1); |
137 printk("\n"); | 137 pr_cont("\n"); |
138 139 cmd |= PCI_STATUS_REC_TARGET_ABORT; 140 } 141 142 if (status & (PCI_STATUS_PARITY | PCI_STATUS_DETECTED_PARITY)) { 143 printk(KERN_DEBUG "PCI: parity error detected: "); 144 pcibios_report_status(PCI_STATUS_PARITY | 145 PCI_STATUS_DETECTED_PARITY, 1); | 138 139 cmd |= PCI_STATUS_REC_TARGET_ABORT; 140 } 141 142 if (status & (PCI_STATUS_PARITY | PCI_STATUS_DETECTED_PARITY)) { 143 printk(KERN_DEBUG "PCI: parity error detected: "); 144 pcibios_report_status(PCI_STATUS_PARITY | 145 PCI_STATUS_DETECTED_PARITY, 1); |
146 printk("\n"); | 146 pr_cont("\n"); |
147 148 cmd |= PCI_STATUS_PARITY | PCI_STATUS_DETECTED_PARITY; 149 150 /* Now back off of the IRQ for awhile */ 151 if (hose->err_irq) { 152 disable_irq_nosync(hose->err_irq); 153 hose->err_timer.expires = jiffies + HZ; 154 add_timer(&hose->err_timer); 155 } 156 } 157 158 return cmd; 159} | 147 148 cmd |= PCI_STATUS_PARITY | PCI_STATUS_DETECTED_PARITY; 149 150 /* Now back off of the IRQ for awhile */ 151 if (hose->err_irq) { 152 disable_irq_nosync(hose->err_irq); 153 hose->err_timer.expires = jiffies + HZ; 154 add_timer(&hose->err_timer); 155 } 156 } 157 158 return cmd; 159} |