public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] USB: cdc: add MBIM extended functional descriptor structure
@ 2014-03-16  6:49 Ben Chan
  2014-03-16  6:49 ` [PATCH 2/2] net: cdc_ncm: respect operator preferred MTU reported by MBIM Ben Chan
  2014-03-17 23:07 ` [PATCH 1/2] USB: cdc: add MBIM extended functional descriptor structure Greg Kroah-Hartman
  0 siblings, 2 replies; 10+ messages in thread
From: Ben Chan @ 2014-03-16  6:49 UTC (permalink / raw)
  To: linux-kernel, linux-usb, netdev, Oliver Neukum
  Cc: Greg Kroah-Hartman, Bjørn Mork, Greg Suarez

This patch adds the MBIM extended functional descriptor structure
defined in "Universal Serial Bus Communications Class Subclass
Specification for Mobile Broadband Interface Model, Revision 1.0,
Errata-1" published by USB-IF.

Signed-off-by: Ben Chan <benchan@chromium.org>
---
 include/uapi/linux/usb/cdc.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/include/uapi/linux/usb/cdc.h b/include/uapi/linux/usb/cdc.h
index f35aa0a..b6a9cdd 100644
--- a/include/uapi/linux/usb/cdc.h
+++ b/include/uapi/linux/usb/cdc.h
@@ -56,6 +56,7 @@
 #define USB_CDC_OBEX_TYPE		0x15
 #define USB_CDC_NCM_TYPE		0x1a
 #define USB_CDC_MBIM_TYPE		0x1b
+#define USB_CDC_MBIM_EXTENDED_TYPE	0x1c
 
 /* "Header Functional Descriptor" from CDC spec  5.2.3.1 */
 struct usb_cdc_header_desc {
@@ -205,6 +206,17 @@ struct usb_cdc_mbim_desc {
 	__u8    bmNetworkCapabilities;
 } __attribute__ ((packed));
 
+/* "MBIM Extended Functional Descriptor" from CDC MBIM spec 1.0 errata-1 */
+struct usb_cdc_mbim_extended_desc {
+	__u8	bLength;
+	__u8	bDescriptorType;
+	__u8	bDescriptorSubType;
+
+	__le16	bcdMBIMExtendedVersion;
+	__u8	bMaxOutstandingCommandMessages;
+	__le16	wMTU;
+} __attribute__ ((packed));
+
 /*-------------------------------------------------------------------------*/
 
 /*
-- 
1.9.0.279.gdc9e3eb


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-03-19 20:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-16  6:49 [PATCH 1/2] USB: cdc: add MBIM extended functional descriptor structure Ben Chan
2014-03-16  6:49 ` [PATCH 2/2] net: cdc_ncm: respect operator preferred MTU reported by MBIM Ben Chan
2014-03-17  9:42   ` Bjørn Mork
2014-03-17 19:11     ` Ben Chan
2014-03-17 21:27       ` Bjørn Mork
2014-03-18  0:46         ` Ben Chan
2014-03-18  1:41           ` David Miller
2014-03-18  4:00             ` Ben Chan
2014-03-19 20:04               ` David Miller
2014-03-17 23:07 ` [PATCH 1/2] USB: cdc: add MBIM extended functional descriptor structure Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox