SDK2.9.0 - QSPI and TWI driver power management (CONFIG_PM_DEVICE_RUNTIME)

Hi.

After migration from SDK2.7.0 to SDK2.9.0 I have issues with power mangement. CONFIG_PM_DEVICE_RUNTIME=y, which I used, causes that twi driver doesn't start. I try to manage with this issue and call pm_device_runtime_enable(i2c_dev) when I init only device which I have on TWI bus. 

1. Is it right way? Is it enough to make that twi_driver power management works automatically?

2. How to manage qspi driver? (I have external flash on board). The same way will be OK? In this case, I have no idea where to call pm_device_runtime_enable.

Best regards

PW

 

Related