Skip to content

Commit 8e1e495

Browse files
committed
Merge tag 'tty-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial driver updates from Greg KH: "Here is the big set of tty and serial driver changes for 6.6-rc1. Lots of cleanups in here this cycle, and some driver updates. Short summary is: - Jiri's continued work to make the tty code and apis be a bit more sane with regards to modern kernel coding style and types - cpm_uart driver updates - n_gsm updates and fixes - meson driver updates - sc16is7xx driver updates - 8250 driver updates for different hardware types - qcom-geni driver fixes - tegra serial driver change - stm32 driver updates - synclink_gt driver cleanups - tty structure size reduction All of these have been in linux-next this week with no reported issues. The last bit of cleanups from Jiri and the tty structure size reduction came in last week, a bit late but as they were just style changes and size reductions, I figured they should get into this merge cycle so that others can work on top of them with no merge conflicts" * tag 'tty-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (199 commits) tty: shrink the size of struct tty_struct by 40 bytes tty: n_tty: deduplicate copy code in n_tty_receive_buf_real_raw() tty: n_tty: extract ECHO_OP processing to a separate function tty: n_tty: unify counts to size_t tty: n_tty: use u8 for chars and flags tty: n_tty: simplify chars_in_buffer() tty: n_tty: remove unsigned char casts from character constants tty: n_tty: move newline handling to a separate function tty: n_tty: move canon handling to a separate function tty: n_tty: use MASK() for masking out size bits tty: n_tty: make n_tty_data::num_overrun unsigned tty: n_tty: use time_is_before_jiffies() in n_tty_receive_overrun() tty: n_tty: use 'num' for writes' counts tty: n_tty: use output character directly tty: n_tty: make flow of n_tty_receive_buf_common() a bool Revert "tty: serial: meson: Add a earlycon for the T7 SoC" Documentation: devices.txt: Fix minors for ttyCPM* Documentation: devices.txt: Remove ttySIOC* Documentation: devices.txt: Remove ttyIOC* serial: 8250_bcm7271: improve bcm7271 8250 port ...
2 parents e925992 + ebf05c7 commit 8e1e495

File tree

185 files changed

+2106
-2175
lines changed

Some content is hidden

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

185 files changed

+2106
-2175
lines changed

Documentation/admin-guide/devices.txt

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,18 +2691,9 @@
26912691
45 = /dev/ttyMM1 Marvell MPSC - port 1 (obsolete unused)
26922692
46 = /dev/ttyCPM0 PPC CPM (SCC or SMC) - port 0
26932693
...
2694-
49 = /dev/ttyCPM5 PPC CPM (SCC or SMC) - port 3
2695-
50 = /dev/ttyIOC0 Altix serial card
2696-
...
2697-
81 = /dev/ttyIOC31 Altix serial card
2694+
51 = /dev/ttyCPM5 PPC CPM (SCC or SMC) - port 5
26982695
82 = /dev/ttyVR0 NEC VR4100 series SIU
26992696
83 = /dev/ttyVR1 NEC VR4100 series DSIU
2700-
84 = /dev/ttyIOC84 Altix ioc4 serial card
2701-
...
2702-
115 = /dev/ttyIOC115 Altix ioc4 serial card
2703-
116 = /dev/ttySIOC0 Altix ioc3 serial card
2704-
...
2705-
147 = /dev/ttySIOC31 Altix ioc3 serial card
27062697
148 = /dev/ttyPSC0 PPC PSC - port 0
27072698
...
27082699
153 = /dev/ttyPSC5 PPC PSC - port 5
@@ -2761,10 +2752,7 @@
27612752
43 = /dev/ttycusmx2 Callout device for ttySMX2
27622753
46 = /dev/cucpm0 Callout device for ttyCPM0
27632754
...
2764-
49 = /dev/cucpm5 Callout device for ttyCPM5
2765-
50 = /dev/cuioc40 Callout device for ttyIOC40
2766-
...
2767-
81 = /dev/cuioc431 Callout device for ttyIOC431
2755+
51 = /dev/cucpm5 Callout device for ttyCPM5
27682756
82 = /dev/cuvr0 Callout device for ttyVR0
27692757
83 = /dev/cuvr1 Callout device for ttyVR1
27702758

Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ properties:
3333
- amlogic,meson8b-uart
3434
- amlogic,meson-gx-uart
3535
- amlogic,meson-s4-uart
36+
- amlogic,meson-a1-uart
3637
- const: amlogic,meson-ao-uart
3738
- description: Always-on power domain UART controller on G12A SoCs
3839
items:
@@ -46,10 +47,15 @@ properties:
4647
- amlogic,meson8b-uart
4748
- amlogic,meson-gx-uart
4849
- amlogic,meson-s4-uart
50+
- amlogic,meson-a1-uart
4951
- description: Everything-Else power domain UART controller on G12A SoCs
5052
items:
5153
- const: amlogic,meson-g12a-uart
5254
- const: amlogic,meson-gx-uart
55+
- description: UART controller on S4 compatible SoCs
56+
items:
57+
- const: amlogic,t7-uart
58+
- const: amlogic,meson-s4-uart
5359

5460
reg:
5561
maxItems: 1

Documentation/devicetree/bindings/serial/fsl-lpuart.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@ properties:
2525
- fsl,imxrt1050-lpuart
2626
- items:
2727
- enum:
28-
- fsl,imx93-lpuart
2928
- fsl,imx8ulp-lpuart
3029
- const: fsl,imx7ulp-lpuart
30+
- items:
31+
- enum:
32+
- fsl,imx93-lpuart
33+
- const: fsl,imx8ulp-lpuart
34+
- const: fsl,imx7ulp-lpuart
3135
- items:
3236
- enum:
3337
- fsl,imx8qm-lpuart

Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Optional properties:
2323
1 = active low.
2424
- irda-mode-ports: An array that lists the indices of the port that
2525
should operate in IrDA mode.
26+
- nxp,modem-control-line-ports: An array that lists the indices of the port that
27+
should have shared GPIO lines configured as
28+
modem control lines.
2629

