mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00: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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue