diff options
Diffstat (limited to '0001-kernel-4.7-async-initialized.patch')
-rw-r--r-- | 0001-kernel-4.7-async-initialized.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/0001-kernel-4.7-async-initialized.patch b/0001-kernel-4.7-async-initialized.patch new file mode 100644 index 000000000000..16d4e1213701 --- /dev/null +++ b/0001-kernel-4.7-async-initialized.patch @@ -0,0 +1,17 @@ +diff -pNaru5 snx_V2.0.5.0.orig-0000/driver/snx_main.c snx_V2.0.5.0/driver/snx_main.c +--- snx_V2.0.5.0.orig-0000/driver/snx_main.c 2019-04-01 15:47:02.000000000 -0400 ++++ snx_V2.0.5.0/driver/snx_main.c 2021-09-14 09:27:18.672123751 -0400 +@@ -1197,11 +1197,13 @@ static int sunix_ser_port_table_init(voi + sp->port.pb_info = sb->pb_info; + sp->port.irq = sb->irq; + sp->port.line = n; + sp->port.uartclk = sp->port.baud_base * 16; + sp->port.iotype = SNX_UPIO_PORT; ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)) + sp->port.flags = ASYNC_SHARE_IRQ; ++#endif + sp->port.ldisc_stop_rx = 0; + spin_lock_init(&sp->port.lock); + + if (sp->port.chip_flag == SUN1889_HWID) { + sp->port.snx_type = SNX_SER_PORT_SUN1889; |