From 2cfa0230393bbd63f30e1cec237fd7e0dedaad66 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 17 Mar 2016 21:45:57 +0000 Subject: [PATCH 1/2] RD - comments were for WR --- drivers/usbdev/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usbdev/Kconfig b/drivers/usbdev/Kconfig index 427091d799..2878b437d9 100644 --- a/drivers/usbdev/Kconfig +++ b/drivers/usbdev/Kconfig @@ -410,13 +410,13 @@ config CDCACM_EPBULKIN_HSSIZE Max package size for the bulk IN endpoint if high speed mode. Default 512. -config CDCACM_NWRREQS +config CDCACM_NRDREQS int "Number of read requests that can be in flight" default 4 ---help--- The number of read requests that can be in flight -config CDCACM_NRDREQS +config CDCACM_NWRREQS int "Number of write requests that can be in flight" default 4 ---help--- From d2a017d9bbc8afda29da1ef65778306a2565ba1c Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 17 Mar 2016 21:47:40 +0000 Subject: [PATCH 2/2] rdreqs was defined as CONFIG_CDCACM_NWRREQS size --- drivers/usbdev/cdcacm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usbdev/cdcacm.c b/drivers/usbdev/cdcacm.c index b4b5173678..6767fd8e52 100644 --- a/drivers/usbdev/cdcacm.c +++ b/drivers/usbdev/cdcacm.c @@ -111,7 +111,7 @@ struct cdcacm_dev_s */ struct cdcacm_req_s wrreqs[CONFIG_CDCACM_NWRREQS]; - struct cdcacm_req_s rdreqs[CONFIG_CDCACM_NWRREQS]; + struct cdcacm_req_s rdreqs[CONFIG_CDCACM_NRDREQS]; /* Serial I/O buffers */