From: Darren Hart <dvhart@infradead.org>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Arvind Yadav <arvind.yadav.cs@gmail.com>,
Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>,
Andy Shevchenko <andy@infradead.org>,
ibm-acpi-devel@lists.sourceforge.net,
Platform Driver <platform-driver-x86@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: thinkpad_acpi: Handle return error.
Date: Wed, 15 Mar 2017 17:28:19 -0700 [thread overview]
Message-ID: <20170316002819.GA11351@fury> (raw)
In-Reply-To: <CAHp75VcY2D3E3ogT_ySTVo8C5j17EYDXqn0mi0DEmkVqntwZPA@mail.gmail.com>
On Mon, Mar 06, 2017 at 10:45:50AM +0200, Andy Shevchenko wrote:
> On Mon, Mar 6, 2017 at 9:43 AM, Arvind Yadav <arvind.yadav.cs@gmail.com> wrote:
> > This patch is for handling a return error.
> >
> > Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> > ---
> > drivers/platform/x86/thinkpad_acpi.c | 15 ++++++++++++---
> > 1 file changed, 12 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
> > index 1d18b32..19ad3ec 100644
> > --- a/drivers/platform/x86/thinkpad_acpi.c
> > +++ b/drivers/platform/x86/thinkpad_acpi.c
> > @@ -1237,9 +1237,11 @@ static int tpacpi_rfk_hook_set_block(void *data, bool blocked)
> > /* try to set radio state */
>
> > res = (tp_rfk->ops->set_status)(blocked ?
> > TPACPI_RFK_RADIO_OFF : TPACPI_RFK_RADIO_ON);
>
> Just in case: first parens are redundant here.
>
> > + if (res < 0)
> > + return res;
>
> So, this changes behaviour. Before we call _rfk_update_swstate()
> independently on error code.
>
> Care to explain in commit message how this change does / does not
> affect overall user experience?
Arvind has made a number of similar such changes throughout the tree, I presume
with some automation. In this case, since there is no indication of a particular
manifestation of this bug on hardware, I will presume the same approach was
taken here. I'm dropping this patch as "changes requested" because at the very
least this needs a commit log which documents the problem manifested and why the
behavioral change is appropriate.
--
Darren Hart
VMware Open Source Technology Center
next prev parent reply other threads:[~2017-03-16 0:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-06 7:43 [PATCH] x86: thinkpad_acpi: Handle return error Arvind Yadav
2017-03-06 8:45 ` Andy Shevchenko
2017-03-16 0:28 ` Darren Hart [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-03-06 7:46 Arvind Yadav
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=20170316002819.GA11351@fury \
--to=dvhart@infradead.org \
--cc=andy.shevchenko@gmail.com \
--cc=andy@infradead.org \
--cc=arvind.yadav.cs@gmail.com \
--cc=ibm-acpi-devel@lists.sourceforge.net \
--cc=ibm-acpi@hmh.eng.br \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
/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