aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/serial_core.c
AgeCommit message (Expand)AuthorFilesLines
13 daysserial: Clear UPF_DEAD before calling tty_port_register_device_attr_serdev()Hans de Goede1-2/+4
2024-05-04serial: core: Call device_set_awake_path() for console portClaudiu Beznea1-0/+1
2024-04-23Merge 6.9-rc5 into tty-nextGreg Kroah-Hartman1-4/+18
2024-04-17serial: core: Extract uart_alloc_xmit_buf() and uart_free_xmit_buf()Andy Shevchenko1-44/+54
2024-04-17serial: drop debugging WARN_ON_ONCE() from uart_put_char()Jiri Slaby (SUSE)1-1/+1
2024-04-11serial: core: Fix missing shutdown and startup for serial base portTony Lindgren1-3/+17
2024-04-09serial: core: Clearing the circular buffer before NULLifying itAndy Shevchenko1-0/+1
2024-04-09serial: core: Fix regression when runtime PM is not enabledTony Lindgren1-1/+1
2024-04-09serial: core: Add support for DEVNAME:0.0 style naming for kernel consoleTony Lindgren1-0/+4
2024-04-09tty: serial: switch from circ_buf to kfifoJiri Slaby (SUSE)1-35/+21
2024-03-05serial: Lock console when calling into driver before registrationPeter Collingbourne1-0/+12
2024-01-27serial: core: Fix atomicity violation in uart_tiocmgetGui-Dong Han1-1/+1
2024-01-04serial: core, imx: do not set RS485 enabled if it is not supportedLino Sanfilippo1-0/+3
2024-01-04serial: core: make sure RS485 cannot be enabled when it is not supportedLino Sanfilippo1-1/+1
2024-01-04serial: core: fix sanitizing check for RTS settingsLino Sanfilippo1-10/+18
2024-01-04serial: core: set missing supported flag for RX during TX GPIOLino Sanfilippo1-0/+2
2024-01-04serial: Do not hold the port lock when setting rx-during-tx GPIOLino Sanfilippo1-2/+24
2024-01-04tty: serial: kgdboc: Fix 8250_* kgdb over serialMichael Trimarchi1-1/+2
2024-01-04tty: serial: Add RS422 flag to struct serial_rs485Crescent CY Hsieh1-0/+6
2024-01-04serial: core: Clean up uart_update_timeout() functionVamshi Gajjela1-4/+3
2023-12-08tty: make tty_operations::send_xchar accept u8 charJiri Slaby (SUSE)1-1/+1
2023-11-25serial: core: Revert checks for tx runtime PM stateTony Lindgren1-1/+1
2023-11-25serial: core: Move tty and serdev to be children of serial core port deviceTony Lindgren1-3/+4
2023-10-24serial: core: Fix runtime PM handling for pending txTony Lindgren1-1/+1
2023-10-16serial: core: tidy invalid baudrate handling in uart_get_baud_rateMax Filippov1-3/+1
2023-10-16Merge 6.6-rc6 into tty-nextGreg Kroah-Hartman1-5/+10
2023-10-07serial: core: Fix checks for tx runtime PM stateTony Lindgren1-1/+1
2023-10-07serial: initialize retinfo in uart_get_info()Alexey Dobriyan1-0/+3
2023-10-05serial: core: Simplify uart_get_rs485_mode()Andy Shevchenko1-18/+12
2023-10-03serial: Reduce spinlocked portion of uart_rs485_config()Lukas Wunner1-4/+9
2023-09-18serial: core: Use port lock wrappersThomas Gleixner1-44/+44
2023-08-11tty: make tty_operations::write()'s count size_tJiri Slaby (SUSE)1-1/+1
2023-08-11tty: propagate u8 data to tty_operations::put_char()Jiri Slaby (SUSE)1-1/+1
2023-08-11tty: propagate u8 data to tty_operations::write()Jiri Slaby (SUSE)1-2/+1
2023-07-31serial: move WARN_ON() in uart_write() to the conditionJiri Slaby1-6/+2
2023-07-25serial: pass state to __uart_start() directlyJiri Slaby1-5/+4
2023-07-25serial: make uart_insert_char() accept u8sJiri Slaby1-1/+1
2023-07-25serial: convert uart sysrq handling to u8Jiri Slaby1-2/+2
2023-06-02serial: core: Fix error handling for serial_core_ctrl_device_add()Tony Lindgren1-2/+2
2023-06-01serial: core: Don't drop port_mutex in serial_core_remove_one_portSteven Price1-3/+1
2023-05-31serial: core: Start managing serial controllers to enable runtime PMTony Lindgren1-21/+171
2023-05-30serial: core: lock port for start_rx() in uart_resume_port()John Ogness1-1/+4
2023-05-30serial: core: lock port for stop_rx() in uart_suspend_port()John Ogness1-1/+4
2023-05-13serial: Make uart_remove_one_port() return voidUwe Kleine-König1-5/+1
2023-04-20serial: core: Disable uart_start() on uart_remove_one_port()Tony Lindgren1-1/+1
2023-04-20serial: fix TIOCSRS485 lockingJohan Hovold1-2/+2
2023-03-29serial: uart_poll_init() should power on the UARTDouglas Anderson1-0/+6
2023-03-17serial: Remove uart_wait_until_sent() forward declarationIlpo Järvinen1-1/+0
2023-03-17serial: Rename hw_stopped to old_hw_stopped & improve logicIlpo Järvinen1-6/+5
2023-03-17serial: Make hw_stopped boolIlpo Järvinen1-3/+3
2023-03-17serial: Rename uart_change_speed() to uart_change_line_settings()Ilpo Järvinen1-6/+6
2023-03-17serial: Move uart_change_speed() earlierIlpo Järvinen1-48/+46
2023-03-17serial: Use B0 instead of implicit zero assumptionIlpo Järvinen1-2/+2
2023-03-17serial: Use ARRAY_SIZE() with iso7816 reserved arrayIlpo Järvinen1-1/+2
2023-01-22Merge 6.2-rc5 into tty-nextGreg Kroah-Hartman1-0/+5
2023-01-19tty: Call ->dtr_rts() parameter active consistentlyIlpo Järvinen1-4/+4
2023-01-19serial: Make uart_handle_cts_change() status param bool activeIlpo Järvinen1-4/+4
2023-01-19tty/serial: Make ->dcd_change()+uart_handle_dcd_change() status bool activeIlpo Järvinen1-4/+4
2023-01-19tty: Convert ->dtr_rts() to take bool argumentIlpo Järvinen1-4/+4
2023-01-19tty: Convert ->carrier_raised() and callchains to boolIlpo Järvinen1-5/+4
2023-01-19serial: Convert uart_{,port_}startup() init_hw param to boolIlpo Järvinen1-5/+5
2023-01-19tty: Cleanup tty_port_set_active() bool parameterIlpo Järvinen1-2/+2
2023-01-19tty: Cleamup tty_port_set_suspended() bool parameterIlpo Järvinen1-4/+4
2023-01-19tty: Cleanup tty_port_set_initialized() bool parameterIlpo Järvinen1-3/+3
2023-01-19serial: core: Add option to output RS485 RX_DURING_TX state via GPIOChristoph Niedermaier1-0/+12
2023-01-16tty: serial: kgdboc: fix mutex locking order for configure_kgdboc()John Ogness1-0/+5
2022-12-02serial_core: replace uart_console_enabled() with uart_console_registered()John Ogness1-7/+7
2022-09-25serial: Deassert Transmit Enable on probe in driver-specific wayLukas Wunner1-16/+20
2022-08-30tty: Make ->set_termios() old ktermios constIlpo Järvinen1-3/+3
2022-08-30serial: Make ->set_termios() old ktermios constIlpo Järvinen1-1/+1
2022-08-30tty: move from strlcpy with unused retval to strscpyWolfram Sang1-1/+1
2022-08-08Merge tag 'tty-6.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-156/+296
2022-07-28tty: serial: document uart_get_console()Jiri Slaby1-4/+9
2022-07-28tty: serial: serial_core, reformat kernel-doc for functionsJiri Slaby1-54/+53
2022-07-28Documentation: serial: dedup kernel-doc for uart functionsJiri Slaby1-59/+82
2022-07-14serial: core: sanitize RS485 delays read from device treeLino Sanfilippo1-0/+2
2022-07-14serial: core: move sanitizing of RS485 delays into own functionLino Sanfilippo1-20/+26
2022-07-14serial: core, 8250: set RS485 termination GPIO in serial coreLino Sanfilippo1-0/+12
2022-07-08serial: RS485 termination is supported if DT provides oneIlpo Järvinen1-0/+2
2022-07-08serial: Embed rs485_supported to uart_portIlpo Järvinen1-4/+4
2022-06-30serial: 8250: Fix PM usage_count for console handoverIlpo Järvinen1-5/+0
2022-06-27serial: Support for RS-485 multipoint addressesIlpo Järvinen1-1/+21
2022-06-27serial: take termios_rwsem for ->rs485_config() & pass termios as paramIlpo Järvinen1-4/+10
2022-06-27serial: Drop timeout from uart_portIlpo Järvinen1-15/+10
2022-06-20Merge tag 'v5.19-rc3' into tty-nextGreg Kroah-Hartman1-3/+6
2022-06-10serial: return -EINVAL for non-legacy RS485 flagsIlpo Järvinen1-0/+24
2022-06-10serial: Clear rs485 struct when non-RS485 mode is setIlpo Järvinen1-1/+11
2022-06-10serial: Sanitize rs485_structIlpo Järvinen1-4/+29
2022-06-10serial: Move serial_rs485 sanitization into separate functionIlpo Järvinen1-25/+30
2022-06-10serial: Add uart_rs485_config()Ilpo Järvinen1-0/+6
2022-06-10serial: core: Introduce callback for start_rx and do stop_rx in suspend only ...Vijaya Krishna Nivarthi1-3/+6
2022-05-19serial: core: Do stop_rx in suspend path for console if console_suspend is di...Vijaya Krishna Nivarthi1-2/+9
2022-04-26serial: Store character timing information to uart_portIlpo Järvinen1-6/+8
2022-04-22serial: core: fix tcdrain() with CTS enabledTomasz Moń1-12/+14
2022-04-15serial: When UART is suspended, set RTS to falseAl Cooper1-0/+5
2022-04-15serial: core: move RS485 configuration tasks from drivers into coreLino Sanfilippo1-0/+33
2022-03-18serial: 8250: fix XOFF/XON sending when DMA is usedIlpo Järvinen1-0/+14
2022-03-03serial: make uart_console_write->putchar()'s character an unsigned charJiri Slaby1-1/+1
2022-02-04serial: core: Drop duplicate NULL check in uart_*shutdown()Andy Shevchenko1-4/+2
2022-01-30Merge tag 'v5.17-rc2' into tty-nextGreg Kroah-Hartman1-22/+12
2022-01-26serial: core: clean up EXPORT_SYMBOLsJiri Slaby1-11/+7
2022-01-26serial: core: Initialize rs485 RTS polarity already on probeLukas Wunner1-22/+12
2022-01-06serial: core: Keep mctrl register state and cached copy in syncLukas Wunner1-1/+2
2021-12-30serial: Fix incorrect rs485 polarity on uart openLukas Wunner1-2/+2
2021-12-06Merge 5.16-rc4 into tty-nextGreg Kroah-Hartman1-1/+17
2021-11-25serial: 8250: Fix RTS modem control while in rs485 modeLukas Wunner1-0/+5
2021-11-25tty: serial, join uport checks in uart_port_shutdown()Jiri Slaby1-8/+4
2021-11-25serial: core: fix transmit-buffer reset and memleakJohan Hovold1-1/+12
2021-10-05serial: core: Fix initializing and restoring termios speedPali Rohár1-2/+14
2021-07-27tty: drop put_tty_driverJiri Slaby1-2/+2
2021-07-27tty: stop using alloc_tty_driverJiri Slaby1-3/+5
2021-07-21serial: core: Report magic multiplier extra baud ratesMaciej W. Rozycki1-0/+8
2021-06-15tty: make tty_get_{char,frame}_size availableJiri Slaby1-27/+3
2021-05-31Merge 5.13-rc4 into tty-nextGreg Kroah-Hartman1-3/+5
2021-05-20tty/serial: clean up uart_match_portJiri Slaby1-7/+9
2021-05-20serial: drop irq-flags initialisationsJohan Hovold1-2/+2
2021-05-13tty: make tty_operations::chars_in_buffer return uintJiri Slaby1-2/+2
2021-05-13serial: core: fix suspicious security_locked_down() callOndrej Mosnacek1-3/+5
2021-05-13tty: make tty_operations::write_room return uintJiri Slaby1-2/+2
2021-04-10serial: core: return early on unsupported ioctlsJohan Hovold1-3/+3
2021-04-10serial: core: drop redundant TIOCGSERIAL memsetJohan Hovold1-2/+0
2021-02-09serial: core: Remove BUG_ON(in_interrupt()) checkAhmed S. Darwish1-4/+4
2021-01-07tty_port: drop last traces of low_latencyJiri Slaby1-3/+0
2020-12-09serial_core: Check for port state when tty is in error stateAlexey Kardashevskiy1-0/+4
2020-09-21Merge 5.9.0-rc6 into tty-nextGreg Kroah-Hartman1-24/+20
2020-09-16serial: core: fix console port-lock regressionJohan Hovold1-17/+15
2020-09-16serial: core: fix port-lock initialisationJohan Hovold1-8/+6
2020-09-04serial: core: Simplify with dev_err_probe()Krzysztof Kozlowski1-3/+1
2020-08-31Merge 5.9-rc3 into tty-nextGreg Kroah-Hartman1-1/+1
2020-08-28serial: core: don't use snprintf() for formatting sysfs attrsAlex Dewar1-13/+13
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-07-21serial: core: Fix Coding StyleTamseel Shams1-1/+3
2020-07-20Merge 5.8-rc6 into tty-nextGreg Kroah-Hartman1-98/+17
2020-07-10serial: core: Initialise spin lock before use in uart_configure_port()Andy Shevchenko1-2/+14
2020-06-27serial: core: fix sysrq overhead regressionJohan Hovold1-97/+2
2020-06-27Revert "serial: core: Refactor uart_unlock_and_check_sysrq()"Johan Hovold1-10/+13
2020-06-27serial: core: drop unnecessary gpio includeJohan Hovold1-0/+1
2020-06-27tty/serial: fix serial_core.c kernel-doc warningsRandy Dunlap1-2/+1
2020-05-29serial: 8250: Support rs485 bus termination GPIOLukas Wunner1-0/+16
2020-05-15serial: Allow uart_get_rs485_mode() to return errnoLukas Wunner1-1/+5
2020-03-17serial: core: Allow detach and attach serial device for consoleAndy Shevchenko1-4/+56
2020-03-12serial: core: Refactor uart_unlock_and_check_sysrq()Andy Shevchenko1-13/+10
2020-03-12serial: core: Use uart_console() helper in SysRq codeAndy Shevchenko1-7/+5
2020-03-12serial: core: Print escaped SysRq Magic sequence if enabledAndy Shevchenko1-1/+4
2020-03-12serial: core: Use string length for SysRq magic sequenceAndy Shevchenko1-3/+4
2020-03-07serial/sysrq: Add MAGIC_SYSRQ_SERIAL_SEQUENCEDmitry Safonov1-7/+68
2020-02-17serial: core: Switch to use DEVICE_ATTR_RO()Andy Shevchenko1-29/+28
2020-02-14serial: core: use octal permissions on module paramAndy Shevchenko1-13/+13
2020-02-14serial: core: Consolidate spin lock initialization codeAndy Shevchenko1-18/+16
2020-02-14serial: core: Introduce uart_console_enabled() helperAndy Shevchenko1-2/+7
2020-01-10serial_core: Move sysrq functions from header fileDmitry Safonov1-0/+83
2020-01-10tty: serial_core: Export uart_console_device so it can be used by modulesJohn Stultz1-0/+1
2019-12-17tty: link tty and port before configuring it as consoleSudip Mukherjee1-0/+1
2019-11-21serial: serial_core: Perform NULL checks for break_ctl opsJiangfeng Xiao1-1/+1
2019-10-16Revert "serial: core: Use cons->index for preferred console registration"Michal Simek1-2/+1
2019-10-14Merge 5.4-rc3 into tty-nextGreg Kroah-Hartman1-0/+2
2019-10-10serial: fix kernel-doc warning in commentsRandy Dunlap1-0/+2
2019-10-04serial: core: Use cons->index for preferred console registrationMichal Simek1-1/+2
2019-09-28Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+5
2019-08-19lockdown: Lock down TIOCSSERIALDavid Howells1-0/+5
2019-06-18tty: serial_core: Set port active bit in uart_port_activateSerge Semin1-1/+6
2019-04-25tty: serial_core: fix error code returned by uart_register_driver()Sergey Organov1-2/+2
2019-04-25TTY: serial_core, add ->installJiri Slaby1-11/+13
2019-04-16tty:serial_core: Spelling mistakeHariprasad Kelam1-1/+1
2019-02-19tty: serial: remove redundant likely annotationChengguang Xu1-1/+1
2019-01-31serial: fix race between flush_to_ldisc and tty_openGreg Kroah-Hartman1-0/+6
2019-01-18uart: Fix crash in uart_write and uart_put_charSamir Virmani1-4/+8
2018-12-17tty/serial: do not free trasnmit buffer page under port lockSergey Senozhatsky1-6/+16
2018-10-29Merge tag 'tty-4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-0/+60
2018-10-13kill TIOCSER[SG]WILDAl Viro1-5/+0
2018-10-13serial_core: switch to ->[sg]et_serial()Al Viro1-26/+12
2018-10-04Revert "serial:serial_core: Allow use of CTS for PPS line discipline"Greg Kroah-Hartman1-69/+1
2018-10-02tty/serial_core: add ISO7816 infrastructureNicolas Ferre1-0/+60
2018-10-02serial:serial_core: Allow use of CTS for PPS line disciplineSteve Sakoman1-1/+69
2018-07-13uart: fix race between uart_put_char() and uart_shutdown()Tycho Andersen1-5/+12
2018-06-12treewide: kzalloc() -> kcalloc()Kees Cook1-1/+1
2018-06-05Merge tag 'tty-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-2/+2
2018-05-16tty: replace ->proc_fops with ->proc_showChristoph Hellwig1-14/+1
2018-04-23serial: Introduce UPSTAT_SYNC_FIFO for synchronised FIFOsJeremy Kerr1-2/+2
2018-03-23serial: expose buf_overrun count through proc interfaceJeremy Kerr1-0/+2
2018-02-28serial: core: mark port as initialized in autoconfigSebastian Andrzej Siewior1-0/+2
2018-01-22serial: core: mark port as initialized after successful IRQ changeSebastian Andrzej Siewior1-0/+2
2018-01-09serial: core: Make uart_parse_options take const char* argumentPaul Cercueil1-2/+3
2017-11-28serial: core: Support common rs485 binding for RTS polarityLukas Wunner1-3/+10
2017-11-28serial: Make retrieval of rs485 properties platform-agnosticLukas Wunner1-7/+8
2017-11-08tty: serial: Remove redundant license textGreg Kroah-Hartman1-14/+0
2017-11-08tty: add SPDX identifiers to all remaining files in drivers/tty/Greg Kroah-Hartman1-0/+1
2017-11-04serial: core: remove redundant assignment to portColin Ian King1-2/+1
2017-09-18serial: Add common rs485 device tree parsing functionUwe Kleine-König1-0/+36
2017-08-28serial: core: Consider rs485 settings to drive RTSRafael Gago1-9/+25
2017-08-28serial: core: remove unneeded irq_wake flagAndy Shevchenko1-6/+3
2017-07-30serial: core: enforce type for upf_t when copyingAndy Shevchenko1-2/+2
2017-06-13serial: rate limit custom-speed deprecation noticeJohan Hovold1-3/+2
2017-05-18serial: enable serdev supportJohan Hovold1-2/+2
2017-05-18serial: core: fix crash in uart_suspend_portLucas Stach1-1/+1
2017-04-08serial: core: Re-use struct uart_port {name} fieldAndy Shevchenko1-6/+4
2017-03-31tty: serial_core: Add name field to uart_port structVignesh R1-0/+7
2017-03-17tty: serial_core, remove state checks in uart_poll*Jiri Slaby1-12/+5
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-0/+1
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1