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:Peter Chen <peter.chen@kernel.org> Signed-off-by:
Qihang Hu <huqihang@oppo.com> Link: https://lore.kernel.org/r/20211110101129.462357-1-huqihang@oppo.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 229140375 (cherry picked from commit 16d42759) Signed-off-by:
Dan Vacura <w36195@motorola.com> Change-Id: Iaef2ecfc080dc4a97fe9911af4da78316af8e063
Loading
Please sign in to comment