File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -448,6 +448,7 @@ static void sof_timer_handler(struct k_timer *timer)
448448static void vrt_device_act (const struct device * dev ,
449449 const enum uvb_device_act act )
450450{
451+ struct uhc_vrt_data * priv = uhc_get_private (dev );
451452 enum uhc_event_type type ;
452453
453454 switch (act ) {
@@ -456,9 +457,11 @@ static void vrt_device_act(const struct device *dev,
456457 break ;
457458 case UVB_DEVICE_ACT_FS :
458459 type = UHC_EVT_DEV_CONNECTED_FS ;
460+ k_timer_start (& priv -> sof_timer , K_MSEC (1 ), K_MSEC (1 ));
459461 break ;
460462 case UVB_DEVICE_ACT_HS :
461463 type = UHC_EVT_DEV_CONNECTED_HS ;
464+ k_timer_start (& priv -> sof_timer , K_MSEC (1 ), K_USEC (125 ));
462465 break ;
463466 case UVB_DEVICE_ACT_REMOVED :
464467 type = UHC_EVT_DEV_REMOVED ;
You can’t perform that action at this time.
0 commit comments