summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorOliver Neukum2014-08-01 14:01:51 +0200
committerDavid S. Miller2014-08-03 00:44:18 +0200
commitdbcdd4d58c7230bea3157d56d6ef77c493b3865b (patch)
tree461928882c98e191e56cfe24bc430bbd3f5a8962 /include/linux/usb
parentiovec: make sure the caller actually wants anything in memcpy_fromiovecend (diff)
downloadkernel-qcow2-linux-dbcdd4d58c7230bea3157d56d6ef77c493b3865b.tar.gz
kernel-qcow2-linux-dbcdd4d58c7230bea3157d56d6ef77c493b3865b.tar.xz
kernel-qcow2-linux-dbcdd4d58c7230bea3157d56d6ef77c493b3865b.zip
cdc_subset: deal with a device that needs reset for timeout
This device needs to be reset to recover from a timeout. Unfortunately this can be handled only at the level of the subdrivers. Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/usbnet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h
index 0662e98fef72..26088feb6608 100644
--- a/include/linux/usb/usbnet.h
+++ b/include/linux/usb/usbnet.h
@@ -148,6 +148,9 @@ struct driver_info {
struct sk_buff *(*tx_fixup)(struct usbnet *dev,
struct sk_buff *skb, gfp_t flags);
+ /* recover from timeout */
+ void (*recover)(struct usbnet *dev);
+
/* early initialization code, can sleep. This is for minidrivers
* having 'subminidrivers' that need to do extra initialization
* right after minidriver have initialized hardware. */