Message ID | 47fc2167-bf0a-866a-e075-8247a10aa6e0@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wed, Apr 12, 2017 at 3:22 PM, Randy Dunlap <rdunlap@infradead.org> wrote: > --- linux-next-20170412.orig/drivers/soc/imx/Kconfig > +++ linux-next-20170412/drivers/soc/imx/Kconfig > @@ -2,6 +2,7 @@ menu "i.MX SoC drivers" > > config IMX7_PM_DOMAINS > bool "i.MX7 PM domains" > + depends on PM > select PM_GENERIC_DOMAINS Could this be: select PM_GENERIC_DOMAINS if PM instead?
On 04/12/17 11:26, Fabio Estevam wrote: > On Wed, Apr 12, 2017 at 3:22 PM, Randy Dunlap <rdunlap@infradead.org> wrote: > >> --- linux-next-20170412.orig/drivers/soc/imx/Kconfig >> +++ linux-next-20170412/drivers/soc/imx/Kconfig >> @@ -2,6 +2,7 @@ menu "i.MX SoC drivers" >> >> config IMX7_PM_DOMAINS >> bool "i.MX7 PM domains" >> + depends on PM >> select PM_GENERIC_DOMAINS > > Could this be: > > select PM_GENERIC_DOMAINS if PM instead? > You want IMX7_PM_DOMAINS to be built without having PM_GENERIC_DOMAINS enabled? On x86, your suggestion works for me... because of this in drivers/soc/Makefile: obj-$(CONFIG_ARCH_MXC) += imx/ and I don't have CONFIG_ARCH_MXC, so the gpc* binaries are not being built at all. This might be a small bug.
On Wed, Apr 12, 2017 at 4:24 PM, Randy Dunlap <rdunlap@infradead.org> wrote: > You want IMX7_PM_DOMAINS to be built without having > PM_GENERIC_DOMAINS enabled? > > On x86, your suggestion works for me... because of this > in drivers/soc/Makefile: > > obj-$(CONFIG_ARCH_MXC) += imx/ > > and I don't have CONFIG_ARCH_MXC, so the gpc* binaries are > not being built at all. This might be a small bug. Just tested your patch with imx_v6_v7_defconfig + manually doing CONFIG_PM=n and it does fix the build error, thanks: Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
--- linux-next-20170412.orig/drivers/soc/imx/Kconfig +++ linux-next-20170412/drivers/soc/imx/Kconfig @@ -2,6 +2,7 @@ menu "i.MX SoC drivers" config IMX7_PM_DOMAINS bool "i.MX7 PM domains" + depends on PM select PM_GENERIC_DOMAINS depends on SOC_IMX7D || (COMPILE_TEST && OF) default y if SOC_IMX7D