OSDN Git Service

usb: gadget: f_gsi: Use 16KB buffer with each TRB for MBIM DL
authorMayank Rana <mrana@codeaurora.org>
Fri, 24 Jun 2016 22:32:07 +0000 (15:32 -0700)
committerKyle Yan <kyan@codeaurora.org>
Tue, 5 Jul 2016 22:27:07 +0000 (15:27 -0700)
There is limitation when IPA is performing de/aggregation with MBIM
in scatter-gather mode. Hence instead of 2KB buffer use 16KB buffer
(i.e. size of aggregated frame) with each TRB for MBIM DL case.

CRs-Fixed: 1032467
Change-Id: I4f73d30711b5606c2ac88ce9d05a8483d64b665d
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
drivers/usb/gadget/function/f_gsi.c

index 6964933..d79e859 100644 (file)
@@ -2387,7 +2387,7 @@ static int gsi_bind(struct usb_configuration *c, struct usb_function *f)
                info.in_epname = "gsi-epin";
                info.out_epname = "gsi-epout";
                gsi->d_port.in_aggr_size = GSI_IN_MBIM_AGGR_SIZE;
-               info.in_req_buf_len = GSI_IN_BUFF_SIZE;
+               info.in_req_buf_len = GSI_IN_MBIM_AGGR_SIZE;
                info.in_req_num_buf = num_in_bufs;
                gsi->d_port.out_aggr_size = GSI_OUT_AGGR_SIZE;
                info.out_req_buf_len = GSI_OUT_MBIM_BUF_LEN;