USB: gadget: fix EEM gadget CRC usage
authorBrian Niebuhr <bniebuhr3@gmail.com>
Mon, 25 Jan 2010 20:45:40 +0000 (14:45 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Feb 2010 23:11:10 +0000 (15:11 -0800)
commit31e5d4abceaa3d11ff583ddf76ec292e90eacb7d
treeb5a8132979a4fb5bcfc07f9f2409828e6081cc16
parentdd091c7b3280d4811b855d034fa91519fd3485ef
USB: gadget: fix EEM gadget CRC usage

eem_wrap() is sending a sentinel CRC, but it didn't indicate that to
the host, it should zero bit 14 (bmCRC) in the EEM packet header,
instead of setting it.

Also remove a redundant crc calculation in eem_unwrap().

Signed-off-by: Steve Longerbeam <stevel@netspectrum.com>
Acked-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_eem.c