Commit ea3dbe99 authored by Johann Fischer's avatar Johann Fischer Committed by Benjamin Cabé
Browse files

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: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 1c4e7b08
Loading
Loading
Loading
Loading
+1 −1
Changes for drivers/usb/udc/udc_mcux_ehci.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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);