[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240210215147.77629-12-michael.zaidman@gmail.com>
Date: Sat, 10 Feb 2024 23:51:39 +0200
From: Michael Zaidman <michael.zaidman@...il.com>
To: chrysh@...istina-quast.de,
daniel.beer@...rinstitute.com,
jikos@...nel.org
Cc: linux-kernel@...r.kernel.org,
linux-input@...r.kernel.org,
linux-serial@...r.kernel.org,
ilpo.jarvinen@...ux.intel.com,
johan@...nel.org,
gregkh@...uxfoundation.org,
equinox@...c24.net,
michael.zaidman@...il.com
Subject: [PATCH v1 11/19] hid-ft260: uart: do not disable wakeup workaround twice
The wakeup workaround is terminated twice: first in the
ft260_uart_port_shutdown and then, in the ft260_uart_port_remove routine.
We do not need to do it in the ft260_uart_port_remove routine since
it's always called when the wakeup mechanism is inactive:
1. Upon the ft260_uart_probe failure.
2. Upon the device/driver removal.
Signed-off-by: Michael Zaidman <michael.zaidman@...il.com>
---
drivers/hid/hid-ft260.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hid/hid-ft260.c b/drivers/hid/hid-ft260.c
index 63839f02e9b5..f8d4bf7e6c4f 100644
--- a/drivers/hid/hid-ft260.c
+++ b/drivers/hid/hid-ft260.c
@@ -1124,7 +1124,6 @@ static void ft260_uart_port_remove(struct ft260_device *port)
spin_unlock(&port->write_lock);
mutex_lock(&port->port.mutex);
- ft260_uart_wakeup_workaraund_enable(port, false);
tty_port_tty_hangup(&port->port, false);
mutex_unlock(&port->port.mutex);
--
2.40.1
Powered by blists - more mailing lists