]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tty/serial: at91: correct check of buf used in DMA
authorLeilei Zhao <leilei.zhao@atmel.com>
Fri, 27 Feb 2015 08:07:14 +0000 (16:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:51:47 +0000 (03:51 +0100)
commit2c2770541040318fa6ac0ac4424d8af6dd0709bf
tree11bc0ea4048d038223f08f0c531f3ce2355b2f53
parent1c9be31015747b0a981804438b269cfb0f49aa8a
tty/serial: at91: correct check of buf used in DMA

We only use buf of ring In DMA rx function while using buf of xmit
in DMA tx function. So in DMA rx we need definitively to check the
buf of ring which is corresponding to DMA rx function. And use macro
PAGE_ALIGNED to simplify the expression.

Signed-off-by: Leilei Zhao <leilei.zhao@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c