No, acm_disconnect() is not called at all before crashing. The test is done with PSP 0.9.8 from TI(kernel 2.6.22.18). Regards Wending -----Original Message----- From: Oliver Neukum [mailto:oliver@xxxxxxxxxx] Sent: July 24, 2009 4:33 AM To: Weng, Wending Cc: linux-usb@xxxxxxxxxxxxxxx Subject: Re: kernel 2.6.31.-rc1 drivers/usb/class/cdc-acm.c patch Am Donnerstag, 23. Juli 2009 19:29:52 schrieb Weng, Wending: > I have an omap3(TI) based system, one attached device include an usb-hub > with 2 usb-acm devices and 1 usb touch screen, when I unplung this device, > it causes the system to crash if /dev/ttyACM0 and /dev/ttyACM1 are used by > application at the time, otherwise, it will be shutdown normally. From the > trace I see, the usb host controller driver returns all scheduled URBs, and > cdc-acm continues to send URBs, it ends up by crashing. After adding these > 2 lines, it does fix my problem. However, I'm not sure why acm_disconnect > is not called, probably, because /dev/ttyACM# is busy, this prevents the > system from doing it. Any other ideas? Can you confirm that acm_disconnect() runs? Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html