Skip to content

Commit

Permalink
Revert "serial: stm32: select pinctrl state in each suspend/resume fu…
Browse files Browse the repository at this point in the history
…nction"

This reverts commit c70669e as it
breaks the build.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Bich Hemon <bich.hemon@st.com>
Cc: Erwan Le Ray <erwan.leray@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Jun 13, 2019
1 parent ba3684f commit da0f843
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/tty/serial/stm32-usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -1295,17 +1295,13 @@ static int stm32_serial_suspend(struct device *dev)
else
stm32_serial_enable_wakeup(port, false);

pinctrl_pm_select_sleep_state(dev);

return 0;
}

static int stm32_serial_resume(struct device *dev)
{
struct uart_port *port = dev_get_drvdata(dev);

pinctrl_pm_select_default_state(dev);

if (device_may_wakeup(dev))
stm32_serial_enable_wakeup(port, false);

Expand Down

0 comments on commit da0f843

Please sign in to comment.