USB: RNDIS gadget, fix issues talking from PXA
commit1f5ab002a341befd645e76fa5bd29a65c8e8138c
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 19 Jun 2009 10:09:04 +0000 (19 03:09 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 21:39:18 +0000 (30 14:39 -0700)
treef56dbeda6cf765ab52aa926dfb92e13c774c6e64
parent928d6bb8eeeb78e8653aa908f93e0263c6f71ad2
USB: RNDIS gadget, fix issues talking from PXA

commit 4e19f220d4e84f5728cb7edde36352ab425cfba4 upstream.

The reworked Ethernet gadget has an RNDIS interop problem when used
with the CDC subset driver ... e.g. on PXA 2xx and 3xx hardware,
which currently has a hard time talking to MS-Windows hosts.

The issue is that Microsoft requires USB_CLASS_COMM.  Fix by tweaking
the CDC subset driver to not switch to USB_CLASS_VENDOR_SPEC if RNDIS
is used in some other device configuration.

[ UPDATED:  some "statements" were comma-terminated; fix that. ]

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Aric Blumer <aric@sdgsystems.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ether.c