Thanks for your respon.
(B
(BI'm a newbie in linux USB device driver development.
(BMy detailed problem is described below.
(B----------++++++++
(BMy Problem in device driver is urb device pointer from usb core driver is NULL.
(BCase 1(Normal):
(B  After resetting the power of USB device:
(B     usb-uhci.c::uhci_interrupt() is called with the status value in nonzero.
(B                 [status = inw(io_addr + USBSTS)]
(B     usb-uhci.c::uhci_submit_urb() is called.
(B     hub.c::usb_hub_events() is called, and port connection will be changed.
(B     usb-uhci.c::uhci_submit_urb() is called again.
(B     hub:c::usb_hub_disconnect() is called, and call usb.c::usb_disconnect()
(B     usb device will be disconnected by device driver.
(B     ..........
(B     After device added(reconnected by hotplug), device driver will work 
(Bnormally.
(B     
(B     
(BCase 2(Error):
(B  After resetting the power of USB device:
(B     usb-uhci.c::uhci_interrupt() never called with the status value in nonzero.
(B     usb-uhci.c::uhci_submit_urb() is called.
(B     hub.c::usb_hub_events() is called, and port connection will be changed.
(B     usb-uhci.c::uhci_submit_urb() is called again.
(B     hub:c::usb_hub_disconnect() is called, and call usb.c::usb_disconnect()
(B     when disconnecting process in device driver run(not complete), 
(B      bulk_read function(=device driver callback function) is called with
(B      urb device pointer in NULL.
(B   
(B   In this case, there is no way to recover usb device driver but rebooting 
(Bsystem.
(B   (reboot without resetting the power of USB device)
(B
(BCase 2(Error case) is seldom happens.
(B++++++++----------
(B
(BNow I'm analyzing Usb core driver source code to solve this problem.
(BBut I can't find a the solution.
(BIs there any solution to solve this problem?
(B
(BBest Regards
(B Marowa
(B
(BOn Thu Nov 18 17:13:00 2004
(BOliver Neukum <[EMAIL PROTECTED]> wrote:
(B
(B>Am Donnerstag, 18. November 2004 04:11 schrieb DMR:
(B>> Hi,
(B>> I have a problem in usb device driver development.
(B>> After USB device was reset by static electricity etc., device pointer from 
(B>> USB core driver is NULL.
(B>What? How? A device resetting itself is certainly a problem, but how
(B>does the host notice? The device would just take adress 0 and logically
(B>vanish from the bus.
(B>       Regards
(B>               Oliver
(B
(B
(B-------------------------------------------------------
(BSF email is sponsored by - The IT Product Guide
(BRead honest & candid reviews on hundreds of IT Products from real users.
(BDiscover which products truly live up to the hype. Start reading now. 
(Bhttp://productguide.itmanagersjournal.com/
(B_______________________________________________
([EMAIL PROTECTED]
(BTo unsubscribe, use the last form field at:
(Bhttps://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to