Skip to content

Commit 05fb46c

Browse files
jfischer-nokartben
authored andcommitted
drivers: udc_stm32: handle ZLP flag for control transfers as well
I mistakenly assumed in the commit 6aaad0a ("drivers: udc_stm32: handle ZLP flag") that the HAL driver would handle ZLP flag in control transfers itself, but that does not seem to be the case. Signed-off-by: Johann Fischer <[email protected]>
1 parent 112e27f commit 05fb46c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/udc/udc_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ static void handle_msg_data_in(struct udc_stm32_data *priv, uint8_t epnum)
351351
return;
352352
}
353353

354-
if (udc_ep_buf_has_zlp(buf) && ep != USB_CONTROL_EP_IN) {
354+
if (udc_ep_buf_has_zlp(buf)) {
355355
udc_ep_buf_clear_zlp(buf);
356356
HAL_PCD_EP_Transmit(&priv->pcd, ep, buf->data, 0);
357357

0 commit comments

Comments
 (0)