From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Taylor Hutt <thutt@google.com>
Cc: Liam Girdwood <lrg@slimlogic.co.uk>,
Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>,
Peter Hsiang <Peter.Hsiang@maxim-ic.com>,
Olof Johansson <olofj@chromium.org>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: codecs: Max98095: Fix logging of hardware revision.
Date: Tue, 21 Jun 2011 11:06:15 +0100 [thread overview]
Message-ID: <20110621100614.GA22177@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <BANLkTikH6XpGNamh8z4zspxteH3K4mNmew@mail.gmail.com>
On Mon, Jun 20, 2011 at 08:22:32PM -0700, Taylor Hutt wrote:
> On Mon, Jun 20, 2011 at 5:23 PM, Mark Brown <
> > Don't include a series of random unrelated changes in a single patch,
> > split them up into separate patches. This makes review much easier if
> > nothing else. There's no overlap at all between this change and the one
> > above. The change is sensible.
> Ok, fine. Seemed trivial enough and didn't seem like the code churn for
> another patch was warranted.
> But, ok.
Like I say it's for review - it's much easier to look at a diff and
verify that it does exactly one thing than it is to verify that it does
a series of unrelated things, that all of them got covered, that there's
no unexpected additional changes and that all of them are complete.
> > > ret = snd_soc_read(codec, M98095_0FF_REV_ID);
> > > if (ret < 0) {
> > > - dev_err(codec->dev, "Failed to read device revision: %d\n",
> > > + dev_err(codec->dev, "Failure reading hardware revision:
> > %d\n",
> > > ret);
> > You've also got this again unrelated change which isn't mentioned in the
> > changelog at all.
> This is part of the change for the hardware revision, and it seems pretty
> clear that they're related to me. The text of the two output messages are
> now more aligned, and they are both related to reporting the hardware
> revision.
You're doing three things here - you're changing the revision that's
printed, you're rewriting the text that's output for some reason and
you're changing the way the number of DAIs is stored and you only
mentioned two of those. My first thought when I saw this change, just
looking at the shape of the diff rather than reading the text of the
message, was that it didn't belong and I needed to slow down and look in
more detail. Had it been mentioned in the log I would have been
expecting to see some random text only updates, making this less of a
surprise.
next prev parent reply other threads:[~2011-06-21 10:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-20 18:54 [PATCH] ASoC: codecs: Max98095: Fix logging of hardware revision Taylor Hutt
2011-06-20 20:06 ` Liam Girdwood
2011-06-21 0:23 ` Mark Brown
2011-06-21 0:43 ` Peter Hsiang
2011-06-21 1:10 ` Mark Brown
2011-06-21 11:55 ` Mark Brown
[not found] ` <BANLkTinfL8uSdCvrQYPJb1TQH3HSCu=wAPFZv-AcWRw1_jspXg@mail.gmail.com>
2011-06-21 17:10 ` Mark Brown
2011-06-21 20:16 ` Peter Hsiang
2011-06-21 20:48 ` Peter Hsiang
[not found] ` <BANLkTikH6XpGNamh8z4zspxteH3K4mNmew@mail.gmail.com>
2011-06-21 10:06 ` Mark Brown [this message]
2011-06-21 23:28 ` 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=20110621100614.GA22177@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=Peter.Hsiang@maxim-ic.com \
--cc=alsa-devel@alsa-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@slimlogic.co.uk \
--cc=olofj@chromium.org \
--cc=perex@perex.cz \
--cc=thutt@google.com \
--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