Skip to content
Commit aba06e92 authored by Youngmin Nam's avatar Youngmin Nam Committed by Greg Kroah-Hartman
Browse files

serial: samsung: optimize UART rx fifo access routine



This patch optimizes UART rx fifo access routine by reading UART SFR
when necessary. At first, the "fifocnt" variable will be initialized
as Rx FIFO count. So we don't need to access UFSTAT(FIFO status) register
every time to check FIFO count because we know that count with "fifocnt".
After all data were read out from Rx FIFO, the "fifocnt" will be set as 0.
Lastly, UFSTAT will be accessed again to check whether the data remains
by any chance.

Signed-off-by: default avatarYoungmin Nam <ym0914@gmail.com>
Reviewed-by: default avatarJung-Ick Guack <ji.guack@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb70002c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment