mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	[ARM] 3860/1: Versatile PCI config byte accesses
The ARM Versatile board PCI config space read routines are broken for byte accesses. The access uses a byte read, so masking the bottom two bits of the address is wrong. I guess this is a cut/paste error from the the halfword code which uses aligned word access+shift+mask. Signed-off-by: Paul Brook <paul@codesourcery.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
		
							parent
							
								
									4052ebb7a2
								
							
						
					
					
						commit
						c06015148f
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -117,7 +117,6 @@ static int versatile_read_config(struct pci_bus *bus, unsigned int devfn, int wh | ||||||
| 	} else { | 	} else { | ||||||
| 		switch (size) { | 		switch (size) { | ||||||
| 		case 1: | 		case 1: | ||||||
| 			addr &= ~3; |  | ||||||
| 			v = __raw_readb(addr); | 			v = __raw_readb(addr); | ||||||
| 			break; | 			break; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Paul Brook
						Paul Brook