diff mbox

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

Message ID 1389498110-4790-1-git-send-email-kys@microsoft.com (mailing list archive)
State New, archived
Headers show

Commit Message

KY Srinivasan Jan. 12, 2014, 3:41 a.m. UTC
Handle the 0xE1 prefix.

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

Comments

Dmitry Torokhov Jan. 12, 2014, 7:14 p.m. UTC | #1
On Sat, Jan 11, 2014 at 07:41:50PM -0800, K. Y. Srinivasan wrote:
> Handle the 0xE1 prefix.
> 
> Signed-off-by: K. Y. Srinivasan <kys@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
>
diff mbox

Patch

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;