mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	stm32mp: stm32prog: handle the next phase after USB re-enumeration
Handle the second USB enumeration only when the flashlayout is received and when phase is PHASE_FLASHLAYOUT. This patch removes the call of stm32prog_next_phase as it is already done in stm32prog_dfu_init(). Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
		
				
					committed by
					
						 Patrice Chotard
						Patrice Chotard
					
				
			
			
				
	
			
			
			
						parent
						
							90ed215dd5
						
					
				
				
					commit
					be4182bf23
				
			| @@ -207,13 +207,10 @@ bool stm32prog_usb_loop(struct stm32prog_data *data, int dev) | ||||
|  | ||||
| 	if (stm32prog_data->phase == PHASE_FLASHLAYOUT) { | ||||
| 		ret = run_usb_dnl_gadget(dev, "usb_dnl_dfu"); | ||||
| 		if (ret || stm32prog_data->phase == PHASE_DO_RESET) | ||||
| 		if (ret || stm32prog_data->phase != PHASE_FLASHLAYOUT) | ||||
| 			return ret; | ||||
| 		/* prepare the second enumeration with the FlashLayout */ | ||||
| 		if (stm32prog_data->phase == PHASE_FLASHLAYOUT) | ||||
| 		stm32prog_dfu_init(data); | ||||
| 		/* found next selected partition */ | ||||
| 		stm32prog_next_phase(data); | ||||
| 	} | ||||
|  | ||||
| 	ret = run_usb_dnl_gadget(dev, "usb_dnl_dfu"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user