Skip to content

Commit d8b7806

Browse files
committed
Merge tag 'tty-6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty / serial driver updates from Greg KH: "Here is a small set of tty and serial driver updates for 6.13-rc1. Nothing major at all this time, only some small changes: - few device tree binding updates - 8250_exar serial driver updates - imx serial driver updates - sprd_serial driver updates - other tiny serial driver updates, full details in the shortlog All of these have been in linux-next for a while with one reported issue, but that commit has now been reverted" * tag 'tty-6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (37 commits) Revert "serial: sh-sci: Clean sci_ports[0] after at earlycon exit" serial: amba-pl011: fix build regression dt-bindings: serial: Add a new compatible string for ums9632 serial: sprd: Add support for sc9632 tty/serial/altera_uart: unwrap error log string tty/serial/altera_jtaguart: unwrap error log string serial: amba-pl011: Fix RX stall when DMA is used tty: ldsic: fix tty_ldisc_autoload sysctl's proc_handler serial: 8250_fintek: Add support for F81216E serial: sh-sci: Clean sci_ports[0] after at earlycon exit tty: atmel_serial: Fix typo retreives to retrieves tty: atmel_serial: Use devm_platform_ioremap_resource() serial: 8250: omap: Move pm_runtime_get_sync tty: serial: samsung: Add Exynos8895 compatible dt-bindings: serial: samsung: Add samsung,exynos8895-uart compatible serial: 8250_dw: Add Sophgo SG2044 quirk dt-bindings: serial: snps-dw-apb-uart: Add Sophgo SG2044 uarts dt-bindings: serial: snps,dw-apb-uart: merge duplicate compatible entry. altera_jtaguart: Use dev_err() to report error attaching IRQ altera_uart: Use dev_err() to report error attaching IRQ handler ...
2 parents 2ba9f67 + 7186324 commit d8b7806

Some content is hidden

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

81 files changed

+381
-241
lines changed

Documentation/devicetree/bindings/serial/rs485.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ properties:
1818
description: prop-encoded-array <a b>
1919
$ref: /schemas/types.yaml#/definitions/uint32-array
2020
items:
21-
items:
22-
- description: Delay between rts signal and beginning of data sent in
23-
milliseconds. It corresponds to the delay before sending data.
24-
default: 0
25-
maximum: 100
26-
- description: Delay between end of data sent and rts signal in milliseconds.
27-
It corresponds to the delay after sending data and actual release
28-
of the line.
29-
default: 0
30-
maximum: 100
21+
- description: Delay between rts signal and beginning of data sent in
22+
milliseconds. It corresponds to the delay before sending data.
23+
default: 0
24+
maximum: 100
25+
- description: Delay between end of data sent and rts signal in milliseconds.
26+
It corresponds to the delay after sending data and actual release
27+
of the line.
28+
default: 0
29+
maximum: 100
3130

3231
rs485-rts-active-high:
3332
description: drive RTS high when sending (this is the default).

Documentation/devicetree/bindings/serial/samsung_uart.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ properties:
2727
- samsung,exynos4210-uart
2828
- samsung,exynos5433-uart
2929
- samsung,exynos850-uart
30+
- samsung,exynos8895-uart
3031
- items:
3132
- enum:
3233
- samsung,exynos7-uart
@@ -160,18 +161,27 @@ allOf:
160161
contains:
161162
enum:
162163
- google,gs101-uart
164+
- samsung,exynos8895-uart
163165
then:
164166
required:
165167
- samsung,uart-fifosize
166168
properties:
167-
reg-io-width: false
168-
169169
clocks:
170170
maxItems: 2
171171

172172
clock-names:
173173
maxItems: 2
174174

175+
- if:
176+
properties:
177+
compatible:
178+
contains:
179+
enum:
180+
- google,gs101-uart
181+
then:
182+
properties:
183+
reg-io-width: false
184+
175185
unevaluatedProperties: false
176186

