mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-03 21:48:15 +00:00 
			
		
		
		
	samsung: common: do not reset if cros-ec uclass is missing
Otherwise non-ChromeOS samsung devices, like the odroid boards, are
stuck in a bootloop if CONFIG_CROS_EC is not enabled:
    <...>
    MMC: SAMSUNG SDHCI: 2, EXYNOS DWMMC: 0
    Loading Environment from MMC... *** Warning - bad CRC, using default environment
    cros-ec communications failure -96
    Please reset with Power+Refresh
    Cannot init cros-ec device
    resetting ...
Issue started after commit e44d7e73fe0d ("dm: core: Switch
uclass_*_device_err to use uclass_*_device_check").
Signed-off-by: Henrik Grimler <henrik@grimler.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
			
			
This commit is contained in:
		
							parent
							
								
									7d01ee9d19
								
							
						
					
					
						commit
						c9901bd2ad
					
				@ -223,7 +223,7 @@ int board_late_init(void)
 | 
			
		||||
	char mmcbootdev_str[16];
 | 
			
		||||
 | 
			
		||||
	ret = uclass_first_device_err(UCLASS_CROS_EC, &dev);
 | 
			
		||||
	if (ret && ret != -ENODEV) {
 | 
			
		||||
	if (ret && ret != -ENODEV && ret != -EPFNOSUPPORT) {
 | 
			
		||||
		/* Force console on */
 | 
			
		||||
		gd->flags &= ~GD_FLG_SILENT;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user