aboutsummaryrefslogtreecommitdiff
path: root/drivers/tty/tty_ioctl.c
diff options
context:
space:
mode:
authorGravatar Mingrui Ren <jiladahe1997@gmail.com> 2020-12-02 15:25:43 +0800
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2020-12-04 16:54:20 +0100
commitaef1b6a27970607721a618a0b990716ca8dbbf97 (patch)
treeac97b7ba08dc9039459c8d0f9133956aa4c095a2 /drivers/tty/tty_ioctl.c
parenttty : serial: jsm: Fixed file by adding spacing (diff)
downloadlinux-aef1b6a27970607721a618a0b990716ca8dbbf97.tar.gz
linux-aef1b6a27970607721a618a0b990716ca8dbbf97.tar.bz2
linux-aef1b6a27970607721a618a0b990716ca8dbbf97.zip
tty/serial/imx: Enable TXEN bit in imx_poll_init().
As described in Documentation, poll_init() is called by kgdb to initialize hardware which supports both poll_put_char() and poll_get_char(). It's necessary to enable TXEN bit, otherwise, it will cause hardware fault and kernel panic when calling imx_poll_put_char(). Generally, if use /dev/ttymxc0 as kgdb console as well as system console, ttymxc0 is initialized early by system console which does enable TXEN bit.But when use /dev/ttymxc1 as kgbd console, ttymxc1 is only initialized by imx_poll_init() cannot enable the TXEN bit, which will cause kernel panic. Signed-off-by: Mingrui Ren <jiladahe1997@gmail.com> Link: https://lore.kernel.org/r/20201202072543.151-1-972931182@qq.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_ioctl.c')
0 files changed, 0 insertions, 0 deletions