177187
examples:

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ properties:
3737
- const: renesas,rzn1-uart
3838
- items:
3939
- enum:
40+
- brcm,bcm11351-dw-apb-uart
41+
- brcm,bcm21664-dw-apb-uart
4042
- rockchip,px30-uart
4143
- rockchip,rk1808-uart
4244
- rockchip,rk3036-uart
@@ -48,18 +50,13 @@ properties:
4850
- rockchip,rk3328-uart
4951
- rockchip,rk3368-uart
5052
- rockchip,rk3399-uart
53+
- rockchip,rk3528-uart
5154
- rockchip,rk3568-uart
55+
- rockchip,rk3576-uart
5256
- rockchip,rk3588-uart
5357
- rockchip,rv1108-uart
5458
- rockchip,rv1126-uart
55-
- const: snps,dw-apb-uart
56-
- items:
57-
- enum:
58-
- brcm,bcm11351-dw-apb-uart
59-
- brcm,bcm21664-dw-apb-uart
60-
- const: snps,dw-apb-uart
61-
- items:
62-
- enum:
59+
- sophgo,sg2044-uart
6360
- starfive,jh7100-hsuart
6461
- starfive,jh7100-uart
6562
- starfive,jh7110-uart

Documentation/devicetree/bindings/serial/sprd-uart.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ properties:
1717
oneOf:
1818
- items:
1919
- enum:
20+
- sprd,sc9632-uart
2021
- sprd,sc9860-uart
2122
- sprd,sc9863a-uart
2223
- sprd,ums512-uart

drivers/mailbox/omap-mailbox.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/slab.h>
1616
#include <linux/kfifo.h>
1717
#include <linux/err.h>
18+
#include <linux/io.h>
1819
#include <linux/module.h>
1920
#include <linux/of.h>
2021
#include <linux/platform_device.h>

drivers/misc/eeprom/eeprom_93cx6.c

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* Supported chipsets: 93c46 & 93c66.
99
*/
1010

11+
#include <linux/bits.h>
1112
#include <linux/kernel.h>
1213
#include <linux/module.h>
1314
#include <linux/delay.h>
@@ -102,7 +103,7 @@ static void eeprom_93cx6_write_bits(struct eeprom_93cx6 *eeprom,
102103
/*
103104
* Check if this bit needs to be set.
104105
*/
105-
eeprom->reg_data_in = !!(data & (1 << (i - 1)));
106+
eeprom->reg_data_in = !!(data & BIT(i - 1));
106107

107108
/*
108109
* Write the bit to the eeprom register.
@@ -152,7 +153,7 @@ static void eeprom_93cx6_read_bits(struct eeprom_93cx6 *eeprom,
152153
* Read if the bit has been set.
153154
*/
154155
if (eeprom->reg_data_out)
155-
buf |= (1 << (i - 1));
156+
buf |= BIT(i - 1);
156157

157158
eeprom_93cx6_pulse_low(eeprom);
158159
}
@@ -186,6 +187,11 @@ void eeprom_93cx6_read(struct eeprom_93cx6 *eeprom, const u8 word,
186187
eeprom_93cx6_write_bits(eeprom, command,
187188
PCI_EEPROM_WIDTH_OPCODE + eeprom->width);
188189

190+
if (has_quirk_extra_read_cycle(eeprom)) {
191+
eeprom_93cx6_pulse_high(eeprom);
192+
eeprom_93cx6_pulse_low(eeprom);
193+
}
194+
189195
/*
190196
* Read the requested 16 bits.
191197
*/
@@ -252,6 +258,11 @@ void eeprom_93cx6_readb(struct eeprom_93cx6 *eeprom, const u8 byte,
252258
eeprom_93cx6_write_bits(eeprom, command,
253259
PCI_EEPROM_WIDTH_OPCODE + eeprom->width + 1);
254260

261+
if (has_quirk_extra_read_cycle(eeprom)) {
262+
eeprom_93cx6_pulse_high(eeprom);
263+
eeprom_93cx6_pulse_low(eeprom);
264+
}
265+
255266
/*
256267
* Read the requested 8 bits.
257268
*/

drivers/tty/serial/8250/8250_aspeed_vuart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ static struct platform_driver aspeed_vuart_driver = {
569569
.of_match_table = aspeed_vuart_table,
570570
},
571571
.probe = aspeed_vuart_probe,
572-
.remove_new = aspeed_vuart_remove,
572+
.remove = aspeed_vuart_remove,
573573
};
574574

575575
module_platform_driver(aspeed_vuart_driver);

drivers/tty/serial/8250/8250_bcm2835aux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static struct platform_driver bcm2835aux_serial_driver = {
267267
.pm = pm_ptr(&bcm2835aux_dev_pm_ops),
268268
},
269269
.probe = bcm2835aux_serial_probe,
270-
.remove_new = bcm2835aux_serial_remove,
270+
.remove = bcm2835aux_serial_remove,
271271
};
272272
module_platform_driver(bcm2835aux_serial_driver);
273273

