From: George Spelvin Date: Sun, 11 May 2014 11:12:09 +0000 (-0300) Subject: [media] ati_remote: Check the checksum X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20d7e3ca1be76a13fb4ea22246bb9d0c4c365809;p=pandora-kernel.git [media] ati_remote: Check the checksum An input report is 4 bytes long, but there are only 12 bits of actual payload. The 4 bytes are: data[0] = 0x14 data[1] = data[2] + data[3] + 0xd5 (a checksum byte) data[2] = the raw scancode (plus toggle bit in msbit) data[3] = channel << 4 (the low 4 bits must be zero) Ignore reports with a bad checksum. Signed-off-by: George Spelvin Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed