From: Liam Girdwood <liam.r.girdwood@linux.intel.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
Benson Leung <bleung@google.com>
Subject: Re: [PATCH 1/5] ASoC: Intel: Add Intel SST audio DSP low level shim driver.
Date: Fri, 14 Feb 2014 10:02:16 +0000 [thread overview]
Message-ID: <1392372136.2300.22.camel@loki> (raw)
In-Reply-To: <s5hzjluhzbk.wl%tiwai@suse.de>
On Fri, 2014-02-14 at 09:29 +0100, Takashi Iwai wrote:
> At Thu, 13 Feb 2014 19:15:26 +0000,
> Liam Girdwood wrote:
> > +/* Public API */
> > +void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value)
> > +{
> > + unsigned long flags;
> > +
> > + spin_lock_irqsave(&sst->spinlock, flags);
> > + sst->ops->write(sst->addr.shim, offset, value);
> > + spin_unlock_irqrestore(&sst->spinlock, flags);
> > +}
> > +EXPORT_SYMBOL(sst_dsp_shim_write);
>
> Any reason not to use *_GPL() version?
>
No that should be GPL. Will fix.
> > +int sst_dsp_shim_update_bits64_unlocked(struct sst_dsp *sst, u32 offset,
> > + u64 mask, u64 value)
> > +{
> > + bool change;
> > + u64 old, new;
> > +
> > + old = sst_dsp_shim_read64_unlocked(sst, offset);
> > +
> > + new = (old & (~mask)) | (value & mask);
> > +
> > + change = (old != new);
> > + if (change)
> > + sst_dsp_shim_write64_unlocked(sst, offset, new);
> > +
> > + return change;
> > +}
> > +EXPORT_SYMBOL(sst_dsp_shim_update_bits64_unlocked);
>
> The locked versions can be simplified by calling the unlocked
> function.
>
True, will change for V2
> > +
> > +void sst_dsp_ipc_msg_tx(struct sst_dsp *dsp, u32 msg)
> > +{
> > + sst_dsp_shim_write_unlocked(dsp, SST_IPCX, msg | SST_IPCX_BUSY);
> > + trace_sst_ipc_msg_tx(msg);
>
> The trace isn't defined yet in the first patch, so the build fails
> here. Each commit should be at least compilable.
>
It is build-able for bisect etc, the Make/Kconfig patch is last in this
series after the trace patch.
Liam
prev parent reply other threads:[~2014-02-14 10:02 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 19:15 [PATCH 1/5] ASoC: Intel: Add Intel SST audio DSP low level shim driver Liam Girdwood
2014-02-13 19:15 ` [PATCH 2/5] ASoC: Intel: Add common SST driver loader on ACPI systems Liam Girdwood
2014-02-14 10:30 ` Jarkko Nikula
2014-02-13 19:15 ` [PATCH 3/5] ASoC: Intel: Add Intel SST audio DSP Firmware loader Liam Girdwood
2014-02-14 8:55 ` Takashi Iwai
2014-02-14 9:38 ` Liam Girdwood
2014-02-14 16:11 ` Liam Girdwood
2014-02-14 17:06 ` Takashi Iwai
2014-02-14 17:40 ` Liam Girdwood
2014-02-13 19:15 ` [PATCH 4/5] ASoC: Intel: Add trace support for generic SST IPC messages Liam Girdwood
2014-02-13 19:15 ` [PATCH 5/5] ASoC: Intel: Add build support for Intel SST DSP core Liam Girdwood
2014-02-14 8:56 ` Takashi Iwai
2014-02-14 9:40 ` Liam Girdwood
2014-02-14 8:29 ` [PATCH 1/5] ASoC: Intel: Add Intel SST audio DSP low level shim driver Takashi Iwai
2014-02-14 10:02 ` Liam Girdwood [this message]
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=1392372136.2300.22.camel@loki \
--to=liam.r.girdwood@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=bleung@google.com \
--cc=broonie@kernel.org \
--cc=tiwai@suse.de \
/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