aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorYoungmin Nam <[email protected]>2016-03-05 19:36:32 +0900
committerGreg Kroah-Hartman <[email protected]>2016-03-07 16:11:14 -0800
commitaba06e922234c72ac7f98e838b336b20228c232b (patch)
treed54f1708123e3a183725a6471a8919a198c129c5 /lib/mpi/mpi-bit.c
parentbb70002cb7430252c6c8e3b19ad66957f253e667 (diff)
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: Youngmin Nam <[email protected]> Reviewed-by: Jung-Ick Guack <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions