diff options
author | covici@ccs.covici.com <covici@ccs.covici.com> | 2015-05-20 05:44:11 -0400 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-10-27 22:14:28 -0400 |
commit | 8a28d52c11c9a4a52af00bb67a928d1ab5c85f16 (patch) | |
tree | c3bab86edbb0164a0e25674d8a418de01d79270c | |
parent | d2adffd701eefc29c06cd10494e4bdb2bc70fe3b (diff) | |
download | lwn-8a28d52c11c9a4a52af00bb67a928d1ab5c85f16.tar.gz lwn-8a28d52c11c9a4a52af00bb67a928d1ab5c85f16.zip |
staging: speakup: fix speakup-r regression
[ Upstream commit b1d562acc78f0af46de0dfe447410bc40bdb7ece ]
Here is a patch to make speakup-r work again.
It broke in 3.6 due to commit 4369c64c79a22b98d3b7eff9d089196cd878a10a
"Input: Send events one packet at a time)
The problem was that the fakekey.c routine to fake a down arrow no
longer functioned properly and putting the input_sync fixed it.
Fixes: 4369c64c79a22b98d3b7eff9d089196cd878a10a
Cc: stable <stable@vger.kernel.org>
Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: John Covici <covici@ccs.covici.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
-rw-r--r-- | drivers/staging/speakup/fakekey.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/speakup/fakekey.c b/drivers/staging/speakup/fakekey.c index 4299cf45f947..5e1f16c36b49 100644 --- a/drivers/staging/speakup/fakekey.c +++ b/drivers/staging/speakup/fakekey.c @@ -81,6 +81,7 @@ void speakup_fake_down_arrow(void) __this_cpu_write(reporting_keystroke, true); input_report_key(virt_keyboard, KEY_DOWN, PRESSED); input_report_key(virt_keyboard, KEY_DOWN, RELEASED); + input_sync(virt_keyboard); __this_cpu_write(reporting_keystroke, false); /* reenable preemption */ |