> > Breaking that dev->bus linkage when the disconnect is done > > ensures that clean failures will be reported ... and that no new > > HCD state for the device could be created. All the methods > > that go through usb_operations check for null dev->bus. > > Good point. One other thing we can also do to ensure that the address > doesn't get reused is to move the call to: > > clear_bit(dev->devnum, &dev->bus->devmap.devicemap); > > into the code that is executed when the reference count hits 0
Why -- what's wrong with reusing that device's address as soon as it's fully disconnected? If you did that, the dev->bus linkage wouldn't be broken ... so those clean failures wouldn't be possible, and the HCDs could be in the business of creating new state for disconnected HW! - Dave _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel