Skip to content

Commit b15dcc1

Browse files
MarkWangChinesekartben
authored andcommitted
drivers: udc_mcux_ip3511: fix typo in transfer handler
If the to-host data stage length is less than that requested by the host, but equal to or a multiple of MPS, the device should send a ZLP, not receive it. Signed-off-by: Mark Wang <yichang.wang@nxp.com>
1 parent 18b5c74 commit b15dcc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/udc/udc_mcux_ip3511.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ static bool udc_mcux_handler_zlt(const struct device *dev, uint8_t ep, struct ne
359359
usb_status_t status;
360360

361361
udc_ep_buf_clear_zlp(buf);
362-
status = mcux_if->deviceRecv(priv->mcux_device.controllerHandle,
362+
status = mcux_if->deviceSend(priv->mcux_device.controllerHandle,
363363
ep, NULL, 0);
364364
if (status != kStatus_USB_Success) {
365365
udc_submit_event(dev, UDC_EVT_ERROR, -EIO);

0 commit comments

Comments
 (0)