Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758206AbcC2UK4 (ORCPT ); Tue, 29 Mar 2016 16:10:56 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36845 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753322AbcC2UKx (ORCPT ); Tue, 29 Mar 2016 16:10:53 -0400 From: Gabriele Mazzotta To: jikos@kernel.org Cc: benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, bleung@chromium.org, Gabriele Mazzotta Subject: [PATCH] HID: multitouch: Synchronize MT frame on reset_resume Date: Tue, 29 Mar 2016 22:10:41 +0200 Message-Id: <1459282241-25154-1-git-send-email-gabriele.mzt@gmail.com> X-Mailer: git-send-email 2.8.0.rc3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 708 Lines: 23 input_mt_get_slot_by_key() requires input_mt_sync_frame() to be called at each frame. Do it when releasing the touches, or else we won't get a proper slot number after mt_reset_resume(). Signed-off-by: Gabriele Mazzotta --- drivers/hid/hid-multitouch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 25d3c43..c741f5e 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1169,6 +1169,7 @@ static void mt_release_contacts(struct hid_device *hid) MT_TOOL_FINGER, false); } + input_mt_sync_frame(input_dev); input_sync(input_dev); } } -- 2.8.0.rc3