From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: Mark Brown <broonie@kernel.org>,
Cezary Rojewski <cezary.rojewski@intel.com>,
Liam Girdwood <liam.r.girdwood@linux.intel.com>,
Jie Yang <yang.jie@linux.intel.com>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Hans de Goede <hdegoede@redhat.com>,
Bard Liao <yung-chuan.liao@linux.intel.com>,
Kai Vehmanen <kai.vehmanen@linux.intel.com>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: Intel: Handle device properties with software node API
Date: Tue, 23 Mar 2021 11:28:27 +0200 [thread overview]
Message-ID: <YFm0u9k/DNy5URsR@kuha.fi.intel.com> (raw)
In-Reply-To: <786795eb-6832-fd7d-4674-65be394c083d@linux.intel.com>
On Mon, Mar 22, 2021 at 10:02:40AM -0500, Pierre-Louis Bossart wrote:
>
>
> On 3/22/21 6:06 AM, Heikki Krogerus wrote:
> > The function device_add_properties() is going to be removed.
> > Replacing it with software node API equivalents.
> >
> > Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> > ---
> > Hi,
> >
> > This patch depends on a fix from mainline, available in v5.12-rc4:
> >
> > 2a92c90f2ecc ("software node: Fix device_add_software_node()")
> >
> > Cheers,
> > ---
> > sound/soc/intel/boards/bytcht_es8316.c | 2 +-
> > sound/soc/intel/boards/bytcr_rt5640.c | 2 +-
> > sound/soc/intel/boards/bytcr_rt5651.c | 2 +-
> > sound/soc/intel/boards/sof_sdw_rt711.c | 20 +++++++++++++++-----
> > sound/soc/intel/boards/sof_sdw_rt711_sdca.c | 20 +++++++++++++++-----
> > 5 files changed, 33 insertions(+), 13 deletions(-)
> >
> > diff --git a/sound/soc/intel/boards/bytcht_es8316.c b/sound/soc/intel/boards/bytcht_es8316.c
> > index 06df2d46d910b..4a9817a95928c 100644
> > --- a/sound/soc/intel/boards/bytcht_es8316.c
> > +++ b/sound/soc/intel/boards/bytcht_es8316.c
> > @@ -544,7 +544,7 @@ static int snd_byt_cht_es8316_mc_probe(struct platform_device *pdev)
> > props[cnt++] = PROPERTY_ENTRY_BOOL("everest,jack-detect-inverted");
> > if (cnt) {
> > - ret = device_add_properties(codec_dev, props);
> > + ret = device_create_managed_software_node(codec_dev, props, NULL);
>
> I don't think this is correct. This is using the codec_dev device, but this
> property is created in the machine driver - different device. I think the
> proper fix is to remove the property in the machine driver .remove()
> callback, as done below for the SoundWire case, and not to rely on devm_
> with the wrong device.
>
> there was a thread between July and October on this in
> https://github.com/thesofproject/linux/pull/2306/
>
> It seems that we need to restart this work.
>
> Heikki, do you mind if I take your patches (keeping you as the author) and
> rework+test them with the SOF tree + CI ?
OK by me (though, I'm not sure about the author part after that).
thanks,
--
heikki
next prev parent reply other threads:[~2021-03-23 9:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-22 11:06 Heikki Krogerus
2021-03-22 15:02 ` Pierre-Louis Bossart
2021-03-23 9:28 ` Heikki Krogerus [this message]
2021-04-12 20:36 ` Pierre-Louis Bossart
2021-04-13 12:20 ` Heikki Krogerus
2021-04-13 14:05 ` Heikki Krogerus
2021-04-13 15:47 ` Pierre-Louis Bossart
2021-04-14 7:43 ` Heikki Krogerus
2021-07-16 18:43 ` 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=YFm0u9k/DNy5URsR@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=hdegoede@redhat.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=tiwai@suse.com \
--cc=yang.jie@linux.intel.com \
--cc=yung-chuan.liao@linux.intel.com \
/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
all inboxes | Powered by JetHome®