mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
Merge 5.11-rc5 into tty-next
We need the fixes in here and this resolves a merge issue in drivers/tty/tty_io.c Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -401,6 +401,20 @@ config MIPS_EJTAG_FDC_KGDB_CHAN
|
||||
help
|
||||
FDC channel number to use for KGDB.
|
||||
|
||||
config NULL_TTY
|
||||
tristate "NULL TTY driver"
|
||||
help
|
||||
Say Y here if you want a NULL TTY which simply discards messages.
|
||||
|
||||
This is useful to allow userspace applications which expect a console
|
||||
device to work without modifications even when no console is
|
||||
available or desired.
|
||||
|
||||
In order to use this driver, you should redirect the console to this
|
||||
TTY, or boot the kernel with console=ttynull.
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
config TRACE_ROUTER
|
||||
tristate "Trace data router for MIPI P1149.7 cJTAG standard"
|
||||
depends on TRACE_SINK
|
||||
|
@@ -2,7 +2,7 @@
|
||||
obj-$(CONFIG_TTY) += tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o \
|
||||
tty_buffer.o tty_port.o tty_mutex.o \
|
||||
tty_ldsem.o tty_baudrate.o tty_jobctrl.o \
|
||||
n_null.o ttynull.o
|
||||
n_null.o
|
||||
obj-$(CONFIG_LEGACY_PTYS) += pty.o
|
||||
obj-$(CONFIG_UNIX98_PTYS) += pty.o
|
||||
obj-$(CONFIG_AUDIT) += tty_audit.o
|
||||
@@ -25,6 +25,7 @@ obj-$(CONFIG_ISI) += isicom.o
|
||||
obj-$(CONFIG_MOXA_INTELLIO) += moxa.o
|
||||
obj-$(CONFIG_MOXA_SMARTIO) += mxser.o
|
||||
obj-$(CONFIG_NOZOMI) += nozomi.o
|
||||
obj-$(CONFIG_NULL_TTY) += ttynull.o
|
||||
obj-$(CONFIG_ROCKETPORT) += rocket.o
|
||||
obj-$(CONFIG_SYNCLINK_GT) += synclink_gt.o
|
||||
obj-$(CONFIG_PPC_EPAPR_HV_BYTECHAN) += ehv_bytechan.o
|
||||
|
@@ -648,6 +648,14 @@ static void wait_for_xmitr(struct uart_port *port)
|
||||
(val & STAT_TX_RDY(port)), 1, 10000);
|
||||
}
|
||||
|
||||
static void wait_for_xmite(struct uart_port *port)
|
||||
{
|
||||
u32 val;
|
||||
|
||||
readl_poll_timeout_atomic(port->membase + UART_STAT, val,
|
||||
(val & STAT_TX_EMP), 1, 10000);
|
||||
}
|
||||
|
||||
static void mvebu_uart_console_putchar(struct uart_port *port, int ch)
|
||||
{
|
||||
wait_for_xmitr(port);
|
||||
@@ -675,7 +683,7 @@ static void mvebu_uart_console_write(struct console *co, const char *s,
|
||||
|
||||
uart_console_write(port, s, count, mvebu_uart_console_putchar);
|
||||
|
||||
wait_for_xmitr(port);
|
||||
wait_for_xmite(port);
|
||||
|
||||
if (ier)
|
||||
writel(ier, port->membase + UART_CTRL(port));
|
||||
|
@@ -1000,6 +1000,7 @@ static int sifive_serial_probe(struct platform_device *pdev)
|
||||
/* Set up clock divider */
|
||||
ssp->clkin_rate = clk_get_rate(ssp->clk);
|
||||
ssp->baud_rate = SIFIVE_DEFAULT_BAUD_RATE;
|
||||
ssp->port.uartclk = ssp->baud_rate * 16;
|
||||
__ssp_update_div(ssp);
|
||||
|
||||
platform_set_drvdata(pdev, ssp);
|
||||
|
@@ -2,13 +2,6 @@
|
||||
/*
|
||||
* Copyright (C) 2019 Axis Communications AB
|
||||
*
|
||||
* The console is useful for userspace applications which expect a console
|
||||
* device to work without modifications even when no console is available
|
||||
* or desired.
|
||||
*
|
||||
* In order to use this driver, you should redirect the console to this
|
||||
* TTY, or boot the kernel with console=ttynull.
|
||||
*
|
||||
* Based on ttyprintk.c:
|
||||
* Copyright (C) 2010 Samo Pogacnik
|
||||
*/
|
||||
@@ -66,17 +59,6 @@ static struct console ttynull_console = {
|
||||
.device = ttynull_device,
|
||||
};
|
||||
|
||||
void __init register_ttynull_console(void)
|
||||
{
|
||||
if (!ttynull_driver)
|
||||
return;
|
||||
|
||||
if (add_preferred_console(ttynull_console.name, 0, NULL))
|
||||
return;
|
||||
|
||||
register_console(&ttynull_console);
|
||||
}
|
||||
|
||||
static int __init ttynull_init(void)
|
||||
{
|
||||
struct tty_driver *driver;
|
||||
|
Reference in New Issue
Block a user