Revision ef6eaf27274c0351f7059163918f3795da13199c authored by Jason Andryuk on 22 June 2018, 16:25:49 UTC, committed by Jiri Kosina on 09 July 2018, 12:26:47 UTC
Commit ac75a041048b ("HID: i2c-hid: fix size check and type usage") started writing messages when the ret_size is <= 2 from i2c_master_recv. However, my device i2c-DLL07D1 returns 2 for a short period of time (~0.5s) after I stop moving the pointing stick or touchpad. It varies, but you get ~50 messages each time which spams the log hard. [ 95.925055] i2c_hid i2c-DLL07D1:01: i2c_hid_get_input: incomplete report (83/2) This has also been observed with a i2c-ALP0017. [ 1781.266353] i2c_hid i2c-ALP0017:00: i2c_hid_get_input: incomplete report (30/2) Only print the message when ret_size is totally invalid and less than 2 to cut down on the log spam. Fixes: ac75a041048b ("HID: i2c-hid: fix size check and type usage") Reported-by: John Smith <john-s-84@gmx.net> Cc: stable@vger.kernel.org Signed-off-by: Jason Andryuk <jandryuk@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 3b8d573
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 361 bytes |
compat.c | -rw-r--r-- | 2.2 KB |
ipc_sysctl.c | -rw-r--r-- | 5.4 KB |
mq_sysctl.c | -rw-r--r-- | 2.9 KB |
mqueue.c | -rw-r--r-- | 39.0 KB |
msg.c | -rw-r--r-- | 29.7 KB |
msgutil.c | -rw-r--r-- | 3.6 KB |
namespace.c | -rw-r--r-- | 4.8 KB |
sem.c | -rw-r--r-- | 60.9 KB |
shm.c | -rw-r--r-- | 41.6 KB |
syscall.c | -rw-r--r-- | 4.7 KB |
util.c | -rw-r--r-- | 22.6 KB |
util.h | -rw-r--r-- | 8.9 KB |
Computing file changes ...