Skip to content

Commit 41d5e08

Browse files
committed
Merge tag 'tty-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial updates from Greg KH: "Here's the big tty/serial driver update for 4.1-rc1. It was delayed for a bit due to some questions surrounding some of the console command line parsing changes that are in here. There's still one tiny regression for people who were previously putting multiple console command lines and expecting them all to be ignored for some odd reason, but Peter is working on fixing that. If not, I'll send a revert for the offending patch, but I have faith that Peter can address it. Other than the console work here, there's the usual serial driver updates and changes, and a buch of 8250 reworks to try to make that driver easier to maintain over time, and have it support more devices in the future. All of these have been in linux-next for a while" * tag 'tty-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (119 commits) n_gsm: Drop unneeded cast on netdev_priv sc16is7xx: expose RTS inversion in RS-485 mode serial: 8250_pci: port failed after wakeup from S3 earlycon: 8250: Document kernel command line options earlycon: 8250: Fix command line regression earlycon: Fix __earlycon_table stride tty: clean up the tty time logic a bit serial: 8250_dw: only get the clock rate in one place serial: 8250_dw: remove useless ACPI ID check dmaengine: hsu: move memory allocation to GFP_NOWAIT dmaengine: hsu: remove redundant pieces of code serial: 8250_pci: add Intel Tangier support dmaengine: hsu: add Intel Tangier PCI ID serial: 8250_pci: replace switch-case by formula for Intel MID serial: 8250_pci: replace switch-case by formula tty: cpm_uart: replace CONFIG_8xx by CONFIG_CPM1 serial: jsm: some off by one bugs serial: xuartps: Fix check in console_setup(). serial: xuartps: Get rid of register access macros. serial: xuartps: Fix iobase use. ...
2 parents 8d582b9 + 5dbc32a commit 41d5e08

79 files changed

Lines changed: 2357 additions & 4743 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/kernel-parameters.txt‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,18 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
713713

714714
uart[8250],io,<addr>[,options]
715715
uart[8250],mmio,<addr>[,options]
716+
uart[8250],mmio32,<addr>[,options]
717+
uart[8250],0x<addr>[,options]
716718
Start an early, polled-mode console on the 8250/16550
717719
UART at the specified I/O port or MMIO address,
718-
switching to the matching ttyS device later. The
719-
options are the same as for ttyS, above.
720+
switching to the matching ttyS device later.
721+
MMIO inter-register address stride is either 8-bit
722+
(mmio) or 32-bit (mmio32).
723+
If none of [io|mmio|mmio32], <addr> is assumed to be
724+
equivalent to 'mmio'. 'options' are specified in the
725+
same format described for ttyS above; if unspecified,
726+
the h/w is not re-initialized.
727+
720728
hvc<n> Use the hypervisor console device <n>. This is for
721729
both Xen and PowerPC hypervisors.
722730

@@ -950,11 +958,15 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
950958
uart[8250],io,<addr>[,options]
951959
uart[8250],mmio,<addr>[,options]
952960
uart[8250],mmio32,<addr>[,options]
961+
uart[8250],0x<addr>[,options]
953962
Start an early, polled-mode console on the 8250/16550
954963
UART at the specified I/O port or MMIO address.
955964
MMIO inter-register address stride is either 8-bit
956965
(mmio) or 32-bit (mmio32).
957-
The options are the same as for ttyS, above.
966+
If none of [io|mmio|mmio32], <addr> is assumed to be
967+
equivalent to 'mmio'. 'options' are specified in the
968+
same format described for "console=ttyS<n>"; if
969+
unspecified, the h/w is not initialized.
958970

959971
pl011,<addr>
960972
Start an early, polled-mode console on a pl011 serial

‎arch/mips/mti-malta/malta-init.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <linux/init.h>
1515
#include <linux/string.h>
1616
#include <linux/kernel.h>
17-
#include <linux/serial_8250.h>
17+
#include <linux/serial_core.h>
1818

1919
#include <asm/cacheflush.h>
2020
#include <asm/smp-ops.h>
@@ -75,7 +75,7 @@ static void __init console_config(void)
7575
if ((strstr(fw_getcmdline(), "earlycon=")) == NULL) {
7676
sprintf(console_string, "uart8250,io,0x3f8,%d%c%c", baud,
7777
parity, bits);
78-
setup_early_serial8250_console(console_string);
78+
setup_earlycon(console_string);
7979
}
8080

