can: m_can: select pinctrl state in each suspend/resume function
authorBich HEMON <bich.hemon@st.com>
Mon, 12 Mar 2018 08:52:37 +0000 (08:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:14 +0000 (07:52 +0200)
commit27eebf0800cf12e178aed4526eb95e814eb4de5c
tree650c6db4deaa91aa4462ac25c3335684b881c0e8
parent27fe367cdde0c49c5147ff397ca59fc4a09551de
can: m_can: select pinctrl state in each suspend/resume function

[ Upstream commit c9b3bce18da4a0aebc27853052dea39aa64b7d75 ]

Make sure to apply the correct pin state in suspend/resume callbacks.
Putting pins in sleep state saves power.

Signed-off-by: Bich Hemon <bich.hemon@st.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/m_can/m_can.c