Commit 045868f8 authored by Qihang Hu's avatar Qihang Hu Committed by Avichal Rakesh
Browse files

UPSTREAM: usb: gadget: composite: Show warning if function driver's descriptors are incomplete.



In the config_ep_by_speed_and_alt function, select the corresponding
descriptor through g->speed. But some legacy or not well designed
function drivers may not support the corresponding speed. So, we can
directly display warnings instead of causing kernel panic. At the
same time, it indicates the reasons in warning message.

Reviewed-by: default avatarPeter Chen <peter.chen@kernel.org>
Signed-off-by: default avatarQihang Hu <huqihang@oppo.com>
Link: https://lore.kernel.org/r/20211110101129.462357-1-huqihang@oppo.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(cherry picked from commit 16d42759)
Bug: 259171206
Change-Id: I5ceff4871e1e7693c7a2c68264e994f39194090b
Signed-off-by: default avatarAvichal Rakesh <arakesh@google.com>
parent 4d8c2d84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment