Re: [PATCH] [RFC]: drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-17 Thread Jiri Slaby
On 08/17/2012 12:06 AM, mathieu.poir...@linaro.org wrote: > +static int do_keyreset_event(struct sysrq_state *state, > + unsigned int code, int value) > +{ > + int ret; > + int processed = 0; > + > + /* Is the code is of interestest to us */ > +

Re: [PATCH] [RFC]: drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-17 Thread Alan Cox
> This functionality comes from the keyreset driver submitted by > Arve Hjønnevåg in the Android kernel. It is sent out as an initial > draft and comments are welcomed. Looks reasonable to me as a basis. Alan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH] [RFC]: drivers/tty: Folding Android's keyreset driver in sysRQ

2012-08-16 Thread mathieu . poirier
From: "Mathieu J. Poirier" This patch adds keyreset functionality to the sysrq driver. It allows certain button/key combinations to be used in order to trigger device resets. The first time the key-combo is detected a work function that syncs the filesystems is scheduled and the kernel rebooted.