From: Takashi Iwai <tiwai@suse.de>
To: Vinod Koul <vinod.koul@intel.com>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>,
alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: Re: [PATCH] ASoC: intel: Don't print FW version repeatedly
Date: Mon, 27 Mar 2017 14:10:37 +0200 [thread overview]
Message-ID: <s5hlgrqor7m.wl-tiwai@suse.de> (raw)
In-Reply-To: <20170327103712.GO9308@localhost>
On Mon, 27 Mar 2017 12:37:12 +0200,
Vinod Koul wrote:
>
> On Mon, Mar 27, 2017 at 12:24:20PM +0200, Takashi Iwai wrote:
> > On Mon, 27 Mar 2017 12:13:54 +0200,
> > Mark Brown wrote:
> > >
> > > On Mon, Mar 27, 2017 at 03:36:58PM +0530, Vinod Koul wrote:
> > > > On Mon, Mar 27, 2017 at 10:39:58AM +0200, Takashi Iwai wrote:
> > >
> > > > > - dev_info(sst_drv_ctx->dev, "FW Version %02x.%02x.%02x.%02x\n",
> > > > > + if (memcmp(&sst_drv_ctx->fw_version, &init->fw_version,
> > > > > + sizeof(init->fw_version)))
> > >
> > > > wont dev_info_once be better here? We are really not expecting a new version
> > > > after suspend :)
> > >
> > > You are if someone upgrades their userspace.
> >
> > Right. If we want to keep the old one consistently, you should cache
> > the firmware instead of doing request_firmware at each time.
>
> Ah great thanks for reminding, we actually do that, so we don't load from
> userspace all the time. That was done to get good latency and avoid 50ms ish
> time it used to load the firmware.
>
> see sst_cache_and_parse_fw() so dev_info_once() would suffice here
OK, I'll respin the patch with it.
thanks,
Takashi
next prev parent reply other threads:[~2017-03-27 12:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-27 8:39 [PATCH] ASoC: intel: Don't print FW version repeatedly Takashi Iwai
2017-03-27 10:06 ` Vinod Koul
2017-03-27 10:13 ` Mark Brown
2017-03-27 10:24 ` Takashi Iwai
2017-03-27 10:37 ` Vinod Koul
2017-03-27 12:10 ` Takashi Iwai [this message]
2017-03-27 10:25 ` Vinod Koul
2017-03-27 11:32 ` Applied "ASoC: intel: Don't print FW version repeatedly" to the asoc tree Mark Brown
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=s5hlgrqor7m.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=liam.r.girdwood@linux.intel.com \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=vinod.koul@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.