Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PATCH 1/1] Drivers: input: serio:hyperv-keyoard: Handle 0xE1 prefix

0 views
Skip to first unread message

K. Y. Srinivasan

unread,
Jan 11, 2014, 10:00:02 PM1/11/14
to
Handle the 0xE1 prefix.

Signed-off-by: K. Y. Srinivasan <k...@microsoft.com>
---
drivers/input/serio/hyperv-keyboard.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/input/serio/hyperv-keyboard.c b/drivers/input/serio/hyperv-keyboard.c
index 3a83c3c..6132619 100644
--- a/drivers/input/serio/hyperv-keyboard.c
+++ b/drivers/input/serio/hyperv-keyboard.c
@@ -160,7 +160,9 @@ static void hv_kbd_on_receive(struct hv_device *hv_dev,
if (info & IS_E0)
serio_interrupt(kbd_dev->hv_serio,
XTKBD_EMUL0, 0);
-
+ if (info & IS_E1)
+ serio_interrupt(kbd_dev->hv_serio,
+ XTKBD_EMUL1, 0);
scan_code = __le16_to_cpu(ks_msg->make_code);
if (info & IS_BREAK)
scan_code |= XTKBD_RELEASE;
--
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Dmitry Torokhov

unread,
Jan 12, 2014, 2:20:02 PM1/12/14
to
On Sat, Jan 11, 2014 at 07:41:50PM -0800, K. Y. Srinivasan wrote:
> Handle the 0xE1 prefix.
>
> Signed-off-by: K. Y. Srinivasan <k...@microsoft.com>

Applied, thank you.

> ---
> drivers/input/serio/hyperv-keyboard.c | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/input/serio/hyperv-keyboard.c b/drivers/input/serio/hyperv-keyboard.c
> index 3a83c3c..6132619 100644
> --- a/drivers/input/serio/hyperv-keyboard.c
> +++ b/drivers/input/serio/hyperv-keyboard.c
> @@ -160,7 +160,9 @@ static void hv_kbd_on_receive(struct hv_device *hv_dev,
> if (info & IS_E0)
> serio_interrupt(kbd_dev->hv_serio,
> XTKBD_EMUL0, 0);
> -
> + if (info & IS_E1)
> + serio_interrupt(kbd_dev->hv_serio,
> + XTKBD_EMUL1, 0);
> scan_code = __le16_to_cpu(ks_msg->make_code);
> if (info & IS_BREAK)
> scan_code |= XTKBD_RELEASE;
> --
> 1.7.4.1
>

--
Dmitry
0 new messages