In function 'lpuart_suspend':
error: 'irq_wake' undeclared (first use in this function)

Signed-off-by: Li Wang <[email protected]>
---
 drivers/tty/serial/fsl_lpuart.c | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c
index c7658ba89fb4..e56e099f01f7 100644
--- a/drivers/tty/serial/fsl_lpuart.c
+++ b/drivers/tty/serial/fsl_lpuart.c
@@ -3196,20 +3196,6 @@ static int __maybe_unused lpuart_suspend(struct device 
*dev)
 
        if (lpuart_uport_is_active(sport)) {
                spin_lock_irqsave(&sport->port.lock, flags);
-       /* uart_suspend_port() might set wakeup flag */
-       irq_wake = irqd_is_wakeup_set(irq_get_irq_data(sport->port.irq));
-
-       if (sport->lpuart_dma_rx_use) {
-               /*
-                * EDMA driver during suspend will forcefully release any
-                * non-idle DMA channels. If port wakeup is enabled or if port
-                * is console port or 'no_console_suspend' is set the Rx DMA
-                * cannot resume as expected, hence gracefully release the
-                * Rx DMA path before suspend and start Rx DMA path on resume.
-                */
-               if (irq_wake) {
-                       lpuart_dma_rx_free(&sport->port);
-               }
 
                /* Disable Rx DMA to use UART port as wakeup source */
                if (lpuart_is_32(sport)) {
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12400): 
https://lists.yoctoproject.org/g/linux-yocto/message/12400
Mute This Topic: https://lists.yoctoproject.org/mt/98367838/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to