Skip to content

Commit fb0255f

Browse files
committed
Merge tag 'tty-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial updates from Greg KH: "Here is the big tty/serial driver pull request for 4.15-rc1. Lots of serial driver updates in here, some small vt cleanups, and a raft of SPDX and license boilerplate cleanups, messing up the diffstat a bit. Nothing major, with no realy functional changes except better hardware support for some platforms. All of these have been in linux-next for a while with no reported issues" * tag 'tty-4.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (110 commits) tty: ehv_bytechan: fix spelling mistake tty: serial: meson: allow baud-rates lower than 9600 serial: 8250_fintek: Fix crash with baud rate B0 serial: 8250_fintek: Disable delays for ports != 0 serial: 8250_fintek: Return -EINVAL on invalid configuration tty: Remove redundant license text tty: serdev: Remove redundant license text tty: hvc: Remove redundant license text tty: serial: Remove redundant license text tty: add SPDX identifiers to all remaining files in drivers/tty/ tty: serial: jsm: remove redundant pointer ts tty: serial: jsm: add space before the open parenthesis '(' tty: serial: jsm: fix coding style tty: serial: jsm: delete space between function name and '(' tty: serial: jsm: add blank line after declarations tty: serial: jsm: change the type of local variable tty: serial: imx: remove dead code imx_dma_rxint tty: serial: imx: disable ageing timer interrupt if dma in use serial: 8250: fix potential deadlock in rs485-mode serial: m32r_sio: Drop redundant .data assignment ...
2 parents 449fcf3 + 57f5d64 commit fb0255f

202 files changed

Lines changed: 1276 additions & 1668 deletions

File tree

Some content is hidden

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

‎Documentation/devicetree/bindings/dma/stm32-dma.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ channel: a phandle to the DMA controller plus the following four integer cells:
7171
Example:
7272

7373
usart1: serial@40011000 {
74-
compatible = "st,stm32-usart", "st,stm32-uart";
74+
compatible = "st,stm32-uart";
7575
reg = <0x40011000 0x400>;
7676
interrupts = <37>;
7777
clocks = <&clk_pclk2>;

‎Documentation/devicetree/bindings/serial/atmel-usart.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Optional properties:
2424
- dma-names: "rx" for RX channel, "tx" for TX channel.
2525
- atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO
2626
capable USARTs.
27+
- rs485-rts-delay, rs485-rx-during-tx, linux,rs485-enabled-at-boot-time: see rs485.txt
2728

2829
<chip> compatible description:
2930
- at91rm9200: legacy USART support

‎Documentation/devicetree/bindings/serial/fsl-imx-uart.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Optional properties:
99
- fsl,irda-mode : Indicate the uart supports irda mode
1010
- fsl,dte-mode : Indicate the uart works in DTE mode. The uart works
1111
in DCE mode by default.
12+
- rs485-rts-delay, rs485-rx-during-tx, linux,rs485-enabled-at-boot-time: see rs485.txt
1213

1314
Please check Documentation/devicetree/bindings/serial/serial.txt
1415
for the complete list of generic properties.

‎Documentation/devicetree/bindings/serial/fsl-lpuart.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Required properties:
1616
Optional properties:
1717
- dmas: A list of two dma specifiers, one for each entry in dma-names.
1818
- dma-names: should contain "tx" and "rx".
19+
- rs485-rts-delay, rs485-rx-during-tx, linux,rs485-enabled-at-boot-time: see rs485.txt
1920

2021
Note: Optional properties for DMA support. Write them both or both not.
2122

‎Documentation/devicetree/bindings/serial/omap_serial.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Optional properties:
1919
- dmas : DMA specifier, consisting of a phandle to the DMA controller
2020
node and a DMA channel number.
2121
- dma-names : "rx" for receive channel, "tx" for transmit channel.
22+
- rs485-rts-delay, rs485-rx-during-tx, linux,rs485-enabled-at-boot-time: see rs485.txt
2223

2324
Example:
2425

‎Documentation/devicetree/bindings/serial/st,stm32-usart.txt‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22

33
Required properties:
44
- compatible: can be either:
5-
- "st,stm32-usart",
65
- "st,stm32-uart",
7-
- "st,stm32f7-usart",
86
- "st,stm32f7-uart",
9-
- "st,stm32h7-usart"
107
- "st,stm32h7-uart".
11-
depending on whether the device supports synchronous mode
12-
and is compatible with stm32(f4), stm32f7 or stm32h7.
8+
depending is compatible with stm32(f4), stm32f7 or stm32h7.
139
- reg: The address and length of the peripheral registers space
1410
- interrupts:
1511
- The interrupt line for the USART instance,
@@ -33,7 +29,7 @@ usart4: serial@40004c00 {
3329
};
3430

3531
usart2: serial@40004400 {
36-
compatible = "st,stm32-usart", "st,stm32-uart";
32+
compatible = "st,stm32-uart";
3733
reg = <0x40004400 0x400>;
3834
interrupts = <38>;
3935
clocks = <&clk_pclk1>;
@@ -43,7 +39,7 @@ usart2: serial@40004400 {
4339
};
4440

4541
usart1: serial@40011000 {
46-
compatible = "st,stm32-usart", "st,stm32-uart";
42+
compatible = "st,stm32-uart";
4743
reg = <0x40011000 0x400>;
4844
interrupts = <37>;
4945
clocks = <&rcc 0 164>;

‎arch/arm/boot/dts/stm32f429.dtsi‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,15 @@
314314
};
315315

316316
usart2: serial@40004400 {
317-
compatible = "st,stm32-usart", "st,stm32-uart";
317+
compatible = "st,stm32-uart";
318318
reg = <0x40004400 0x400>;
319319
interrupts = <38>;
320320
clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART2)>;
321321
status = "disabled";
322322
};
323323

324324
usart3: serial@40004800 {
325-
compatible = "st,stm32-usart", "st,stm32-uart";
325+
compatible = "st,stm32-uart";
326326
reg = <0x40004800 0x400>;
327327
interrupts = <39>;
328328
clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART3)>;
@@ -386,15 +386,15 @@
386386
};
387387

