summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2016-07-13 15:45:17 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-07-13 15:45:17 -0700
commit066a92c8d696ea4b04561b8155384b4bfa8eec7a (patch)
treeb0fb59d18de94e6116a059e100434fe58b2555eb /drivers/usb
parent32e8a524a8a6ed0c70f4776bda6db8e7b681fee2 (diff)
parent5e840b3bc928b35bdeafe6a909856eba9da88d01 (diff)
Merge "usb: gadget: f_gsi: Increase USB GSI OUT TRBs from 7 to 31 for ECM"
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/function/f_gsi.c6
-rw-r--r--drivers/usb/gadget/function/f_gsi.h3
2 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/gadget/function/f_gsi.c b/drivers/usb/gadget/function/f_gsi.c
index 84fb715075af..468a7bcd8dbd 100644
--- a/drivers/usb/gadget/function/f_gsi.c
+++ b/drivers/usb/gadget/function/f_gsi.c
@@ -2459,12 +2459,12 @@ static int gsi_bind(struct usb_configuration *c, struct usb_function *f)
info.ss_desc_hdr = ecm_gsi_ss_function;
info.in_epname = "gsi-epin";
info.out_epname = "gsi-epout";
- gsi->d_port.in_aggr_size = GSI_IN_ECM_AGGR_SIZE;
+ gsi->d_port.in_aggr_size = GSI_ECM_AGGR_SIZE;
info.in_req_buf_len = GSI_IN_BUFF_SIZE;
info.in_req_num_buf = num_in_bufs;
- gsi->d_port.out_aggr_size = GSI_OUT_AGGR_SIZE;
+ gsi->d_port.out_aggr_size = GSI_ECM_AGGR_SIZE;
info.out_req_buf_len = GSI_OUT_ECM_BUF_LEN;
- info.out_req_num_buf = num_out_bufs;
+ info.out_req_num_buf = GSI_ECM_NUM_OUT_BUFFERS;
info.notify_buf_len = GSI_CTRL_NOTIFY_BUFF_LEN;
/* export host's Ethernet address in CDC format */
diff --git a/drivers/usb/gadget/function/f_gsi.h b/drivers/usb/gadget/function/f_gsi.h
index eb42feff0712..d56012779c78 100644
--- a/drivers/usb/gadget/function/f_gsi.h
+++ b/drivers/usb/gadget/function/f_gsi.h
@@ -38,12 +38,13 @@
#define GSI_NUM_IN_BUFFERS 7
#define GSI_IN_BUFF_SIZE 2048
#define GSI_NUM_OUT_BUFFERS 7
+#define GSI_ECM_NUM_OUT_BUFFERS 31
#define GSI_OUT_AGGR_SIZE 24576
#define GSI_IN_RNDIS_AGGR_SIZE 9216
#define GSI_IN_MBIM_AGGR_SIZE 16384
#define GSI_IN_RMNET_AGGR_SIZE 16384
-#define GSI_IN_ECM_AGGR_SIZE 2048
+#define GSI_ECM_AGGR_SIZE 2048
#define GSI_OUT_MBIM_BUF_LEN 16384
#define GSI_OUT_RMNET_BUF_LEN 16384