Limit SPI device debug prints with CONFIG_DEBUG_SPI_FLASH
Fix debug printks which were not using CONFIG_DEBUG_SPI_FLASH, which would cause long delays durring boot when SPI devices were written. Change-Id: I99fc3d5f847fdf4bb98e2a0342ea418ab7d5fc54 Signed-off-by: Marc Jones <marc.jones@se-eng.com> Reviewed-on: http://review.coreboot.org/1965 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 Ronald G. Minnich
						Ronald G. Minnich
					
				
			
			
				
	
			
			
			
						parent
						
							91f1423cac
						
					
				
				
					commit
					747127d505
				
			| @@ -112,8 +112,10 @@ static int eon_write(struct spi_flash *flash, | ||||
| 		byte_addr = 0; | ||||
| 	} | ||||
|  | ||||
| 	printk(BIOS_INFO, "SF: EON: Successfully programmed %zu bytes @ 0x%x\n", | ||||
| #if CONFIG_DEBUG_SPI_FLASH | ||||
| 	printk(BIOS_SPEW, "SF: EON: Successfully programmed %zu bytes @ 0x%x\n", | ||||
| 	      len, offset); | ||||
| #endif | ||||
|  | ||||
| 	spi_release_bus(flash->spi); | ||||
| 	return ret; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user