From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudeep Holla Subject: [QUERY] AMBA: PM domains when !CONFIG_PM Date: Thu, 16 Jun 2016 12:19:13 +0100 Message-ID: <57628B31.3090901@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Ulf Hansson , Marek Szyprowski , Kevin Hilman Cc: Russell King , "linux-pm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Sudeep Holla List-Id: linux-pm@vger.kernel.org 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: sudeep.holla@arm.com (Sudeep Holla) Date: Thu, 16 Jun 2016 12:19:13 +0100 Subject: [QUERY] AMBA: PM domains when !CONFIG_PM Message-ID: <57628B31.3090901@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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