From patchwork Wed Aug 23 18:10:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liang Yan X-Patchwork-Id: 110862 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp7293351ybm; Wed, 23 Aug 2017 11:10:58 -0700 (PDT) X-Received: by 10.99.126.80 with SMTP id o16mr3598978pgn.378.1503511858019; Wed, 23 Aug 2017 11:10:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503511858; cv=none; d=google.com; s=arc-20160816; b=cXs2Jq56xFkJrx4LMFlPcbgCKt72CyYrQaB78QaNGPBa8LZkucUKLUqS6eLQleUVDl P5yzFsTSp9lCJtfAgxYv4fHsQt/Q0RDOp5JnVRXsYgZtDlANSez/j+AUbEsIFtpidVTk nV9RZMBhhUhol60yGUMUfcHh6KoHGj4ba1c31G7KrPA4j4yKXHoPaIO83Ge77Fg8I4bE 0VJyiBSYB0NWvillSMI9kvmvgSPKCE+qH732oiwpy2PAc3a8CQu4dLINYoW2ZJPK7aWQ 4MAkiQ2RxrZPqE2q+l57Uvtmc5YD+XIvv4lDUGcOQIaQF+yXkPtNF1dqaRS0/higY9/X 4NwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=WSv/JSv16Ki0fubLyXU+/ChgFWWHJE3FOE2L+iQU9ao=; b=vbfdmwSWScFZy8COljpCeBYkpa0R3Joowndom+uFvJaB3dWe3Q36OFpXJI2ioECf10 K0BNCyDjXWTDLfZdBwxJ5QZ/HJoGIxbVyGTr7aOnw/TNPVQqVB+C2haA2b6+fiq+cp7d IShNYB5Mkj+tS8sCLcujyfmf85HhSeFcwsONdwRNpz4zmtvhquAHSRtizcJEWutSvR+k XWvdHPlJzLTQ+QfIe6tbbBvoqxKyztc/5YMfcpkRMCo7BFbuarqsvLOi2ktsFrEujcJp bmeXKUvcul4oymj5IdpE1gpaKoQ+Bkx/AJmOOJEikc5Rz8JpDBXOajZlhUliz3XeDLJh eUuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-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 e3si1381191pgu.37.2017.08.23.11.10.57 for ; Wed, 23 Aug 2017 11:10:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-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-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932394AbdHWSK4 (ORCPT ); Wed, 23 Aug 2017 14:10:56 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:59186 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932111AbdHWSK4 (ORCPT ); Wed, 23 Aug 2017 14:10:56 -0400 Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Wed, 23 Aug 2017 20:10:55 +0200 Received: from linux-gp66.suse.de (nwb-a10-snat.microfocus.com [10.120.13.201]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Wed, 23 Aug 2017 19:10:33 +0100 From: Liang Yan To: dmitry.torokhov@gmail.com Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH] input/xen-kbdfront: Enable auto repeat for xen keyboard frontend driver Date: Wed, 23 Aug 2017 14:10:26 -0400 Message-Id: <20170823181026.8084-1-lyan@suse.com> X-Mailer: git-send-email 2.14.1 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Long pressed key could not show right in XEN vncviewer after tigervnc client changed the way how to send repeat keys, from "Down Up Down Up ..." to "Down Down ... Up". By enable EV_REP bit here, XEN keyboard device will trigger default auto repeat process from input subsystem, and make auto repeat keys work correctly. Signed-off-by: Liang Yan --- drivers/input/misc/xen-kbdfront.c | 1 + 1 file changed, 1 insertion(+) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/misc/xen-kbdfront.c b/drivers/input/misc/xen-kbdfront.c index fa130e7b734c..0dce9830e2f4 100644 --- a/drivers/input/misc/xen-kbdfront.c +++ b/drivers/input/misc/xen-kbdfront.c @@ -248,6 +248,7 @@ static int xenkbd_probe(struct xenbus_device *dev, kbd->id.product = 0xffff; __set_bit(EV_KEY, kbd->evbit); + __set_bit(EV_REP, kbd->evbit); for (i = KEY_ESC; i < KEY_UNKNOWN; i++) __set_bit(i, kbd->keybit); for (i = KEY_OK; i < KEY_MAX; i++)