RE: [PATCH net 2/2] r8152: reset device when tx timeout
From: Hayes Wang
Date: Tue Jul 28 2015 - 05:52:35 EST
Oliver Neukum [mailto:oneukum@xxxxxxxx]
> Sent: Tuesday, July 28, 2015 4:57 PM
[...]
> * usb_queue_reset_device - Reset a USB device from an atomic context
> * @iface: USB interface belonging to the device to reset
> *
> * This function can be used to reset a USB device from an atomic
> * context, where usb_reset_device() won't work (as it blocks).
>
> Please use it if you can. Your version for example is buggy.
> It will oops if you unplug the device while a reset is scheduled.
Thanks for your suggestion. I would replace it.
Best Regards,
Hayes
N§²æ¸yú²X¬¶ÇvØ)Þ{.nÇ·¥{±êX§¶¡Ü}©²ÆzÚj:+v¨¾«êZ+Êzf£¢·h§~Ûÿû®w¥¢¸?¨è&¢)ßfùy§m
á«a¶Úÿ0¶ìå