Thread (3 messages) 3 messages, 2 authors, 2018-07-23

Re: [PATCH v2] can: m_can: Fix runtime resume call

From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: 2018-07-23 09:47:21
Also in: linux-can, linux-omap, lkml

On 07/03/2018 01:11 PM, Faiz Abbas wrote:
pm_runtime_get_sync() returns a 1 if the state of the device is already
'active'. This is not a failure case and should return a success.

Therefore fix error handling for pm_runtime_get_sync() call such that
it returns success when the value is 1.

Also cleanup the TODO for using runtime PM for sleep mode as that is
implemented.

Signed-off-by: Faiz Abbas <redacted>
Applied to linux-can.

Tnx,
Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help