From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
tiwai@suse.de, vkoul@kernel.org, gregkh@linuxfoundation.org,
liam.r.girdwood@linux.intel.com, jank@cadence.com,
joe@perches.com
Subject: Re: [alsa-devel] [PATCH 0/2] soundwire: fix Kconfig select/depend issues
Date: Fri, 12 Apr 2019 09:56:21 -0500 [thread overview]
Message-ID: <0f6431b2-169e-4146-8f53-1ff2efac4d74@linux.intel.com> (raw)
In-Reply-To: <20190412142748.GB6235@sirena.org.uk>
>>> Removing SOUNDWIRE_BUS Kconfig did clean it up and made it bit more
>>> align with others
>
>> Good point, but no. This is intentional and follows the Kconfig pattern
>> pattern described by Takashi at https://lkml.org/lkml/2017/11/17/47
>
>> yes, this SOUNDWIRE is overkill for now, but let's assume there is a second
>> non-intel implementation (which I understand as very likely given all the
>> threads on ARM64 support). In that case you'd really want a top-level
>> selector option that has no actual compilation impact - not used in any
>> Makefile or code - but enables the sub-options and let users/distros select
>> the platforms they care about.
>
> I don't understand what you're saying here - what is the intended
> difference between SOUNDWIRE and SOUNDWIRE_BUS? Having the separate
> option for _INTEL for your controller makes sense but otherwise the
> normal pattern for a bus would be that you'd have the root config
> option for the bus (which would enable the core code for the bus) and
> then everything else is hidden behind that.
I was thinking of this pattern:
config SOUNDWIRE
bool "SoundWire support"
if SOUNDWIRE
config SOUNDWIRE_INTEL
tristate "SoundWire for Intel"
select SOUNDWIRE_BUS
config SOUNDWIRE_XYZ_ARM64
tristate "SoundWire for XYZ platform"
select SOUNDWIRE_BUS
config SOUNDWIRE_BUS
tristate
endif
One could argue that SOUNDWIRE could select SOUNDWIRE_BUS directly, or
merge the two, but then you could have a configuration where the bus is
included with no actual users. Not to mention that the intent of the
top-level selector is typically to have no impact on compilation as
recommended by Linus.
next prev parent reply other threads:[~2019-04-12 14:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-11 19:28 [PATCH 0/2] soundwire: fix Kconfig select/depend issues Pierre-Louis Bossart
2019-04-11 19:28 ` [PATCH 1/2] regmap: soundwire: fix Kconfig select/depend issue Pierre-Louis Bossart
2019-04-12 8:38 ` Takashi Iwai
2019-04-12 8:46 ` Mark Brown
2019-04-12 14:07 ` [alsa-devel] " Pierre-Louis Bossart
2019-04-12 14:18 ` Mark Brown
2019-04-12 14:21 ` Takashi Iwai
2019-04-14 10:20 ` Vinod Koul
2019-04-11 19:28 ` [PATCH 2/2] soundwire: fix SOUNDWIRE_BUS option Pierre-Louis Bossart
2019-04-12 10:06 ` [PATCH 0/2] soundwire: fix Kconfig select/depend issues Srinivas Kandagatla
2019-04-12 14:17 ` [alsa-devel] " Pierre-Louis Bossart
2019-04-12 14:27 ` Mark Brown
2019-04-12 14:56 ` Pierre-Louis Bossart [this message]
2019-04-14 10:13 ` Vinod Koul
2019-04-15 12:50 ` [alsa-devel] " Pierre-Louis Bossart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0f6431b2-169e-4146-8f53-1ff2efac4d74@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jank@cadence.com \
--cc=joe@perches.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=tiwai@suse.de \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox