Skip to content

Commit

Permalink
net: enable TX thread if USB device support is enabled
Browse files Browse the repository at this point in the history
Without TX thread support in network stack USB device stack
blocks it self by usb_transfer_sync() which is
called in the same context as usb_set_interface() in sequence
of netusb_enable(), net_if_up(), net_l2_send().

Fixes: zephyrproject-rtos#35338

Signed-off-by: Johann Fischer <[email protected]>
  • Loading branch information
jfischer-no authored and galak committed May 18, 2021
1 parent 1e74ddd commit 21b3609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/ip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ config NET_SHELL_DYN_CMD_COMPLETION

config NET_TC_TX_COUNT
int "How many Tx traffic classes to have for each network device"
default 1 if USERSPACE
default 1 if USERSPACE || USB_DEVICE_NETWORK
default 0
range 1 NET_TC_NUM_PRIORITIES if NET_TC_NUM_PRIORITIES<=8 && USERSPACE
range 0 NET_TC_NUM_PRIORITIES if NET_TC_NUM_PRIORITIES<=8
Expand Down

0 comments on commit 21b3609

Please sign in to comment.