All of lore.kernel.org
 help / color / mirror / Atom feed
* [QUERY] AMBA: PM domains when !CONFIG_PM
@ 2016-06-16 11:19 ` Sudeep Holla
  0 siblings, 0 replies; 4+ messages in thread
From: Sudeep Holla @ 2016-06-16 11:19 UTC (permalink / raw)
  To: Ulf Hansson, Marek Szyprowski, Kevin Hilman
  Cc: Russell King, linux-pm@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, Sudeep Holla

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-16 12:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-16 11:19 [QUERY] AMBA: PM domains when !CONFIG_PM Sudeep Holla
2016-06-16 11:19 ` Sudeep Holla
     [not found] ` <CAPDyKFoV5Y1mHuDZmWgynCicux2deV89npp-siTQDJr0uZFwcg@mail.gmail.com>
2016-06-16 12:47   ` Sudeep Holla
2016-06-16 12:47     ` Sudeep Holla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.