From 2f2e0f415bbd8ced63247ea89a188e609f374d1a Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Sat, 1 Feb 2025 00:57:24 +0100 Subject: [PATCH] drivers: udc_mcux_ehci: 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: Johann Fischer --- drivers/usb/udc/udc_mcux_ehci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/udc/udc_mcux_ehci.c b/drivers/usb/udc/udc_mcux_ehci.c index 179e9282b18f..1d13fe745d30 100644 --- a/drivers/usb/udc/udc_mcux_ehci.c +++ b/drivers/usb/udc/udc_mcux_ehci.c @@ -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);