Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3388c2d1 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa Committed by Matt Wagantall
Browse files

USB: gadget: composite: Don't enable endpoints if already enabled



As part of USBCV complaince, host sends set interface request
after set configuration request. This will reenable the endpoints
which are already enabled. This could cause WARN_ON message by
DCD. Hence check whether config is active or not and allow to call
function driver's set_alt if alternate setting is non zero.

CRs-Fixed: 486281
Change-Id: Id90c50f364b446329a38cd3b7389e4d0638d9023
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
[jackp@codeaurora.org: squashed with 'USB: composite: Fix issue of
 get interface returning wrong altsetting']
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 970625c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment