Skip to content

Commit 07aa8a5

Browse files
yangsong8-a1Alan Carvalho de Assis
authored andcommitted
usbdev: modify usb device support USB3.0 MaxPacketSize
Signed-off-by: yangsong8 <[email protected]>
1 parent 0788e68 commit 07aa8a5

File tree

20 files changed

+754
-484
lines changed

20 files changed

+754
-484
lines changed

drivers/usbdev/Kconfig

Lines changed: 175 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,35 @@ config PL2303_EP0MAXPACKET
318318
int "Packet and request buffer sizes"
319319
default 64
320320

321+
config PL2303_EPBULK_FSSIZE
322+
int "BULK endpoints full speed MAXPACKET size"
323+
default 64
324+
---help---
325+
Max package size for the bulk endpoint if full speed mode.
326+
Default 64.
327+
328+
if USBDEV_DUALSPEED
329+
330+
config PL2303_EPBULK_HSSIZE
331+
int "BULK endpoints high speed MAXPACKET size"
332+
default 512
333+
---help---
334+
Max package size for the bulk endpoint if high speed mode.
335+
Default 512.
336+
337+
endif # USBDEV_DUALSPEED
338+
339+
if USBDEV_SUPERSPEED
340+
341+
config PL2303_EPBULK_SSSIZE
342+
int "BULK endpoints super speed MAXPACKET size"
343+
default 1024
344+
---help---
345+
Max package size for the bulk endpoint if super speed mode.
346+
Default 1024.
347+
348+
endif # USBDEV_SUPERSPEED
349+
321350
config PL2303_NWRREQS
322351
int "Number of read requests that can be in flight"
323352
default 4
@@ -462,6 +491,17 @@ config CDCACM_EPINTIN_HSSIZE
462491

463492
endif # USBDEV_DUALSPEED
464493

494+
if USBDEV_SUPERSPEED
495+
496+
config CDCACM_EPINTIN_SSSIZE
497+
int "Interrupt IN super speed MAXPACKET size"
498+
default 64
499+
---help---
500+
Max package size for the interrupt IN endpoint if super speed mode.
501+
Default 64.
502+
503+
endif # USBDEV_SUPERSPEED
504+
465505
if !CDCACM_COMPOSITE
466506

467507
# In a composite device the EP-Number is configured dynamically via
@@ -494,6 +534,17 @@ config CDCACM_EPBULKOUT_HSSIZE
494534

495535
endif # USBDEV_DUALSPEED
496536

537+
if USBDEV_SUPERSPEED
538+
539+
config CDCACM_EPBULKOUT_SSSIZE
540+
int "Bulk OUT out super speed MAXPACKET size"
541+
default 1024
542+
---help---
543+
Max package size for the bulk OUT endpoint if super speed mode.
544+
Default 1024.
545+
546+
endif # USBDEV_SUPERSPEED
547+
497548
if !CDCACM_COMPOSITE
498549

499550
# In a composite device the EP-Number is configured dynamically via
@@ -526,6 +577,17 @@ config CDCACM_EPBULKIN_HSSIZE
526577

527578
endif # USBDEV_DUALSPEED
528579

580+
if USBDEV_SUPERSPEED
581+
582+
config CDCACM_EPBULKIN_SSSIZE
583+
int "Bulk IN super speed MAXPACKET size"
584+
default 1024
585+
---help---
586+
Max package size for the bulk IN endpoint if super speed mode.
587+
Default 1024.
588+
589+
endif # USBDEV_SUPERSPEED
590+
529591
config CDCACM_NRDREQS
530592
int "Number of read requests that can be in flight"
531593
default 4
@@ -670,14 +732,25 @@ config USBADB_EPBULKOUT_FSSIZE
670732
if USBDEV_DUALSPEED
671733

672734
config USBADB_EPBULKOUT_HSSIZE
673-
int "Bulk OUT out high speed MAXPACKET size"
735+
int "Bulk OUT high speed MAXPACKET size"
674736
default 512
675737
---help---
676738
Max package size for the bulk OUT endpoint if high speed mode.
677739
Default 512.
678740

