Re: [U-Boot] [PATCH 01/14] dm: usb: Fix broken usb_stop()

2017-09-21 Thread Stefan Roese
On 18.09.2017 15:40, Bin Meng wrote: At present we only do device_remove() during usb stop. The DM API device_remove() only marks the device state as inactivated, but still keeps its USB topology (eg: parent, children, etc) in the DM device structure. There is no issue if we only start USB

[U-Boot] [PATCH 01/14] dm: usb: Fix broken usb_stop()

2017-09-18 Thread Bin Meng
At present we only do device_remove() during usb stop. The DM API device_remove() only marks the device state as inactivated, but still keeps its USB topology (eg: parent, children, etc) in the DM device structure. There is no issue if we only start USB subsystem once and never stop it. But a big