From: Lee Jones <lee.jones@linaro.org>
To: Chris Morgan <macroalpha82@gmail.com>
Cc: pierre-louis.bossart@linux.intel.com,
alsa-devel@alsa-project.org, heiko@sntech.de,
devicetree@vger.kernel.org, tiwai@suse.com, robh+dt@kernel.org,
lgirdwood@gmail.com, linux-rockchip@lists.infradead.org,
broonie@kernel.org, Chris Morgan <macromorgan@hotmail.com>,
jbx6244@gmail.com, maccraft123mc@gmail.com
Subject: Re: [PATCH v9 1/4] mfd: Add Rockchip rk817 audio CODEC support
Date: Thu, 13 May 2021 21:11:14 +0100 [thread overview]
Message-ID: <20210513201114.GE805368@dell> (raw)
In-Reply-To: <20210513150122.GA8450@wintermute.localdomain>
On Thu, 13 May 2021, Chris Morgan wrote:
> On Mon, May 10, 2021 at 05:23:29PM +0100, Lee Jones wrote:
> > On Wed, 05 May 2021, Chris Morgan wrote:
> >
> > > From: Chris Morgan <macromorgan@hotmail.com>
> > >
> > > Add rk817 codec support cell to rk808 mfd driver.
> > >
> > > Tested-by: Maciej Matuszczyk <maccraft123mc@gmail.com>
> > > Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> >
> > Nit: These should be chronological.
>
> Acknowledged. I will make sure to do this if a v10 is necessary.
>
> >
> > > ---
> > > Changes in v9:
> > > - Add cover letter.
> > > - Remove documentation for interrupt parent per Rob Herring's request.
> > > - Remove unused MODULE_DEVICE_TABLE to fix a bug identified by kernel test
> > > robot.
> > > Changes in v8:
> > > - Added additional documentation for missing properties of #sound-dai-cells,
> > > interrupt-parent, and wakeup-source for mfd documentation.
> > > - Corrected order of elements descriptions in device tree documentation.
> > > - Changed name of "mic-in-differential" to "rockchip,mic-in-differential".
> > > - Changed name of sound card from "rockchip,rk817-codec" to "Analog".
> > > - Removed unused resets and reset-names from the i2s1_2ch node.
> > > Changes in v7:
> > > - Removed ifdef around register definitions for MFD.
> > > - Replaced codec documentation with updates to MFD documentation.
> > > - Reordered elements in example to comply with upstream rules.
> > > - Added binding update back for Odroid Go Advance as requested.
> > > - Submitting patches from gmail now.
> > > Changes in v6:
> > > - Included additional project maintainers for correct subsystems.
> > > - Removed unneeded compatible from DT documentation.
> > > - Removed binding update for Odroid Go Advance (will do in seperate series).
> > > Changes in v5:
> > > - Move register definitions from rk817_codec.h to main rk808.h register
> > > definitions.
> > > - Add volatile register for codec bits.
> > > - Add default values for codec bits.
> > > - Removed of_compatible from mtd driver (not necessary).
> > > - Switched to using parent regmap instead of private regmap for codec.
> > > Changes in v4:
> > > - Created set_pll() call.
> > > - Created user visible gain control in mic.
> > > - Check for return value of clk_prepare_enable().
> > > - Removed duplicate clk_prepare_enable().
> > > - Split DT documentation to separate commit.
> > > Changes in v3:
> > > - Use DAPM macros to set audio path.
> > > - Updated devicetree binding (as every rk817 has this codec chip).
> > > - Changed documentation to yaml format.
> > > - Split MFD changes to separate commit.
> > > Changes in v2:
> > > - Fixed audio path registers to solve some bugs.
> > >
> > > drivers/mfd/rk808.c | 85 +++++++++++++++++++++++++++++++++++++++
> > > include/linux/mfd/rk808.h | 81 +++++++++++++++++++++++++++++++++++++
> > > 2 files changed, 166 insertions(+)
> > >
> > > diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
> > > index ad923dd4e007..9231209184e0 100644
> > > --- a/drivers/mfd/rk808.c
> > > +++ b/drivers/mfd/rk808.c
> > > @@ -65,6 +65,7 @@ static bool rk817_is_volatile_reg(struct device *dev, unsigned int reg)
> > > switch (reg) {
> > > case RK817_SECONDS_REG ... RK817_WEEKS_REG:
> > > case RK817_RTC_STATUS_REG:
> > > + case RK817_CODEC_DTOP_LPT_SRST:
> > > case RK817_INT_STS_REG0:
> > > case RK817_INT_STS_REG1:
> > > case RK817_INT_STS_REG2:
> > > @@ -163,6 +164,11 @@ static const struct mfd_cell rk817s[] = {
> > > .num_resources = ARRAY_SIZE(rk817_rtc_resources),
> > > .resources = &rk817_rtc_resources[0],
> > > },
> > > +#ifdef CONFIG_SND_SOC_RK817
> > > + {
> > > + .name = "rk817-codec",
> > > + },
> > > +#endif
> >
> > No #ifery please.
> >
> > Just replace it with a comment.
> >
> > If no associated driver exists, it just won't match/bind.
>
> I did the "if" here because I noticed that if I have a rk817 and do not
> utilize the codec I receive a dmesg warning. I put the if here to silence
> it in the event that someone was using this PMIC but didn't want to use
> the audio codec. I will make the change if you say so though, but I just
> want to confirm that it's acceptable to have a warning for all rk817s
> that do not use the codec about a missing codec. The hardware is always
> present, I just can't say for certain it will always be used.
What is the dmesg warning you receive?
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2021-05-13 20:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-05 14:08 [PATCH v9 0/4] ASoC: codecs: add rk817 support Chris Morgan
2021-05-05 14:08 ` [PATCH v9 1/4] mfd: Add Rockchip rk817 audio CODEC support Chris Morgan
2021-05-10 16:23 ` Lee Jones
2021-05-13 15:01 ` Chris Morgan
2021-05-13 20:11 ` Lee Jones [this message]
2021-05-14 15:50 ` Chris Morgan
2021-05-14 16:36 ` Heiko Stuebner
2021-05-14 16:59 ` Chris Morgan
2021-05-05 14:08 ` [PATCH 2/4] ASoC: " Chris Morgan
2021-05-05 14:08 ` [PATCH 3/4] dt-bindings: " Chris Morgan
2021-05-05 14:08 ` [PATCH 4/4] arm64: dts: rockchip: add rk817 codec to Odroid Go Chris Morgan
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=20210513201114.GE805368@dell \
--to=lee.jones@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=jbx6244@gmail.com \
--cc=lgirdwood@gmail.com \
--cc=linux-rockchip@lists.infradead.org \
--cc=maccraft123mc@gmail.com \
--cc=macroalpha82@gmail.com \
--cc=macromorgan@hotmail.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=robh+dt@kernel.org \
--cc=tiwai@suse.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;
as well as URLs for NNTP newsgroup(s).