drivers/tty/serial/8250/8250_bcm7271.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ static int brcmuart_handle_irq(struct uart_port *p)
812812
/*
813813
* if Receive Data Interrupt is enabled and
814814
* we're uing hardware flow control, deassert
815-
* RTS and wait for any chars in the pipline to
815+
* RTS and wait for any chars in the pipeline to
816816
* arrive and then check for DR again.
817817
*/
818818
if ((ier & UART_IER_RDI) && (up->mcr & UART_MCR_AFE)) {
@@ -1204,7 +1204,7 @@ static struct platform_driver brcmuart_platform_driver = {
12041204
.of_match_table = brcmuart_dt_ids,
12051205
},
12061206
.probe = brcmuart_probe,
1207-
.remove_new = brcmuart_remove,
1207+
.remove = brcmuart_remove,
12081208
};
12091209

12101210
static int __init brcmuart_init(void)

drivers/tty/serial/8250/8250_dw.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ static const struct dw8250_platform_data dw8250_renesas_rzn1_data = {
750750
.quirks = DW_UART_QUIRK_CPR_VALUE | DW_UART_QUIRK_IS_DMA_FC,
751751
};
752752

753-
static const struct dw8250_platform_data dw8250_starfive_jh7100_data = {
753+
static const struct dw8250_platform_data dw8250_skip_set_rate_data = {
754754
.usr_reg = DW_UART_USR,
755755
.quirks = DW_UART_QUIRK_SKIP_SET_RATE,
756756
};
@@ -760,7 +760,8 @@ static const struct of_device_id dw8250_of_match[] = {
760760
{ .compatible = "cavium,octeon-3860-uart", .data = &dw8250_octeon_3860_data },
761761
{ .compatible = "marvell,armada-38x-uart", .data = &dw8250_armada_38x_data },
762762
{ .compatible = "renesas,rzn1-uart", .data = &dw8250_renesas_rzn1_data },
763-
{ .compatible = "starfive,jh7100-uart", .data = &dw8250_starfive_jh7100_data },
763+
{ .compatible = "sophgo,sg2044-uart", .data = &dw8250_skip_set_rate_data },
764+
{ .compatible = "starfive,jh7100-uart", .data = &dw8250_skip_set_rate_data },
764765
{ /* Sentinel */ }
765766
};
766767
MODULE_DEVICE_TABLE(of, dw8250_of_match);
@@ -796,7 +797,7 @@ static struct platform_driver dw8250_platform_driver = {
796797
.acpi_match_table = dw8250_acpi_match,
797798
},
798799
.probe = dw8250_probe,
799-
.remove_new = dw8250_remove,
800+
.remove = dw8250_remove,
800801
};
801802

802803
module_platform_driver(dw8250_platform_driver);

0 commit comments

Comments
 (0)