Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1193910
| From | Oliver Neukum <oneukum@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net 2/2] r8152: reset device when tx timeout |
| Date | 2015-07-28 11:00 +0200 |
| Message-ID | <pR8TU-4eR-23@gated-at.bofh.it> (permalink) |
| References | <pR7Eu-2w2-11@gated-at.bofh.it> <pR7Eu-2w2-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2015-07-28 at 15:36 +0800, Hayes Wang wrote: > The device reset is necessary if the hw becomes abnormal and stops > transmitting packets. You are not the first one to face this problem. Hence there is a helper: * 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. Regards Oliver -- 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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net 2/2] r8152: reset device when tx timeout Hayes Wang <hayeswang@realtek.com> - 2015-07-28 09:40 +0200
Re: [PATCH net 2/2] r8152: reset device when tx timeout Oliver Neukum <oneukum@suse.com> - 2015-07-28 11:00 +0200
RE: [PATCH net 2/2] r8152: reset device when tx timeout Hayes Wang <hayeswang@realtek.com> - 2015-07-28 12:00 +0200
csiph-web