mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
usb: gadget: f_tcm: Use extra number of commands
To properly respond to host sending more commands than the number of streams the device advertises, the device needs to be able to reject the command with a response. Allocate an extra request to handle 1 more command than the number of streams. Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/256f2ec8f5e042ab692d9593144fa75f3d3ce94b.1733876548.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0d2d759c9a
commit
9e0f5819ba
|
|
@ -16,7 +16,7 @@
|
|||
#define UASP_SS_EP_COMP_LOG_STREAMS 5
|
||||
#define UASP_SS_EP_COMP_NUM_STREAMS (1 << UASP_SS_EP_COMP_LOG_STREAMS)
|
||||
|
||||
#define USBG_NUM_CMDS UASP_SS_EP_COMP_NUM_STREAMS
|
||||
#define USBG_NUM_CMDS (UASP_SS_EP_COMP_NUM_STREAMS + 1)
|
||||
|
||||
enum {
|
||||
USB_G_STR_INT_UAS = 0,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user