From 22a29fdc976a72757d8bff33d39e65b6d53fb82e Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Mon, 24 Oct 2022 12:18:58 +0900 Subject: [PATCH] arch: cxd56xx: Fix stall bulk xfer when sending 512 byte data Remove hardware zero length packet enhancement because of driver logic already processed the ZLP correctly. It is unnecessary and cause of IN interrupt lost. --- arch/arm/src/cxd56xx/cxd56_usbdev.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/src/cxd56xx/cxd56_usbdev.c b/arch/arm/src/cxd56xx/cxd56_usbdev.c index 64f1b5c41b0..07aea3d6047 100644 --- a/arch/arm/src/cxd56xx/cxd56_usbdev.c +++ b/arch/arm/src/cxd56xx/cxd56_usbdev.c @@ -757,14 +757,6 @@ static int cxd56_epwrite(struct cxd56_ep_s *privep, uint8_t *buf, /* Set Poll bit to ready to send */ ctrl = getreg32(CXD56_USB_IN_EP_CONTROL(epphy)); - - /* Send NULL packet request */ - - if (privep->txnullpkt) - { - ctrl |= USB_SENDNULL; - } - putreg32(ctrl | USB_P | USB_CNAK, CXD56_USB_IN_EP_CONTROL(epphy)); return nbytes;