388388
usart7: serial@40007800 {
389-
compatible = "st,stm32-usart", "st,stm32-uart";
389+
compatible = "st,stm32-uart";
390390
reg = <0x40007800 0x400>;
391391
interrupts = <82>;
392392
clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART7)>;
393393
status = "disabled";
394394
};
395395

396396
usart8: serial@40007c00 {
397-
compatible = "st,stm32-usart", "st,stm32-uart";
397+
compatible = "st,stm32-uart";
398398
reg = <0x40007c00 0x400>;
399399
interrupts = <83>;
400400
clocks = <&rcc 0 STM32F4_APB1_CLOCK(UART8)>;
@@ -444,7 +444,7 @@
444444
};
445445

446446
usart1: serial@40011000 {
447-
compatible = "st,stm32-usart", "st,stm32-uart";
447+
compatible = "st,stm32-uart";
448448
reg = <0x40011000 0x400>;
449449
interrupts = <37>;
450450
clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART1)>;
@@ -455,7 +455,7 @@
455455
};
456456

457457
usart6: serial@40011400 {
458-
compatible = "st,stm32-usart", "st,stm32-uart";
458+
compatible = "st,stm32-uart";
459459
reg = <0x40011400 0x400>;
460460
interrupts = <71>;
461461
clocks = <&rcc 0 STM32F4_APB2_CLOCK(USART6)>;

‎arch/arm/boot/dts/stm32f746.dtsi‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@
136136
};
137137

138138
usart2: serial@40004400 {
139-
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
139+
compatible = "st,stm32f7-uart";
140140
reg = <0x40004400 0x400>;
141141
interrupts = <38>;
142142
clocks = <&rcc 1 CLK_USART2>;
143143
status = "disabled";
144144
};
145145

146146
usart3: serial@40004800 {
147-
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
147+
compatible = "st,stm32f7-uart";
148148
reg = <0x40004800 0x400>;
149149
interrupts = <39>;
150150
clocks = <&rcc 1 CLK_USART3>;
@@ -177,31 +177,31 @@
177177
};
178178

179179
usart7: serial@40007800 {
180-
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
180+
compatible = "st,stm32f7-uart";
181181
reg = <0x40007800 0x400>;
182182
interrupts = <82>;
183183
clocks = <&rcc 1 CLK_UART7>;
184184
status = "disabled";
185185
};
186186

187187
usart8: serial@40007c00 {
188-
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
188+
compatible = "st,stm32f7-uart";
189189
reg = <0x40007c00 0x400>;
190190
interrupts = <83>;
191191
clocks = <&rcc 1 CLK_UART8>;
192192
status = "disabled";
193193
};
194194

195195
usart1: serial@40011000 {
196-
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
196+
compatible = "st,stm32f7-uart";
197197
reg = <0x40011000 0x400>;
198198
interrupts = <37>;
199199
clocks = <&rcc 1 CLK_USART1>;
200200
status = "disabled";
201201
};
202202

203203
usart6: serial@40011400 {
204-
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
204+
compatible = "st,stm32f7-uart";
205205
reg = <0x40011400 0x400>;
206206
interrupts = <71>;
207207
clocks = <&rcc 1 CLK_USART6>;

‎arch/arm/boot/dts/stm32h743.dtsi‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
};
6868

6969
usart2: serial@40004400 {
70-
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
70+
compatible = "st,stm32f7-uart";
7171
reg = <0x40004400 0x400>;
7272
interrupts = <38>;
7373
status = "disabled";
@@ -99,7 +99,7 @@
9999
};
100100

