Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: speakup: fix speakup-r regression

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>

authored by

covici@ccs.covici.com and committed by
Greg Kroah-Hartman
b1d562ac 8b581e49

+1
+1
drivers/staging/speakup/fakekey.c
··· 81 81 __this_cpu_write(reporting_keystroke, true); 82 82 input_report_key(virt_keyboard, KEY_DOWN, PRESSED); 83 83 input_report_key(virt_keyboard, KEY_DOWN, RELEASED); 84 + input_sync(virt_keyboard); 84 85 __this_cpu_write(reporting_keystroke, false); 85 86 86 87 /* reenable preemption */