# Re: \[PATCH v2\] can: c\_can: move runtime PM enable/disable to c\_can\_platform

- From: Uwe Kleine-König \<hidden\>
- Date: 2021-03-05 11:33:40 
- List: linux-can
- Page: https://ratatoskr.run/linux-can/2021/03/6289470
- Thread: https://ratatoskr.run/linux-can/2021/03/6281059/t.md

```text
On Mon, Mar 01, 2021 at 09:55:40PM -0500, Tong Zhang wrote:
> Currently doing modprobe c_can_pci will make kernel complain
> "Unbalanced pm_runtime_enable!", this is caused by pm_runtime_enable()
> called before pm is initialized.
> This fix is similar to 227619c3ff7c, move those pm_enable/disable code to
> c_can_platform.

I can confirm this makes the warning go away on a Congatec Atom board. I
didn't do any further runtime tests.

Tested-by: Uwe Kleine-König <redacted>

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-can/2021/03/6289470/attachment/0) (application/pgp-signature, 488 bytes)
