USB: Fix CDC EEM host driver 'sentinel' CRC validation
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Mon, 10 Aug 2009 21:46:59 +0000 (16:46 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:34 +0000 (06:46 -0700)
commit9ca33a0f1abdefea3811666d9e87af11fd0af6c6
treebba1cc2692b38f9a3d76d16910d9575d1d5b0960
parent5429c7316577fcd859f6b53e10884bb8e1e3bcef
USB: Fix CDC EEM host driver 'sentinel' CRC validation

This is an alternate solution to the EEM 'sentinel' CRC valiation issue.

CDC EEM allows using a 'sentinel' ethernet frame CRC of 0xdeadbeef in
place of a real CRC.  The 'sentinel' value is transmitted in big-endian
order whereas the normal CRC is little-endian.  This patch handles both
cases appropriately.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/usb/cdc_eem.c