From owner-freebsd-usb@FreeBSD.ORG Thu Oct 31 01:00:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9266E7D4 for ; Thu, 31 Oct 2013 01:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 80B22214C for ; Thu, 31 Oct 2013 01:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9V101f8068133 for ; Thu, 31 Oct 2013 01:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9V101MQ068132; Thu, 31 Oct 2013 01:00:01 GMT (envelope-from gnats) Date: Thu, 31 Oct 2013 01:00:01 GMT Message-Id: <201310310100.r9V101MQ068132@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Adrian Chadd Subject: Re: usb/183505: [usb] Arduino Leonardo exposes three interface descriptors but no modem is attached to the first one (bInterfaceSubClass=2) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Adrian Chadd List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Oct 2013 01:00:01 -0000 The following reply was made to PR usb/183505; it has been noted by GNATS. From: Adrian Chadd To: Mike Meyer Cc: "bug-followup@freebsd.org" Subject: Re: usb/183505: [usb] Arduino Leonardo exposes three interface descriptors but no modem is attached to the first one (bInterfaceSubClass=2) Date: Wed, 30 Oct 2013 17:58:23 -0700 Here's a patch that fixes it: === adrian@lucy-11i386:~/work/freebsd/head/src % svn diff sys/dev/usb Index: sys/dev/usb/serial/umodem.c =================================================================== --- sys/dev/usb/serial/umodem.c (revision 257371) +++ sys/dev/usb/serial/umodem.c (working copy) @@ -128,6 +128,9 @@ {USB_IFACE_CLASS(UICLASS_CDC), USB_IFACE_SUBCLASS(UISUBCLASS_ABSTRACT_CONTROL_MODEL), USB_IFACE_PROTOCOL(UIPROTO_CDC_AT)}, + {USB_IFACE_CLASS(UICLASS_CDC), + USB_IFACE_SUBCLASS(UISUBCLASS_ABSTRACT_CONTROL_MODEL), + USB_IFACE_PROTOCOL(UIPROTO_CDC_NONE)}, /* Huawei Modem class match */ {USB_IFACE_CLASS(UICLASS_CDC), USB_IFACE_SUBCLASS(UISUBCLASS_ABSTRACT_CONTROL_MODEL), Index: sys/dev/usb/usb.h =================================================================== --- sys/dev/usb/usb.h (revision 257371) +++ sys/dev/usb/usb.h (working copy) @@ -441,6 +441,7 @@ #define UISUBCLASS_ETHERNET_EMULATION_MODEL 12 #define UISUBCLASS_NETWORK_CONTROL_MODEL 13 +#define UIPROTO_CDC_AT 0 #define UIPROTO_CDC_AT 1 #define UICLASS_HID 0x03 === Reading the spec,