mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-25 19:50:20 +00:00 
			
		
		
		
	 270c66be9b
			
		
	
	
		270c66be9b
		
	
	
	
	
		
			
			The 'use pci_find_ext_capability everywhere' cleanup brought a new bug, which makes the AER stop working. Fix it by actually using find_ext_cap instead of just find_cap. Drop the unused config space size define while we're at it. Signed-off-by: Yu Zhao <yu.zhao@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
		
			
				
	
	
		
			32 lines
		
	
	
		
			773 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			773 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (C) 2006 Intel Corp.
 | |
|  *     Tom Long Nguyen (tom.l.nguyen@intel.com)
 | |
|  *     Zhang Yanmin (yanmin.zhang@intel.com)
 | |
|  */
 | |
| 
 | |
| #ifndef _AER_H_
 | |
| #define _AER_H_
 | |
| 
 | |
| #if defined(CONFIG_PCIEAER)
 | |
| /* pci-e port driver needs this function to enable aer */
 | |
| extern int pci_enable_pcie_error_reporting(struct pci_dev *dev);
 | |
| extern int pci_disable_pcie_error_reporting(struct pci_dev *dev);
 | |
| extern int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev);
 | |
| #else
 | |
| static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
 | |
| {
 | |
| 	return -EINVAL;
 | |
| }
 | |
| static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
 | |
| {
 | |
| 	return -EINVAL;
 | |
| }
 | |
| static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev)
 | |
| {
 | |
| 	return -EINVAL;
 | |
| }
 | |
| #endif
 | |
| 
 | |
| #endif //_AER_H_
 | |
| 
 |