Merge tag 'tty-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty

Pull serial driver fixes from Greg KH:
"Here are three small serial driver fixes tree. They resolve some
reported issues:

- stm32 break control fix

- 8250 runtime pm usage counter fix

- imx driver locking fix

All have been in my tree and linux-next for three weeks now, with no
reported issues"

* tag 'tty-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
serial: stm32: use port lock wrappers for break control
serial: imx: Use uart_port_lock_irq() instead of uart_port_lock()
tty: serial: 8250: Fix another runtime PM usage counter underflow

Changed files
+7 -4
drivers
tty
+3
drivers/tty/serial/8250/8250_core.c
··· 812 812 uart->dl_write = up->dl_write; 813 813 814 814 if (uart->port.type != PORT_8250_CIR) { 815 + if (uart_console_registered(&uart->port)) 816 + pm_runtime_get_sync(uart->port.dev); 817 + 815 818 if (serial8250_isa_config != NULL) 816 819 serial8250_isa_config(0, &uart->port, 817 820 &uart->capabilities);
+2 -2
drivers/tty/serial/imx.c
··· 2692 2692 { 2693 2693 u32 ucr3; 2694 2694 2695 - uart_port_lock(&sport->port); 2695 + uart_port_lock_irq(&sport->port); 2696 2696 2697 2697 ucr3 = imx_uart_readl(sport, UCR3); 2698 2698 if (on) { ··· 2714 2714 imx_uart_writel(sport, ucr1, UCR1); 2715 2715 } 2716 2716 2717 - uart_port_unlock(&sport->port); 2717 + uart_port_unlock_irq(&sport->port); 2718 2718 } 2719 2719 2720 2720 static int imx_uart_suspend_noirq(struct device *dev)
+2 -2
drivers/tty/serial/stm32-usart.c
··· 1051 1051 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; 1052 1052 unsigned long flags; 1053 1053 1054 - spin_lock_irqsave(&port->lock, flags); 1054 + uart_port_lock_irqsave(port, &flags); 1055 1055 1056 1056 if (break_state) 1057 1057 stm32_usart_set_bits(port, ofs->rqr, USART_RQR_SBKRQ); 1058 1058 else 1059 1059 stm32_usart_clr_bits(port, ofs->rqr, USART_RQR_SBKRQ); 1060 1060 1061 - spin_unlock_irqrestore(&port->lock, flags); 1061 + uart_port_unlock_irqrestore(port, flags); 1062 1062 } 1063 1063 1064 1064 static int stm32_usart_startup(struct uart_port *port)