summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorWilson Lee <wilson.lee@ni.com>2017-11-03 09:39:51 +0300
committerTom Rini <trini@konsulko.com>2017-11-17 15:44:13 +0300
commitb12907f279ca25acb79838ede89905ff5c1dfcc5 (patch)
treeed9a3fade7aa26adb9f6081664e2d90489bf3ccf /doc
parent21f4486faa5db1013237cc664ab3590ba75889e5 (diff)
downloadu-boot-b12907f279ca25acb79838ede89905ff5c1dfcc5.tar.xz
serial: nulldev: Implement "pending" function to fix tstc return "true"
In U-boot, serial_tstc was use to determine is there have a character in serial console that pending for read. If there is no "pending" function implemented in serial driver, the serial-uclass will return "true(1)" to indicate there have a character pending to read. Thus, read a character from nulldev serial will result in continuous getting -EAGAIN return which might lead system to hang. This commit is to fix a bug in nulldev serial which implement "pending" function in nulldev serial to always indicate there is no character in console that pending for read. Signed-off-by: Wilson Lee <wilson.lee@ni.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Keng Soon Cheah <keng.soon.cheah@ni.com> Cc: Chen Yee Chew <chen.yee.chew@ni.com> Cc: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions