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>
This commit is contained in:
Mark Wang 2025-02-11 17:15:07 +08:00 committed by Benjamin Cabé
commit b15dcc196d

View file

@ -359,7 +359,7 @@ static bool udc_mcux_handler_zlt(const struct device *dev, uint8_t ep, struct ne
usb_status_t status;
udc_ep_buf_clear_zlp(buf);
status = mcux_if->deviceRecv(priv->mcux_device.controllerHandle,
status = mcux_if->deviceSend(priv->mcux_device.controllerHandle,
ep, NULL, 0);
if (status != kStatus_USB_Success) {
udc_submit_event(dev, UDC_EVT_ERROR, -EIO);