8181
if ((strstr(fw_getcmdline(), "console=")) == NULL) {

‎arch/x86/Kconfig.debug‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ config EARLY_PRINTK
4343
with klogd/syslogd or the X server. You should normally N here,
4444
unless you want to debug such a crash.
4545

46-
config EARLY_PRINTK_INTEL_MID
47-
bool "Early printk for Intel MID platform support"
48-
depends on EARLY_PRINTK && X86_INTEL_MID
49-
5046
config EARLY_PRINTK_DBGP
5147
bool "Early printk via EHCI debug port"
5248
depends on EARLY_PRINTK && PCI

‎arch/x86/include/asm/intel-mid.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ extern enum intel_mid_timer_options intel_mid_timer_options;
136136
#define SFI_MTMR_MAX_NUM 8
137137
#define SFI_MRTC_MAX 8
138138

139-
extern struct console early_hsu_console;
140-
extern void hsu_early_console_init(const char *);
141-
142139
extern void intel_scu_devices_create(void);
143140
extern void intel_scu_devices_destroy(void);
144141

‎arch/x86/include/asm/serial.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
/* Standard COM flags (except for COM4, because of the 8514 problem) */
1414
#ifdef CONFIG_SERIAL_DETECT_IRQ
15-
# define STD_COMX_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | ASYNC_AUTO_IRQ)
16-
# define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | 0 | ASYNC_AUTO_IRQ)
15+
# define STD_COMX_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | UPF_AUTO_IRQ)
16+
# define STD_COM4_FLAGS (UPF_BOOT_AUTOCONF | 0 | UPF_AUTO_IRQ)
1717
#else
18-
# define STD_COMX_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST | 0 )
19-
# define STD_COM4_FLAGS (ASYNC_BOOT_AUTOCONF | 0 | 0 )
18+
# define STD_COMX_FLAGS (UPF_BOOT_AUTOCONF | UPF_SKIP_TEST | 0 )
19+
# define STD_COM4_FLAGS (UPF_BOOT_AUTOCONF | 0 | 0 )
2020
#endif
2121

2222
#define SERIAL_PORT_DFNS \

‎arch/x86/kernel/early_printk.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,6 @@ static int __init setup_early_printk(char *buf)
375375
if (!strncmp(buf, "xen", 3))
376376
early_console_register(&xenboot_console, keep);
377377
#endif
378-
#ifdef CONFIG_EARLY_PRINTK_INTEL_MID
379-
if (!strncmp(buf, "hsu", 3)) {
380-
hsu_early_console_init(buf + 3);
381-
early_console_register(&early_hsu_console, keep);
382-
}
383-
#endif
384378
#ifdef CONFIG_EARLY_PRINTK_EFI
385379
if (!strncmp(buf, "efi", 3))
386380
early_console_register(&early_efi_console, keep);

‎arch/x86/platform/intel-mid/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
obj-$(CONFIG_X86_INTEL_MID) += intel-mid.o intel_mid_vrtc.o mfld.o mrfl.o
2-
obj-$(CONFIG_EARLY_PRINTK_INTEL_MID) += early_printk_intel_mid.o
32

43
# SFI specific code
54
ifdef CONFIG_X86_INTEL_MID

‎arch/x86/platform/intel-mid/early_printk_intel_mid.c‎

Lines changed: 0 additions & 112 deletions
This file was deleted.

‎drivers/dma/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ config FSL_DMA
112112
EloPlus is on mpc85xx and mpc86xx and Pxxx parts, and the Elo3 is on
113113
some Txxx and Bxxx parts.
114114

115+
source "drivers/dma/hsu/Kconfig"
116+
115117
config MPC512X_DMA
116118
tristate "Freescale MPC512x built-in DMA engine support"
117119
depends on PPC_MPC512x || PPC_MPC831x

‎drivers/dma/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ obj-$(CONFIG_DMATEST) += dmatest.o
1010
obj-$(CONFIG_INTEL_IOATDMA) += ioat/
1111
obj-$(CONFIG_INTEL_IOP_ADMA) += iop-adma.o
1212
obj-$(CONFIG_FSL_DMA) += fsldma.o
13+
obj-$(CONFIG_HSU_DMA) += hsu/
1314
obj-$(CONFIG_MPC512X_DMA) += mpc512x_dma.o
1415
obj-$(CONFIG_PPC_BESTCOMM) += bestcomm/
1516
obj-$(CONFIG_MV_XOR) += mv_xor.o

0 commit comments

Comments
 (0)