Commit 73187a06 authored by Jun Li's avatar Jun Li

MLK-19101 usb: gadget: update os_desc_config when add config

Always use the new added config for os_desc_config to fix cdev->
os_desc_config may miss set in case we restart usb gadget driver.
Signed-off-by: 's avatarLi Jun <jun.li@nxp.com>
(cherry picked from commit e8efb32e9b7a4fe45c7f21e86052c7f5bcdb6695)
parent d4ccaa7c
......@@ -502,8 +502,8 @@ int usb_add_config(struct usb_composite_dev *cdev,
usb_ep_autoconfig_reset(cdev->gadget);
if (os_desc_config)
cdev->os_desc_config = os_desc_config;
os_desc_config = config;
cdev->os_desc_config = os_desc_config;
done:
if (status)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment