u-boot/drivers/serial
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
..
altera_jtag_uart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
altera_uart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
arm_dcc.c serial: dcc: Move driver to DM 2016-02-25 19:06:37 -05:00
atmel_usart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
atmel_usart.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Kconfig serial: stm32x7: add STM32F4 support 2017-10-08 16:19:56 -04:00
lpc32xx_hsuart.c serial: lpc32xx hsuart: port driver to driver model 2016-01-13 21:05:22 -05:00
Makefile serial: nulldev: Add nulldev serial driver 2017-09-13 09:24:24 -04:00
mcfuart.c m68k: add DM model serial driver 2016-05-17 09:54:43 -06:00
ns16550.c Revert "serial: ns16550: Add RX interrupt buffer support" 2017-08-24 11:00:47 +08:00
sandbox.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
serial-uclass.c serial: serial-uclass: Add generic serial RX buffer support 2017-08-24 11:00:47 +08:00
serial.c powerpc: Remove 8260 remainders 2017-07-23 09:24:47 -04:00
serial_ar933x.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_arc.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_bcm283x_mu.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_bcm6345.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_efi.c debug_uart: Adjust the declaration of debug_uart_init() 2015-10-21 07:46:50 -06:00
serial_intel_mid.c serial: Add serial driver for Intel MID 2017-04-10 10:02:03 +08:00
serial_linflexuart.c serial: Introduce linflex uart support 2016-06-13 08:56:02 -04:00
serial_lpuart.c dm: core: Replace of_offset with accessor (part 2) 2017-06-01 07:03:04 -06:00
serial_meson.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_mpc8xx.c powerpc, 8xx: move Serial driver to drivers/serial/ 2017-07-08 15:56:04 -04:00
serial_msm.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_mvebu_a3700.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_mxc.c serial: mxc: Add debug uart support 2017-07-12 09:44:22 +02:00
serial_ns16550.c serial: Remove serial_putc_raw_dev 2016-01-25 10:39:45 -05:00
serial_nulldev.c serial: nulldev: Implement "pending" function to fix tstc return "true" 2017-11-17 07:44:13 -05:00
serial_pic32.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
serial_pl01x.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_pl01x_internal.h dm: serial: Tidy up the pl01x driver 2014-10-22 10:36:57 -06:00
serial_pxa.c serial: pxa: integrate optional driver model handling 2016-11-23 13:53:20 +01:00
serial_rockchip.c rockchip: serial: Adapt rockchip of-platdata driver for rk3188 2017-03-16 16:03:44 -06:00
serial_s5p.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_sh.c serial: sh: Enable clock if available 2017-09-24 14:12:07 +09:00
serial_sh.h serial: sh: Add r8a7796 support 2017-05-22 04:38:25 +09:00
serial_sti_asc.c sti: fix STMicroelectronics copyright 2017-11-06 09:51:01 -05:00
serial_stm32.c serial: serial_stm32: move clock config from driver to board 2016-02-08 10:10:36 -05:00
serial_stm32x7.c stm32: fix STMicroelectronics copyright 2017-11-06 09:51:01 -05:00
serial_stm32x7.h stm32: fix STMicroelectronics copyright 2017-11-06 09:51:01 -05:00
serial_uniphier.c dm: Fix up inclusion of common.h 2017-06-01 07:03:03 -06:00
serial_xuartlite.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_zynq.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
usbtty.c usbtty: fix typos 2017-10-16 09:42:51 -04:00
usbtty.h omap: clean-up dead configs 2014-08-09 11:17:04 -04:00