Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3338411imu; Sun, 11 Nov 2018 12:42:23 -0800 (PST) X-Google-Smtp-Source: AJdET5e5BWb/6gUE4N34SG8CVJOOC6D2Fi4xeSw0YWVvPyJ8OYsK1CtCGpy4isCUHEEcV2Ou7xZi X-Received: by 2002:a17:902:74ca:: with SMTP id f10mr1352127plt.273.1541968943452; Sun, 11 Nov 2018 12:42:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968943; cv=none; d=google.com; s=arc-20160816; b=CT32iQwwFPj1FQtRjQ5qK4/oEA85lj6/yndX7UPgsZCH0a5zR0k7JbNLhtzCZNvE5X P0XC5r3EpDr1MVlJ02wYMXjy73thG77ggiRxV3FTyzumpGg14mnKZ7fyDBPAL0r0Pw76 Au2K2pLuQyHg68Pkw/bcuEH8yq4dC2OUcyhwhuHkEAoXayh/HX4y/7laH8SURXeXVp4f qaZXFnd6jkNDDgiIz2do38I+Lt0By8ug2ImCWua6//xizGW2eCfQfSzlagLXBXXP6NO2 MSAHqzQ9dcwfzQCIaneZ4qNlAVl5Rz8XXVdoOR8LVtk9ad/LRpezaMnCJaJ/qOvPcodF 2B9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=BqC28boAGunvLmt/dcLlotbhY6QScvCs0l1Qo7t5N64=; b=Qy3SX4+DzwuGvogYGMqvQ4y3zrHDKs4kC5gl7EsEpDnHQrAOH3A0JTHKqFMwqMp9wJ fj5Qkx3+uM8IbylTL2oUuT3UURhb9UYIg0jOIfx0lTo21dMeWQWlXKag7CM56TdsiTms yPx4FhZNKeGXVhj5qHKguDSoO19lu1mKU4SVIKeubvQzN+VX5Bq4KLXi6XsWiiBw6sX9 Zdu3hwgTaWOjRLpYRSeXj1RdTxSH/iL4twTxptrjPOtuygt4Qhk8r7gajhWtnJemnQ7R okIHgCKyPGNb49OUa5Md9MLJad7Vnyk8jB/thieN3ueNA4f7j8kBsNrSNHJLyw19HQBj DAjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8-v6si14172103pgj.192.2018.11.11.12.42.08; Sun, 11 Nov 2018 12:42:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730099AbeKLGas (ORCPT + 99 others); Mon, 12 Nov 2018 01:30:48 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49400 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729852AbeKLFsD (ORCPT ); Mon, 12 Nov 2018 00:48:03 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsQ-0000l6-9o; Sun, 11 Nov 2018 19:58:34 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsN-0001Ns-Vy; Sun, 11 Nov 2018 19:58:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Sean Young" , "Mauro Carvalho Chehab" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 023/366] media: rc: mce_kbd decoder: fix stuck keys In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Sean Young commit 63039c29f7a4ce8a8bd165173840543c0098d7b0 upstream. The MCE Remote sends a 0 scancode when keys are released. If this is not received or decoded, then keys can get "stuck"; the keyup event is not sent since the input_sync() is missing from the timeout handler. Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab [bwh: Backported to 3.16: s/raw->mce_kbd\.idev/mce_kbd->idev/] Signed-off-by: Ben Hutchings --- drivers/media/rc/ir-mce_kbd-decoder.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/media/rc/ir-mce_kbd-decoder.c +++ b/drivers/media/rc/ir-mce_kbd-decoder.c @@ -130,6 +130,8 @@ static void mce_kbd_rx_timeout(unsigned for (i = 0; i < MCIR2_MASK_KEYS_START; i++) input_report_key(mce_kbd->idev, kbd_keycodes[i], 0); + + input_sync(mce_kbd->idev); } static enum mce_kbd_mode mce_kbd_mode(struct mce_kbd_dec *data)