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:
parent
18b5c740e4
commit
b15dcc196d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue