From 0698bc4c9e34d90ed57ac059e9cf2d45a358a541 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 6 Jan 2020 09:54:58 +0900 Subject: [PATCH] Revert "Fix EP0 receiving more packets." This reverts commit e58e134b42418e84fb32bb19456c5c9a3bdf616e. -- The fix was no-op, because following code does not use LEN at all. For other machines, it uses LEN for hardware USB core. --- mcu/usb-st-common.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mcu/usb-st-common.c b/mcu/usb-st-common.c index 9031e82..58fe4fc 100644 --- a/mcu/usb-st-common.c +++ b/mcu/usb-st-common.c @@ -864,8 +864,6 @@ usb_lld_ctrl_recv (struct usb_dev *dev, void *p, size_t len) struct ctrl_data *data_p = &dev->ctrl_data; data_p->addr = p; data_p->len = len; - if (len > USB_MAX_PACKET_SIZE) - len = USB_MAX_PACKET_SIZE; dev->state = OUT_DATA; ep_set_rx_status (ENDP0, EP_RX_VALID); return USB_EVENT_OK;