Linux backports project
 help / color / mirror / Atom feed
* [PATCH] backports: add "MBIM Extended Functional Descriptor" structure definition
@ 2017-02-11 23:14 Arend van Spriel
  2017-02-14  9:47 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Arend van Spriel @ 2017-02-11 23:14 UTC (permalink / raw)
  To: Johannes Berg; +Cc: backports, Arend van Spriel

commit 477c6d345604 ("backports: add USB_CDC_MBIM_EXTENDED_TYPE if needed")
added define but the structure definition that goes with it is also needed.
As they were introduced in the same kernel version we can add the structure
with the same #ifndef USB_CDC_MBIM_EXTENDED_TYPE.

Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
---
 backport/backport-include/linux/usb/cdc.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/backport/backport-include/linux/usb/cdc.h b/backport/backport-include/linux/usb/cdc.h
index 2097949..5ad31bf 100644
--- a/backport/backport-include/linux/usb/cdc.h
+++ b/backport/backport-include/linux/usb/cdc.h
@@ -15,6 +15,17 @@
 
 #ifndef USB_CDC_MBIM_EXTENDED_TYPE
 #define USB_CDC_MBIM_EXTENDED_TYPE 0x1c
+
+/* "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));
 #endif
 
 /*
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in

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

end of thread, other threads:[~2017-02-14  9:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-11 23:14 [PATCH] backports: add "MBIM Extended Functional Descriptor" structure definition Arend van Spriel
2017-02-14  9:47 ` Johannes Berg

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