Re: [PATCH v10 01/14] usb: hcd: Initialize hcd->flags to 0

2016-06-14 Thread Roger Quadros
+Alan, On 10/06/16 16:07, Roger Quadros wrote: > When using the OTG/DRD library we can call hcd_add/remove > consecutively without calling usb_put_hcd/usb_create_hcd in between > so hcd->flags can be stale. > > If the HC dies due to whatever reason then without this > patch we get the below error

[PATCH v10 01/14] usb: hcd: Initialize hcd->flags to 0

2016-06-10 Thread Roger Quadros
When using the OTG/DRD library we can call hcd_add/remove consecutively without calling usb_put_hcd/usb_create_hcd in between so hcd->flags can be stale. If the HC dies due to whatever reason then without this patch we get the below error on next hcd_add. [ 91.494257] xhci-hcd xhci-hcd.0.auto: