Skip to content

Commit

Permalink
hid-ft260: fix i2c regression
Browse files Browse the repository at this point in the history
Fix i2c regression in ft260_raw_event introduced by uart patch.
It caused wrong printout per every hid input report:

[21912.237393] ft260 0003:0403:6030.000C: unhandled report 0xde
[21912.247405] ft260 0003:0403:6030.000C: unhandled report 0xde
[21912.249403] ft260 0003:0403:6030.000C: unhandled report 0xd1
[21912.275399] ft260 0003:0403:6030.000C: unhandled report 0xde
[21912.285404] ft260 0003:0403:6030.000C: unhandled report 0xde
[21912.287403] ft260 0003:0403:6030.000C: unhandled report 0xd1
[21912.315406] ft260 0003:0403:6030.000C: unhandled report 0xde
[21912.326390] ft260 0003:0403:6030.000C: unhandled report 0xde
[21912.327402] ft260 0003:0403:6030.000C: unhandled report 0xd1

Signed-off-by: Michael Zaidman <michael.zaidman@gmail.com>
  • Loading branch information
MichaelZaidman committed Jan 13, 2024
1 parent fa8b63f commit 9a8e145
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hid-ft260.c
Original file line number Diff line number Diff line change
Expand Up @@ -1755,6 +1755,8 @@ static int ft260_raw_event(struct hid_device *hdev, struct hid_report *report,
if (dev->read_idx == dev->read_len)
complete(&dev->wait);

return 0;

} else if (xfer->length > FT260_RD_DATA_MAX) {
hid_err(hdev, "Received data too long (%d)\n", xfer->length);
return -EBADR;
Expand Down

0 comments on commit 9a8e145

Please sign in to comment.