[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <123a1cf0-1eac-03bd-6628-8c67004eadc5@linux.intel.com>
Date: Wed, 7 Aug 2019 11:01:21 -0500
From: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
To: Daniel Baluta <daniel.baluta@...il.com>
Cc: Mark Rutland <mark.rutland@....com>,
Aisheng Dong <aisheng.dong@....com>,
Peng Fan <peng.fan@....com>,
Fabio Estevam <festevam@...il.com>,
Anson Huang <anson.huang@....com>,
Devicetree List <devicetree@...r.kernel.org>,
Daniel Baluta <daniel.baluta@....com>,
"S.j. Wang" <shengjiu.wang@....com>,
Marco Felsch <m.felsch@...gutronix.de>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Paul Olaru <paul.olaru@....com>,
Rob Herring <robh+dt@...nel.org>,
dl-linux-imx <linux-imx@....com>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Leonard Crestez <leonard.crestez@....com>,
Shawn Guo <shawnguo@...nel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
sound-open-firmware@...a-project.org
Subject: Re: [Sound-open-firmware] [PATCH v2 3/5] ASoC: SOF: Add DT DSP device
support
On 8/7/19 10:29 AM, Daniel Baluta wrote:
> On Tue, Jul 23, 2019 at 6:19 PM Pierre-Louis Bossart
> <pierre-louis.bossart@...ux.intel.com> wrote:
>>
>>
>>> diff --git a/sound/soc/sof/Kconfig b/sound/soc/sof/Kconfig
>>> index 61b97fc55bb2..2aa3a1cdf60c 100644
>>> --- a/sound/soc/sof/Kconfig
>>> +++ b/sound/soc/sof/Kconfig
>>> @@ -36,6 +36,15 @@ config SND_SOC_SOF_ACPI
>>> Say Y if you need this option
>>> If unsure select "N".
>>>
>>> +config SND_SOC_SOF_DT
>>> + tristate "SOF DT enumeration support"
>>> + select SND_SOC_SOF
>>> + select SND_SOC_SOF_OPTIONS
>>> + help
>>> + This adds support for Device Tree enumeration. This option is
>>> + required to enable i.MX8 devices.
>>> + Say Y if you need this option. If unsure select "N".
>>> +
>>
>> [snip]
>>
>>> diff --git a/sound/soc/sof/imx/Kconfig b/sound/soc/sof/imx/Kconfig
>>> index fff64a9970f0..fa35994a79c4 100644
>>> --- a/sound/soc/sof/imx/Kconfig
>>> +++ b/sound/soc/sof/imx/Kconfig
>>> @@ -12,6 +12,7 @@ if SND_SOC_SOF_IMX_TOPLEVEL
>>>
>>> config SND_SOC_SOF_IMX8
>>> tristate "SOF support for i.MX8"
>>> + select SND_SOC_SOF_DT
>>
>> This looks upside down. You should select SOF_DT first then include the
>> NXP stuff.
>
> One more thing: So this should be 'depends on SND_SOC_SOF_DT' right?
I would do this:
config SND_SOC_SOF_DT
tristate "SOF DT enumeration support"
depends on OF # or whatever the top-level DT dependency is
select SND_SOC_SOF
select SND_SOC_SOF_OPTIONS
config SND_SOC_SOF_IMX_TOPLEVEL
bool "SOF support for NXP i.MX audio DSPs"
depends on ARM64 && SND_SOC_SOF_DT || COMPILE_TEST
if SND_SOC_SOF_IMX_TOPLEVEL
config SND_SOC_SOF_IMX8
tristate "SOF support for i.MX8"
In other words push the dependencies at a higher level.
Powered by blists - more mailing lists