Skip to content

Commit 7a28ef1

Browse files
committed
[nrf fromlist] 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. Upstream PR #: 88236 Fixes: 2be960a ("drivers: udc_dwc2: Disable endpoint while hibernated") Signed-off-by: Tomasz Moń <[email protected]>
1 parent 511cd38 commit 7a28ef1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)