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

Commit 51d6c043 authored by Liangliang Lu's avatar Liangliang Lu
Browse files

usb: gadget: f_diag: allocate diag USB channel when not found



Currently usb function instance driver depends on diag char driver to
create the channel (using usb_diag_open api). Failing to create channel
can result in enumeration failure. Avoid this dependency by creating
diag channel from function instance if not available. Same channel
will be reused when diag char driver creates/opens the channel.

Change-Id: Ie9f1b5d87257eb019552a3121abc77b7fb8ac544
Signed-off-by: default avatarLiangliang Lu <luliang@codeaurora.org>
parent bf10764e
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