| From 859f7c56709b161a72b629b6f2f1384dcd374404 Mon Sep 17 00:00:00 2001 | |
| From: Josef Bacik <josef@toxicpanda.com> | |
| Date: Tue, 27 Oct 2026 12:06:46 +0100 | |
| Subject: serial: rda: free the interrupt on shutdown | |
| MIME-Version: 1.0 | |
| Content-Type: text/plain; charset=UTF-8 | |
| Content-Transfer-Encoding: 8bit | |
| From: Josef Bacik <josef@toxicpanda.com> | |
| commit 859f7c56709b161a72b629b6f2f1384dcd374404 upstream. | |
| rda_uart_startup() requests the interrupt, and nothing ever frees it. | |
| It is not shared, so once the port has been closed, the next startup | |
| fails with -EBUSY and the port cannot be opened any more. | |
| Free it in rda_uart_shutdown(). | |
| Fixes: c10b13325ced ("tty: serial: Add RDA8810PL UART driver") | |
| Cc: stable <stable@kernel.org> | |
| Cc: Jiri Slaby <jirislaby@kernel.org> | |
| Cc: Arnd Bergmann <arnd@arndb.de> | |
| Cc: "Andreas Färber" <afaerber@suse.de> | |
| Cc: Olof Johansson <olof@lixom.net> | |
| Signed-off-by: Josef Bacik <josef@toxicpanda.com> | |
| Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> | |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
| Link: https://patch.msgid.link/20261027-tty-llm-v1-20-99b0202ae546@linuxfoundation.org | |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
| --- | |
| drivers/tty/serial/rda-uart.c | 2 ++ | |
| 1 file changed, 2 insertions(+) | |
| --- a/drivers/tty/serial/rda-uart.c | |
| +++ b/drivers/tty/serial/rda-uart.c | |
| @@ -471,6 +471,8 @@ static void rda_uart_shutdown(struct uar | |
| rda_uart_write(port, val, RDA_UART_CTRL); | |
| uart_port_unlock_irqrestore(port, flags); | |
| + | |
| + free_irq(port->irq, port); | |
| } | |
| static const char *rda_uart_type(struct uart_port *port) |