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

Skip to content
Commit 6f456763 authored by Liangliang Lu's avatar Liangliang Lu Committed by Jack Pham
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: I11debd0189d81542762af22b3d203728d2266a42
Signed-off-by: default avatarLiangliang Lu <luliang@codeaurora.org>
parent 0b744694
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