[PATCH] Input: serio: make HYPERV_KEYBOARD depend on SERIO_I8042=y

2014-08-11 Thread Dexuan Cui
ple can beware of this. Thank Claudio for the initial reporting, investigation and suggesting the fix. Signed-off-by: Dexuan Cui Reported-by: Claudio Latini Cc: K. Y. Srinivasan --- drivers/input/serio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/serio

RE: [PATCH] Input: serio: make HYPERV_KEYBOARD depend on SERIO_I8042=y

2014-08-11 Thread Dexuan Cui
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Decoupling the dependency between hyperv_keyboard and i8042 needs > > non-trivial efforts and is hence a long term goal. > > > > For now, let's make the dependency explicit so people can beware of this. > > You did

RE: [PATCH] Input: serio: make HYPERV_KEYBOARD depend on SERIO_I8042=y

2014-08-12 Thread Dexuan Cui
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Greg KH > > > What exactly needs to be done to fix this "correctly" that is going to > > > take too much work at the moment? > > > > To decouple the dependency between

RE: [PATCH] Input: serio: make HYPERV_KEYBOARD depend on SERIO_I8042=y

2014-08-12 Thread Dexuan Cui
> -Original Message- > From: Dmitry Torokhov > Sent: Wednesday, August 13, 2014 1:55 AM > > > > To decouple the dependency between the hyperv-keyboard and i8042 > > > > modules, I suppose we probably have to re-implement hyperv- > keyboard by > > > > using input_allocate_device(), input_reg

RE: [PATCH] Input: serio: make HYPERV_KEYBOARD depend on SERIO_I8042=y

2014-08-12 Thread Dexuan Cui
> -Original Message- > From: KY Srinivasan > > The Arch users can simply select to build i8042 into the kernel as a > > workaround. > > > > The proper solution is to allow loading libps2 module even if i8042 did not > find > > its device. I wish I could simply drop this i8042_lock_chip and

RE: [PATCH] Input: serio: make HYPERV_KEYBOARD depend on SERIO_I8042=y

2014-08-13 Thread Dexuan Cui
> -Original Message- > From: Dmitry Torokhov > > How about this: > > in libps2.c let's add and export a function pointer > > i8042_lock_chip_if_port_owner: it is used to replace the current > > if (i8042_check_port_owner(ps2dev->serio)) > > i8042_lock_chip(); > > The functi

[PATCH] Input: hyperv-keyboard - implement Type Clipboard Text

2014-08-15 Thread Dexuan Cui
PI for us to query the state of the keyboard. Signed-off-by: Dexuan Cui Cc: K. Y. Srinivasan --- drivers/input/serio/hyperv-keyboard.c | 213 -- 1 file changed, 201 insertions(+), 12 deletions(-) diff --git a/drivers/input/serio/hyperv-keyboard.c b/drivers/input

RE: [PATCH] Input: hyperv-keyboard - implement Type Clipboard Text

2014-08-17 Thread Dexuan Cui
> -Original Message- > From: Dmitry Torokhov > Sent: Saturday, August 16, 2014 0:58 AM > To: Dexuan Cui > > For each char in the string, the host sends 2 events (key down/up with the > > char's UNICODE value) to the guest. > > The patch finds each ch

RE: [PATCH] Input: hyperv-keyboard - implement Type Clipboard Text

2014-08-19 Thread Dexuan Cui
> -Original Message- > From: Dmitry Torokhov > Sent: Tuesday, August 19, 2014 2:52 AM > To: Dexuan Cui > On Mon, Aug 18, 2014 at 03:54:51AM +0000, Dexuan Cui wrote: > > > -Original Message- > > > From: Dmitry Torokhov > > > Sent: Saturday

[PATCH] HID: hyperv: register as a wakeup source

2014-08-01 Thread Dexuan Cui
With this patch, we can move the mouse to wake up the VM after the VM executes "echo freeze > /sys/power/state". This addresses part of https://bugzilla.redhat.com/show_bug.cgi?id=1086100 Cc: K. Y. Srinivasan Signed-off-by: Dexuan Cui --- drivers/hid/hid-hyperv.c | 6 ++ 1 fi

[PATCH] Input: hyperv-keyboard: register as a wakeup source

2014-08-01 Thread Dexuan Cui
With this patch, we can press a key to wake up the VM after the VM executes "echo freeze > /sys/power/state". This addresses part of https://bugzilla.redhat.com/show_bug.cgi?id=1086100 Cc: K. Y. Srinivasan Signed-off-by: Dexuan Cui --- drivers/input/serio/hyperv-ke

RE: [PATCH] Input: hyperv-keyboard: register as a wakeup source

2014-08-06 Thread Dexuan Cui
> -Original Message- > From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] > Sent: Thursday, August 7, 2014 4:34 AM > To: Dexuan Cui > On Fri, Aug 01, 2014 at 07:28:24AM -0700, Dexuan Cui wrote: > > With this patch, we can press a key to wake up the VM af

RE: [PATCH] Input: hyperv-keyboard: register as a wakeup source

2014-08-06 Thread Dexuan Cui
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Dmitry Torokhov > > Hi Dmitry, > > Sorry, I didn't realize it's not public... :-) > > > > I'll remove the line and re-send the patch. > > > > No need to resend, I alr