101101
usart1: serial@40011000 {
102-
compatible = "st,stm32f7-usart", "st,stm32f7-uart";
102+
compatible = "st,stm32f7-uart";
103103
reg = <0x40011000 0x400>;
104104
interrupts = <37>;
105105
status = "disabled";

‎drivers/acpi/scan.c‎

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,41 +1505,38 @@ static void acpi_init_coherency(struct acpi_device *adev)
15051505
adev->flags.coherent_dma = cca;
15061506
}
15071507

1508-
static int acpi_check_spi_i2c_slave(struct acpi_resource *ares, void *data)
1508+
static int acpi_check_serial_bus_slave(struct acpi_resource *ares, void *data)
15091509
{
1510-
bool *is_spi_i2c_slave_p = data;
1510+
bool *is_serial_bus_slave_p = data;
15111511

15121512
if (ares->type != ACPI_RESOURCE_TYPE_SERIAL_BUS)
15131513
return 1;
15141514

1515-
/*
1516-
* devices that are connected to UART still need to be enumerated to
1517-
* platform bus
1518-
*/
1519-
if (ares->data.common_serial_bus.type != ACPI_RESOURCE_SERIAL_TYPE_UART)
1520-
*is_spi_i2c_slave_p = true;
1515+
*is_serial_bus_slave_p = true;
15211516

15221517
/* no need to do more checking */
15231518
return -1;
15241519
}
15251520

1526-
static bool acpi_is_spi_i2c_slave(struct acpi_device *device)
1521+
static bool acpi_is_serial_bus_slave(struct acpi_device *device)
15271522
{
15281523
struct list_head resource_list;
1529-
bool is_spi_i2c_slave = false;
1524+
bool is_serial_bus_slave = false;
15301525

15311526
/* Macs use device properties in lieu of _CRS resources */
15321527
if (x86_apple_machine &&
15331528
(fwnode_property_present(&device->fwnode, "spiSclkPeriod") ||
1534-
fwnode_property_present(&device->fwnode, "i2cAddress")))
1529+
fwnode_property_present(&device->fwnode, "i2cAddress") ||
1530+
fwnode_property_present(&device->fwnode, "baud")))
15351531
return true;
15361532

15371533
INIT_LIST_HEAD(&resource_list);
1538-
acpi_dev_get_resources(device, &resource_list, acpi_check_spi_i2c_slave,
1539-
&is_spi_i2c_slave);
1534+
acpi_dev_get_resources(device, &resource_list,
1535+
acpi_check_serial_bus_slave,
1536+
&is_serial_bus_slave);
15401537
acpi_dev_free_resource_list(&resource_list);
15411538

1542-
return is_spi_i2c_slave;
1539+
return is_serial_bus_slave;
15431540
}
15441541

15451542
void acpi_init_device_object(struct acpi_device *device, acpi_handle handle,
@@ -1557,7 +1554,7 @@ void acpi_init_device_object(struct acpi_device *device, acpi_handle handle,
15571554
acpi_bus_get_flags(device);
15581555
device->flags.match_driver = false;
15591556
device->flags.initialized = true;
1560-
device->flags.spi_i2c_slave = acpi_is_spi_i2c_slave(device);
1557+
device->flags.serial_bus_slave = acpi_is_serial_bus_slave(device);
15611558
acpi_device_clear_enumerated(device);
15621559
device_initialize(&device->dev);
15631560
dev_set_uevent_suppress(&device->dev, true);
@@ -1841,10 +1838,10 @@ static acpi_status acpi_bus_check_add(acpi_handle handle, u32 lvl_not_used,
18411838
static void acpi_default_enumeration(struct acpi_device *device)
18421839
{
18431840
/*
1844-
* Do not enumerate SPI/I2C slaves as they will be enumerated by their
1845-
* respective parents.
1841+
* Do not enumerate SPI/I2C/UART slaves as they will be enumerated by
1842+
* their respective parents.
18461843
*/
1847-
if (!device->flags.spi_i2c_slave) {
1844+
if (!device->flags.serial_bus_slave) {
18481845
acpi_create_platform_device(device, NULL);
18491846
acpi_device_set_enumerated(device);
18501847
} else {
@@ -1941,7 +1938,7 @@ static void acpi_bus_attach(struct acpi_device *device)
19411938
return;
19421939

19431940
device->flags.match_driver = true;
1944-
if (ret > 0 && !device->flags.spi_i2c_slave) {
1941+
if (ret > 0 && !device->flags.serial_bus_slave) {
19451942
acpi_device_set_enumerated(device);
19461943
goto ok;
19471944
}
@@ -1950,7 +1947,7 @@ static void acpi_bus_attach(struct acpi_device *device)
19501947
if (ret < 0)
19511948
return;
19521949

1953-
if (!device->pnp.type.platform_id && !device->flags.spi_i2c_slave)
1950+
if (!device->pnp.type.platform_id && !device->flags.serial_bus_slave)
19541951
acpi_device_set_enumerated(device);
19551952
else
19561953
acpi_default_enumeration(device);

0 commit comments

Comments
 (0)