[QUERY] AMBA: PM domains when !CONFIG_PM
Sudeep Holla
sudeep.holla at arm.com
Thu Jun 16 04:19:13 PDT 2016
Hi Ulf, Kevin,
I have a situation where we need to enable the power domain to access an
AMBA device. This is all fine with patches from Ulf and Marek in amba/bus.c
The problem is when we disable CONFIG_PM, dev_pm_domain_attach
returns -ENODEV irrespective of whether a DT node has a PM domain
in it or not. If dev_pm_domain_attach returns anything other than
-EPROBE_DEFER, we ignore the error and proceed to access the device
which will explode.
Basically, we need a way to prevent addition of that amba device if DT
node has PD specified but CONFIG_PM=n. Any thoughts ?
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list