2730
Example:
2831
sc16is750: sc16is750@51 {
@@ -35,6 +38,26 @@ Example:
3538
#gpio-cells = <2>;
3639
};
3740

41+
sc16is752: sc16is752@53 {
42+
compatible = "nxp,sc16is752";
43+
reg = <0x53>;
44+
clocks = <&clk20m>;
45+
interrupt-parent = <&gpio3>;
46+
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
47+
nxp,modem-control-line-ports = <1>; /* Port 1 as modem control lines */
48+
gpio-controller; /* Port 0 as GPIOs */
49+
#gpio-cells = <2>;
50+
};
51+
52+
sc16is752: sc16is752@54 {
53+
compatible = "nxp,sc16is752";
54+
reg = <0x54>;
55+
clocks = <&clk20m>;
56+
interrupt-parent = <&gpio3>;
57+
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
58+
nxp,modem-control-line-ports = <0 1>; /* Ports 0 and 1 as modem control lines */
59+
};
60+
3861
* spi as bus
3962

4063
Required properties:
@@ -59,6 +82,9 @@ Optional properties:
5982
1 = active low.
6083
- irda-mode-ports: An array that lists the indices of the port that
6184
should operate in IrDA mode.
85+
- nxp,modem-control-line-ports: An array that lists the indices of the port that
86+
should have shared GPIO lines configured as
87+
modem control lines.
6288

6389
Example:
6490
sc16is750: sc16is750@0 {
@@ -70,3 +96,23 @@ Example:
7096
gpio-controller;
7197
#gpio-cells = <2>;
7298
};
99+
100+
sc16is752: sc16is752@1 {
101+
compatible = "nxp,sc16is752";
102+
reg = <1>;
103+
clocks = <&clk20m>;
104+
interrupt-parent = <&gpio3>;
105+
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
106+
nxp,modem-control-line-ports = <1>; /* Port 1 as modem control lines */
107+
gpio-controller; /* Port 0 as GPIOs */
108+
#gpio-cells = <2>;
109+
};
110+
111+
sc16is752: sc16is752@2 {
112+
compatible = "nxp,sc16is752";
113+
reg = <2>;
114+
clocks = <&clk20m>;
115+
interrupt-parent = <&gpio3>;
116+
interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
117+
nxp,modem-control-line-ports = <0 1>; /* Ports 0 and 1 as modem control lines */
118+
};

Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ properties:
117117
required:
118118
- compatible
119119
- reg
120-
- interrupts
121120

122121
unevaluatedProperties: false
123122

Documentation/driver-api/tty/tty_buffer.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ Flip Buffer Management
1515
======================
1616

1717
.. kernel-doc:: drivers/tty/tty_buffer.c
18-
:identifiers: tty_prepare_flip_string tty_insert_flip_string_fixed_flag
19-
tty_insert_flip_string_flags __tty_insert_flip_char
18+
:identifiers: tty_prepare_flip_string
2019
tty_flip_buffer_push tty_ldisc_receive_buf
2120

21+
.. kernel-doc:: include/linux/tty_flip.h
22+
:identifiers: tty_insert_flip_string_fixed_flag tty_insert_flip_string_flags
23+
tty_insert_flip_char
24+
2225
----
2326

2427
Other Functions

arch/alpha/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ register_cpus(void)
421421
arch_initcall(register_cpus);
422422

423423
#ifdef CONFIG_MAGIC_SYSRQ
424-
static void sysrq_reboot_handler(int unused)
424+
static void sysrq_reboot_handler(u8 unused)
425425
{
426426
machine_halt();
427427
}

arch/alpha/kernel/srmcons.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,8 @@ srmcons_do_write(struct tty_port *port, const char *buf, int count)
129129
return count;
130130
}
131131

132-
static int
133-
srmcons_write(struct tty_struct *tty,
134-
const unsigned char *buf, int count)
132+
static ssize_t
133+
srmcons_write(struct tty_struct *tty, const u8 *buf, size_t count)
135134
{
136135
unsigned long flags;
137136

arch/arm64/boot/dts/amlogic/meson-a1.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
};
109109

110110
uart_AO: serial@1c00 {
111-
compatible = "amlogic,meson-gx-uart",
111+
compatible = "amlogic,meson-a1-uart",
112112
"amlogic,meson-ao-uart";
113113
reg = <0x0 0x1c00 0x0 0x18>;
114114
interrupts = <GIC_SPI 25 IRQ_TYPE_EDGE_RISING>;
@@ -118,7 +118,7 @@
118118
};
119119

120120
uart_AO_B: serial@2000 {
121-
compatible = "amlogic,meson-gx-uart",
121+
compatible = "amlogic,meson-a1-uart",
122122
"amlogic,meson-ao-uart";
123123
reg = <0x0 0x2000 0x0 0x18>;
124124
interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;

arch/loongarch/kernel/sysrq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static void sysrq_tlbdump_othercpus(struct work_struct *dummy)
4343
static DECLARE_WORK(sysrq_tlbdump, sysrq_tlbdump_othercpus);
4444
#endif
4545

46-
static void sysrq_handle_tlbdump(int key)
46+
static void sysrq_handle_tlbdump(u8 key)
4747
{
4848
sysrq_tlbdump_single(NULL);
4949
#ifdef CONFIG_SMP

0 commit comments

Comments
 (0)