Re: [PATCH] usb: gadget: dummy_hcd: clear struct gadget on removal

2016-10-13 Thread Alan Stern
On Tue, 11 Oct 2016, Rob Herring wrote: > The addition of CONFIG_DEBUG_TEST_DRIVER_REMOVE uncovered a bug in > dummy_hcd driver. The problem is the gadget's struct device is allocated > once in the initcall, so re-probing the device causes this warning: > > [ 13.516309] kobject (8f92f8b4):

[PATCH] usb: gadget: dummy_hcd: clear struct gadget on removal

2016-10-11 Thread Rob Herring
The addition of CONFIG_DEBUG_TEST_DRIVER_REMOVE uncovered a bug in dummy_hcd driver. The problem is the gadget's struct device is allocated once in the initcall, so re-probing the device causes this warning: [ 13.516309] kobject (8f92f8b4): tried to init an initialized object, something is