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

Commit 93e270aa authored by Pavankumar Kondeti's avatar Pavankumar Kondeti Committed by Gerrit - the friendly Code Review server
Browse files

usb: gadget: f_hid: Fix unbind issues



Implement kref tracking for f_hid structure so that it
does not get freed while user space has reference to the
/dev/hidgX nodes.

When the hidg is unbound, unblock poll/read/write. The expectation
is that user space close and open the device nodes created upon the
next bind.

Change-Id: I19701189ed4d564f88052ef0f079880c3e744d47
Signed-off-by: default avatarPavankumar Kondeti <quic_pkondeti@quicinc.com>
parent 4803db7a
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