Commit 20a41a6
serial: 8250_omap: Use force_suspend and resume for system suspend
We should not rely on autosuspend timeout for system suspend. Instead,
let's use force_suspend and force_resume functions. Otherwise the serial
port controller device may not be idled on suspend.
As we are doing a register write on suspend to configure the serial port,
we still need to runtime PM resume the port on suspend.
While at it, let's switch to pm_runtime_resume_and_get() and check for
errors returned. And let's add the missing line break before return to the
suspend function while at it.
Fixes: 09d8b2b ("serial: 8250: omap: Provide ability to enable/disable UART as wakeup source")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Tested-by: Dhruva Gole <d-gole@ti.com>
Message-ID: <20230614045922.4798-1-tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent f3710f5 commit 20a41a6
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1618 | 1618 | | |
1619 | 1619 | | |
1620 | 1620 | | |
| 1621 | + | |
1621 | 1622 | | |
1622 | 1623 | | |
1623 | 1624 | | |
1624 | | - | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
1625 | 1628 | | |
1626 | 1629 | | |
1627 | 1630 | | |
1628 | | - | |
1629 | | - | |
1630 | | - | |
| 1631 | + | |
1631 | 1632 | | |
1632 | | - | |
| 1633 | + | |
| 1634 | + | |
1633 | 1635 | | |
1634 | 1636 | | |
1635 | 1637 | | |
1636 | 1638 | | |
1637 | 1639 | | |
| 1640 | + | |
1638 | 1641 | | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
1639 | 1645 | | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
1640 | 1650 | | |
1641 | 1651 | | |
1642 | 1652 | | |
| |||
0 commit comments