Wilson Lee b12907f279 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>
2017-11-17 07:44:13 -05:00
..
2016-02-25 19:06:37 -05:00
2017-10-08 16:19:56 -04:00
2016-05-17 09:54:43 -06:00
2017-06-01 07:03:01 -06:00
2017-06-01 07:03:01 -06:00
2017-06-01 07:03:01 -06:00
2017-05-22 04:38:25 +09:00
2017-07-23 09:24:47 -04:00
2017-10-16 09:42:51 -04:00
2014-08-09 11:17:04 -04:00