679741
endif # USBDEV_DUALSPEED
680742

743+
if USBDEV_SUPERSPEED
744+
745+
config USBADB_EPBULKOUT_SSSIZE
746+
int "Bulk OUT super speed MAXPACKET size"
747+
default 1024
748+
---help---
749+
Max package size for the bulk OUT endpoint if super speed mode.
750+
Default 1024.
751+
752+
endif # USBDEV_SUPERSPEED
753+
681754
config USBADB_EPBULKIN_FSSIZE
682755
int "Bulk IN full speed MAXPACKET size"
683756
default 64
@@ -696,6 +769,17 @@ config USBADB_EPBULKIN_HSSIZE
696769

697770
endif # USBDEV_DUALSPEED
698771

772+
if USBDEV_SUPERSPEED
773+
774+
config USBADB_EPBULKIN_SSSIZE
775+
int "Bulk IN super speed MAXPACKET size"
776+
default 1024
777+
---help---
778+
Max package size for the bulk IN endpoint if super speed mode.
779+
Default 1024.
780+
781+
endif # USBDEV_SUPERSPEED
782+
699783
config USBADB_NRDREQS
700784
int "Number of read requests that can be in flight"
701785
default 4
@@ -1135,6 +1219,17 @@ config CDCECM_EPINTIN_HSSIZE
11351219

11361220
endif # USBDEV_DUALSPEED
11371221

1222+
if USBDEV_SUPERSPEED
1223+
1224+
config CDCECM_EPINTIN_SSSIZE
1225+
int "Interrupt IN super speed MAXPACKET size"
1226+
default 64
1227+
---help---
1228+
Max package size for the interrupt IN endpoint if super speed mode.
1229+
Default 64.
1230+
1231+
endif # USBDEV_SUPERSPEED
1232+
11381233
if !CDCECM_COMPOSITE
11391234

11401235
# In a composite device the EP-Number is configured dynamically via
@@ -1159,14 +1254,25 @@ config CDCECM_EPBULKOUT_FSSIZE
11591254
if USBDEV_DUALSPEED
11601255

11611256
config CDCECM_EPBULKOUT_HSSIZE
1162-
int "Bulk OUT out high speed MAXPACKET size"
1257+
int "Bulk OUT high speed MAXPACKET size"
11631258
default 512
11641259
---help---
11651260
Max package size for the bulk OUT endpoint if high speed mode.
11661261
Default 512.
11671262

11681263
endif # USBDEV_DUALSPEED
11691264

1265+
if USBDEV_SUPERSPEED
1266+
1267+
config CDCECM_EPBULKOUT_SSSIZE
1268+
int "Bulk OUT super speed MAXPACKET size"
1269+
default 1024
1270+
---help---
1271+
Max package size for the bulk OUT endpoint if super speed mode.
1272+
Default 1024.
1273+
1274+
endif # USBDEV_SUPERSPEED
1275+
11701276
if !CDCECM_COMPOSITE
11711277

11721278
# In a composite device the EP-Number is configured dynamically via
@@ -1199,6 +1305,17 @@ config CDCECM_EPBULKIN_HSSIZE
11991305

12001306
endif # USBDEV_DUALSPEED
12011307

1308+
if USBDEV_SUPERSPEED
1309+
1310+
config CDCECM_EPBULKIN_SSSIZE
1311+
int "Bulk IN super speed MAXPACKET size"
1312+
default 1024
1313+
---help---
1314+
Max package size for the bulk IN endpoint if super speed mode.
1315+
Default 1024.
1316+
1317+
endif # USBDEV_SUPERSPEED
1318+
12021319
if !CDCECM_COMPOSITE
12031320

12041321
# In a composite device the Vendor- and Product-ID is given by the composite
@@ -1310,6 +1427,17 @@ config CDCNCM_EPINTIN_HSSIZE
13101427

13111428
endif # USBDEV_DUALSPEED
13121429

1430+
if USBDEV_SUPERSPEED
1431+
1432+
config CDCNCM_EPINTIN_SSSIZE
1433+
int "Interrupt IN super speed MAXPACKET size"
1434+
default 64
1435+
---help---
1436+
Max package size for the interrupt IN endpoint if super speed mode.
1437+
Default 64.
1438+
1439+
endif # USBDEV_SUPERSPEED
1440+
13131441
if !CDCNCM_COMPOSITE
13141442

13151443
# In a composite device the EP-Number is configured dynamically via
@@ -1334,14 +1462,25 @@ config CDCNCM_EPBULKOUT_FSSIZE
13341462
if USBDEV_DUALSPEED
13351463

13361464
config CDCNCM_EPBULKOUT_HSSIZE
1337-
int "Bulk OUT out high speed MAXPACKET size"
1465+
int "Bulk OUT high speed MAXPACKET size"
13381466
default 512
13391467
---help---
13401468
Max package size for the bulk OUT endpoint if high speed mode.
13411469
Default 512.
13421470

13431471
endif # USBDEV_DUALSPEED
13441472

1473+
if USBDEV_SUPERSPEED
1474+
1475+
config CDCNCM_EPBULKOUT_SSSIZE
1476+
int "Bulk OUT super speed MAXPACKET size"
1477+
default 1024
1478+
---help---
1479+
Max package size for the bulk OUT endpoint if super speed mode.
1480+
Default 1024.
1481+
1482+
endif # USBDEV_SUPERSPEED
1483+
13451484
if !CDCNCM_COMPOSITE
13461485

13471486
# In a composite device the EP-Number is configured dynamically via
@@ -1374,6 +1513,17 @@ config CDCNCM_EPBULKIN_HSSIZE
13741513

13751514
endif # USBDEV_DUALSPEED
13761515

1516+
if USBDEV_SUPERSPEED
1517+
1518+
config CDCNCM_EPBULKIN_SSSIZE
1519+
int "Bulk IN super speed MAXPACKET size"
1520+
default 1024
1521+
---help---
1522+
Max package size for the bulk IN endpoint if super speed mode.
1523+
Default 1024.
1524+
1525+
endif # USBDEV_SUPERSPEED
1526+
13771527
if !CDCNCM_COMPOSITE
13781528

13791529
# In a composite device the Vendor- and Product-ID is given by the composite
@@ -1519,6 +1669,17 @@ config USBMTP_EPBULKOUT_HSSIZE
15191669

15201670
endif # USBDEV_DUALSPEED
15211671

1672+
if USBDEV_SUPERSPEED
1673+
1674+
config USBMTP_EPBULKOUT_SSSIZE
1675+
int "Bulk OUT Super Speed MAXPACKET size"
1676+
default 1024
1677+
---help---
1678+
Max package size for the bulk OUT endpoint if Super Speed mode.
1679+
Default 1024.
1680+
1681+
endif # USBDEV_DUALSPEED
1682+
15221683
config USBMTP_EPBULKIN_FSSIZE
15231684
int "Bulk IN Full Speed MAXPACKET size"
15241685
default 64
@@ -1537,6 +1698,17 @@ config USBMTP_EPBULKIN_HSSIZE
15371698

15381699
endif # USBDEV_DUALSPEED
15391700

1701+
if USBDEV_SUPERSPEED
1702+
1703+
config USBMTP_EPBULKIN_SSSIZE
1704+
int "Bulk IN Super Speed MAXPACKET size"
1705+
default 1024
1706+
---help---
1707+
Max package size for the bulk IN endpoint if Super Speed mode.
1708+
Default 1024.
1709+
1710+
endif # USBDEV_DUALSPEED
1711+
15401712
config USBMTP_EPINTIN_SIZE
15411713
int "Interrupt IN MAXPACKET size"
15421714
default 28

0 commit comments

Comments
 (0)