Messages in this thread | | | From | Duncan Sands <> | Subject | Re: [linux-usb-devel] Re: [OOPS, usbcore, releaseintf] 2.6.0-test10-mm1 | Date | Thu, 11 Dec 2003 22:23:43 +0100 |
| |
> It should handle that okay (provided you retain a reference to the > usb_device so that it doesn't get deallocated). Although it wouldn't hurt > to change one of the tests from > > if (dev->state != USB_STATE_ADDRESS) > > to > > if (dev->state > USB_STATE_ADDRESS)
By the way, my patch tests for disconnect in usbfs by doing:
if (dev->state == USB_STATE_NOTATTACHED) run_away();
Is this right?
Thanks,
Duncan. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |