serial: sh-sci: mask SCTFDR/RFDR according to fifosize
authorTakashi Yoshii <takashi.yoshii.zj@renesas.com>
Fri, 16 Nov 2012 01:53:11 +0000 (10:53 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 02:02:37 +0000 (18:02 -0800)
commit63f7ad115ef35b711f3ae2b46a07acbf1ca3bdfd
tree1d546005b103612d5dd3ba5fec3f50cfca4a3fe8
parent9d482cc353bd0391730730b26e4c2938dc90e477
serial: sh-sci: mask SCTFDR/RFDR according to fifosize

Current mask 0xff to SCTFDR/RFDR damages SCIFB, because the
registers on SCIFB have 9-bit data (0 to 256).

This patch changes the mask according to port->fifosize.
Though I'm not sure if the mask is really needed (I don't know if
there are variants which have non-zero upper bits), it is safer.

Signed-off-by: Takashi Yoshii <takashi.yoshii.zj@renesas.com>
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c
This page took 0.026647 seconds and 5 git commands to generate.