mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
usb: f_gsi: Fix GSI enable logic for ADPL only composition
Driver enables GSI wrapper only if OUT EP is present in GSI interface which is not the case with DPL function. This logic works as long as there is another GSI function present with OUT EP (e.g. RMNET/RNDIS). However, if ADPL is the only GSI function in composition then driver does all the EP specific programming in USB GSI wrapper but doesn't enable it. Since, initial doorbell is rung by software, data transfer does start but eventually stall happens as USB GSI wrapper doesn't ring doorbell. Fix it by not having an EP check while enabling GSI. Change-Id: Ia40209d5a3f3b5947b13e8909ef9f994200f7a85 Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
This commit is contained in:
parent
265c742dd3
commit
3717aafa04
1 changed files with 2 additions and 2 deletions
|
|
@ -700,11 +700,11 @@ static void ipa_data_path_enable(struct gsi_data_port *d_port)
|
|||
usb_gsi_ep_op(gsi->d_port.out_ep,
|
||||
&gsi->d_port.out_request,
|
||||
GSI_EP_OP_STORE_DBL_INFO);
|
||||
|
||||
usb_gsi_ep_op(gsi->d_port.out_ep, &gsi->d_port.out_request,
|
||||
GSI_EP_OP_ENABLE_GSI);
|
||||
}
|
||||
|
||||
usb_gsi_ep_op(gsi->d_port.in_ep, &gsi->d_port.in_request,
|
||||
GSI_EP_OP_ENABLE_GSI);
|
||||
|
||||
/* Unblock doorbell to GSI */
|
||||
usb_gsi_ep_op(d_port->in_ep, (void *)&block_db,
|
||||
GSI_EP_OP_SET_CLR_BLOCK_DBL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue