--- zzzz-none-000/linux-5.15.111/drivers/tty/serial/8250/8250_core.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-atom-6670-761/linux-5.15.111/drivers/tty/serial/8250/8250_core.c 2024-02-07 10:23:21.000000000 +0000 @@ -13,6 +13,10 @@ * "serial8250" platform devices * serial8250_register_8250_port() ports */ +/* + * Includes Intel Corporation's changes/modifications dated: 2017, 2019. + * Changed/modified portions - Copyright (c) 2017-2019, Intel Corporation. + */ #include #include @@ -43,6 +47,8 @@ #include "8250.h" +#include + /* * Configuration: * share_irqs - whether we pass IRQF_SHARED to request_irq(). This option @@ -1181,6 +1187,13 @@ ret = sunserial_register_minors(&serial8250_reg, UART_NR); #else serial8250_reg.nr = UART_NR; + +#ifdef CONFIG_INTEL_UART_ENABLE_CONTROL + if (uart_sysfs_create_uart_enable_ctrl()) { + ret = -ENOMEM; + goto out; + } +#endif ret = uart_register_driver(&serial8250_reg); #endif if (ret) @@ -1219,6 +1232,9 @@ uart_unregister_driver(&serial8250_reg); #endif out: +#ifndef CONFIG_INTEL_UART_ENABLE + intel_ce2700_config_atom_uartctrl(0); +#endif return ret; }