Skip to content

Commit

Permalink
input: ts: sec_ts: Remove spam from event buffer empty
Browse files Browse the repository at this point in the history
On some devices like Xperia 10 II this can happen dozens of items
just by touching the screen, remove the message and explain.

Fixes: sonyxperiadev/bug_tracker#738
Signed-off-by: Björn Bidar <bjorn.bidar@jolla.com>
  • Loading branch information
Thaodan committed Dec 16, 2022
1 parent 77b8844 commit 6e1184c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/input/touchscreen/sec_ts/sec_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,16 @@ static void sec_ts_read_event(struct sec_ts_data *ts)
read_event_buff[0][6], read_event_buff[0][7]);

if (read_event_buff[0][0] == 0) {
#if 0
/* This message is triggered by a bug since the event buffer isn't supposed
to be empty. However since the bug has no real impact so far and the message
is filling up the kernel logs we disable the message.
The note here is left as an explanation of the change in case there's a fix
in the future.
*/
dev_info_ratelimited(&ts->client->dev, "%s: event buffer is empty\n", __func__);
#endif
return;
}

Expand Down

0 comments on commit 6e1184c

Please sign in to comment.