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

Skip to content
Commit 9f20f3a9 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: core: Do not choose configuration if actconfig is valid



Consider a case where some specific entity like userspace or
libusb has already set some configuration before usb_probe_device
could get invoked. Then usb_choose_configuration sets the config
back to some default config which can lead to desired functions
not getting chosen.
To fix this, do not allow usb_choose_configuration to set any
config if udev->actconfig is valid.

Change-Id: If5166c0610a8c402929e52a4e11a77920dee0356
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 7cab85a0
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