Skip to content

Commit 4e99b5b

Browse files
tmon-nordickartben
authored andcommitted
drivers: udc_dwc2: Mark endpoint idle on disable while hibernated
When endpoint is disabled while hibernated, the UDC endpoint state has to be reset. Set the busy to false to keep UDC endpoint state in sync with peripheral register state. Fixes: 2be960a ("drivers: udc_dwc2: Disable endpoint while hibernated") Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
1 parent e4f9afc commit 4e99b5b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/usb/udc/udc_dwc2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1553,6 +1553,7 @@ static void udc_dwc2_ep_disable(const struct device *dev,
15531553
priv->pending_tx_flush |= BIT(usb_dwc2_get_depctl_txfnum(dxepctl));
15541554
}
15551555

1556+
udc_ep_set_busy(cfg, false);
15561557
return;
15571558
}
15581559

0 commit comments

Comments
 (0)