[Core] chibios: usb_main: remove OTG sof workaround (#24259)
chibios: usb_main: remove OTG sof workaround With the update of ChibiOS and ChibiOS-Contrib containing fixes for the OTGv1 LLD the workaround is not necessarry anymore. Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
This commit is contained in:
		
							parent
							
								
									be6ff3af2b
								
							
						
					
					
						commit
						8e6bfbfdc2
					
				
					 1 changed files with 0 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -325,18 +325,10 @@ static bool usb_requests_hook_cb(USBDriver *usbp) {
 | 
			
		|||
    return false;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static __attribute__((unused)) void dummy_cb(USBDriver *usbp) {
 | 
			
		||||
    (void)usbp;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static const USBConfig usbcfg = {
 | 
			
		||||
    usb_event_cb,          /* USB events callback */
 | 
			
		||||
    usb_get_descriptor_cb, /* Device GET_DESCRIPTOR request callback */
 | 
			
		||||
    usb_requests_hook_cb,  /* Requests hook callback */
 | 
			
		||||
#if STM32_USB_USE_OTG1 == TRUE || STM32_USB_USE_OTG2 == TRUE
 | 
			
		||||
    dummy_cb, /* Workaround for OTG Peripherals not servicing new interrupts
 | 
			
		||||
    after resuming from suspend. */
 | 
			
		||||
#endif
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
void init_usb_driver(USBDriver *usbp) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue