OSDN Git Service

tty: serial: tegra: Optimize DMA buffer synchronization
authorDmitry Osipenko <digetx@gmail.com>
Sun, 12 Jan 2020 18:09:19 +0000 (21:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 13:07:50 +0000 (14:07 +0100)
commit5c116fdf561f0e0e549f10c97c3ddb843b3334a0
treece559109a0f80031a703ddc5ab16ffcac04042c3
parentd5e3fadb70125c6c41f692cf1c0e626c12e11de1
tty: serial: tegra: Optimize DMA buffer synchronization

Synchronize only the dirty part of DMA buffer in order to avoid
unnecessary overhead of syncing of the clean part, which is the case
of every serial DMA transfer in practice.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20200112180919.5194-3-digetx@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c