diff options
author | Vitaly Kuzmichev <vkuzmichev@mvista.com> | 2011-02-11 18:18:35 +0300 |
---|---|---|
committer | Remy Bohmer <linux@bohmer.net> | 2011-02-19 20:32:38 +0100 |
commit | e4ae66608bbf8b7be9162e5933a98905dcf52d6b (patch) | |
tree | 8f07caef2a6be9ceef8a560aabd4795ec2ef61aa /drivers/usb/gadget/rndis.h | |
parent | 7612a43d0803ebd70071894658291300d4acc615 (diff) | |
download | u-boot-imx-e4ae66608bbf8b7be9162e5933a98905dcf52d6b.zip u-boot-imx-e4ae66608bbf8b7be9162e5933a98905dcf52d6b.tar.gz u-boot-imx-e4ae66608bbf8b7be9162e5933a98905dcf52d6b.tar.bz2 |
USB-RNDIS: Send RNDIS state on disconnecting
Add waiting for receiving Ethernet gadget state on the Windows host
side before dropping pullup, but keep it for debug.
Signed-off-by: Vitaly Kuzmichev <vkuzmichev@mvista.com>
Diffstat (limited to 'drivers/usb/gadget/rndis.h')
-rw-r--r-- | drivers/usb/gadget/rndis.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/gadget/rndis.h b/drivers/usb/gadget/rndis.h index 73a1204..d9e3a75 100644 --- a/drivers/usb/gadget/rndis.h +++ b/drivers/usb/gadget/rndis.h @@ -17,6 +17,14 @@ #include "ndis.h" +/* + * By default rndis_signal_disconnect does not send status message about + * RNDIS disconnection to USB host (indicated as cable disconnected). + * Define RNDIS_COMPLETE_SIGNAL_DISCONNECT to send it. + * However, this will cause 1 sec delay on Ethernet device halt. + * Usually you do not need to define it. Mostly usable for debugging. + */ + #define RNDIS_MAXIMUM_FRAME_SIZE 1518 #define RNDIS_MAX_TOTAL_SIZE 1558 |