]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
serial: st-asc: Fix SysRq char handling
authorDaniel Thompson <daniel.thompson@linaro.org>
Fri, 28 Mar 2014 10:53:10 +0000 (10:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 21:17:44 +0000 (14:17 -0700)
commitc3c00b6f7f79be1dd1aa0969ee0ab7d1f79eda79
tree0041fb4aa589d40bd5fed5f21b24e550dcf3e0bc
parent2f310b8e418ac5eb3833a9f36791c24a97f1f557
serial: st-asc: Fix SysRq char handling

This driver, like several others, uses the upper bits of the character
to track both real and dummy state. Unfortunately it neglects to mask
these bits properly when passing the character data around. This means
neither break detection nor sysrq character handling work correctly.

This patch adds the requires masking and has been tested to confirm
that it correctly handles magic sysrq sequences on ST's B2020 board.

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/st-asc.c