Skip to content

Commit 0674eca

Browse files
lopsided98mehmetb0
authored andcommitted
serial: stm32: use port lock wrappers for break control
BugLink: https://bugs.launchpad.net/bugs/2106770 commit 0cfc36e upstream. Commit 30e9458 ("serial: stm32: add support for break control") added another usage of the port lock, but was merged on the same day as c5d0666 ("serial: stm32: Use port lock wrappers"), therefore the latter did not update this usage to use the port lock wrappers. Fixes: c5d0666 ("serial: stm32: Use port lock wrappers") Cc: stable <stable@kernel.org> Signed-off-by: Ben Wolsieffer <ben.wolsieffer@hefring.com> Reviewed-by: John Ogness <john.ogness@linutronix.de> Link: https://lore.kernel.org/r/20241216145323.111612-1-ben.wolsieffer@hefring.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
1 parent de014e5 commit 0674eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/stm32-usart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,14 +1059,14 @@ static void stm32_usart_break_ctl(struct uart_port *port, int break_state)
10591059
const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs;
10601060
unsigned long flags;
10611061

1062-
spin_lock_irqsave(&port->lock, flags);
1062+
uart_port_lock_irqsave(port, &flags);
10631063

10641064
if (break_state)
10651065
stm32_usart_set_bits(port, ofs->rqr, USART_RQR_SBKRQ);
10661066
else
10671067
stm32_usart_clr_bits(port, ofs->rqr, USART_RQR_SBKRQ);
10681068

1069-
spin_unlock_irqrestore(&port->lock, flags);
1069+
uart_port_unlock_irqrestore(port, flags);
10701070
}
10711071

10721072
static int stm32_usart_startup(struct uart_port *port)

0 commit comments

Comments
 (0)