mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 15:40:29 +09:00
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: Li Jun <jun.li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
4e643671f5
commit
42a594de14
@ -512,8 +512,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)
|
||||
|
Loading…
Reference in New Issue
Block a user