mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	PCI: of: Ignore resources with failed translation
This patch allows PCI host controller to function even if part of resources is unusable for some reason. An example is non-LPAE kernel on a machine which has some 64-bit resources. Unusable resources will be just skipped instead of a complete failure. Signed-off-by: Pavel Fedin <p.fedin@samsung.com> Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
		
							parent
							
								
									4af9710649
								
							
						
					
					
						commit
						f134f25162
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -223,8 +223,10 @@ int of_pci_get_host_bridge_resources(struct device_node *dev, | |||
| 		} | ||||
| 
 | ||||
| 		err = of_pci_range_to_resource(&range, dev, res); | ||||
| 		if (err) | ||||
| 			goto conversion_failed; | ||||
| 		if (err) { | ||||
| 			kfree(res); | ||||
| 			continue; | ||||
| 		} | ||||
| 
 | ||||
| 		if (resource_type(res) == IORESOURCE_IO) { | ||||
| 			if (!io_base) { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Pavel Fedin
						Pavel Fedin