aboutsummaryrefslogtreecommitdiff
path: root/include/imx_lpi2c.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2018-08-03 13:38:43 +0200
committerTom Rini <trini@konsulko.com>2018-09-10 20:20:34 -0400
commitd3bb7858545fa54ff3c591570f1d36234ecde2bf (patch)
tree38ccac62ceb5957d25a71707c3423b2fde263d9a /include/imx_lpi2c.h
parentfe852bc109f13664b9d733501f2c4ae33a4c7d3e (diff)
downloadu-boot-d3bb7858545fa54ff3c591570f1d36234ecde2bf.zip
u-boot-d3bb7858545fa54ff3c591570f1d36234ecde2bf.tar.gz
u-boot-d3bb7858545fa54ff3c591570f1d36234ecde2bf.tar.bz2
serial: protect access to serial rx buffer
Add test to avoid access to rx buffer when this buffer is empty. In this case directly call getc() function to avoid issue when tstc() is not called. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/imx_lpi2c.h')
0 files changed, 0 insertions, 0 deletions