mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01: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);
|
usb_ep_autoconfig_reset(cdev->gadget);
|
||||||
|
|
||||||
if (os_desc_config)
|
os_desc_config = config;
|
||||||
cdev->os_desc_config = os_desc_config;
|
cdev->os_desc_config = os_desc_config;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
if (status)
|
if (status)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user