| Age | Commit message (Collapse) | Author |
|
This adds another CDC descriptor type to <linux/usb_cdc.h>; the main claim
to fame for this is that some Motorola phones include it. It's not currently
needed by any driver code; included for completeness.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
|
With older gcc's:
In file included from drivers/usb/class/cdc-acm.c:63:
include/linux/usb_cdc.h:117: field `bDetailData' has incomplete type
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
diff -puN include/linux/usb_cdc.h~usb_cdc-build-fix include/linux/usb_cdc.h
|
|
This patch resolves a recent problem with the Zaurus C-860 support.
A change to correct handling of Zaurii that are lying about their support
for the "CDC Ethernet" class specification broke the C-860, which tells
an entirely different lie (that it supports "CDC MDLM", providing access
to a cell phone modem). The code expecting it to be telling a lie about
CDC Ethernet support naturally misbehaved. (Sharp should straighten out
its story. The 2.6 OpenZaurus kernels don't have any such issues...)
The fix is just to recognize this bogus MDLM stuff and ignore it.
This patch also includes the two MDLM descriptors in <linux/usb_cdc.h>
although they're not currently used.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
|
This adds a new <linux/usb_cdc.h> header file, with definitions for the
CDC class constants and structures used by various drivers. For now
this only has the ones Linux actually uses. Each one is used in at least
two or three different drivers, so sharing the definitions helps reduce
errors. It's also a good excuse to make sure there "sparse -Wbitwise"
doesn't report errors in how these are used!
Patches to those drivers will follow as I have time to verify the updates:
- CDC ACM (for serial lines and modems)
* Host side support in "cdc-acm"
* Peripheral side support in "g_serial"
- CDC Ethernet (cable modems, PDAs, etc)
* Host side support in "usbnet"
* Peripheral side support in "g_ether"
Also, Microsoft's RNDIS is a variant of CDC ACM, providing an Ethernet model
and implemented by g_ether; it uses these definitions too.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|