linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Tai-hwa Liang <avatar@sentelic.com>
Cc: linux-input@vger.kernel.org, Paul Fox <pgf@laptop.org>
Subject: Re: [PATCH 1/1] input: sentelic: Releasing mutex upon register writing failure
Date: Thu, 22 Dec 2011 09:52:06 -0800	[thread overview]
Message-ID: <20111222175206.GD21103@core.coreip.homeip.net> (raw)
In-Reply-To: <1324019274-15508-1-git-send-email-avatar@sentelic.com>

Hi Tai-hwa,

On Fri, Dec 16, 2011 at 03:07:54PM +0800, Tai-hwa Liang wrote:
> Making sure that mutex is released upon register writing failure.
> This fixes boot freezing observed on ARM based OLPC
> (http://dev.laptop.org/ticket/11357).
> 
> Signed-off-by: Paul Fox <pgf@laptop.org>
> Acked-by: Tai-hwa Liang <avatar@sentelic.com>

Since you are actually passing the patch to me there should be your
"Signed-off-by:.. " instead of (or in addtion to) your "Acked-by".

Thanks!

> ---
>  drivers/input/mouse/sentelic.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/input/mouse/sentelic.c b/drivers/input/mouse/sentelic.c
> index 5babc47..7e96a5d 100644
> --- a/drivers/input/mouse/sentelic.c
> +++ b/drivers/input/mouse/sentelic.c
> @@ -162,7 +162,7 @@ static int fsp_reg_write(struct psmouse *psmouse, int reg_addr, int reg_val)
>  	ps2_sendbyte(ps2dev, v, FSP_CMD_TIMEOUT2);
>  
>  	if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0)
> -		return -1;
> +		goto out;
>  
>  	if ((v = fsp_test_invert_cmd(reg_val)) != reg_val) {
>  		/* inversion is required */
> @@ -261,7 +261,7 @@ static int fsp_page_reg_write(struct psmouse *psmouse, int reg_val)
>  	ps2_sendbyte(ps2dev, 0x88, FSP_CMD_TIMEOUT2);
>  
>  	if (ps2_sendbyte(ps2dev, 0xf3, FSP_CMD_TIMEOUT) < 0)
> -		return -1;
> +		goto out;
>  
>  	if ((v = fsp_test_invert_cmd(reg_val)) != reg_val) {
>  		ps2_sendbyte(ps2dev, 0x47, FSP_CMD_TIMEOUT2);
> -- 
> 1.7.7.3
> 

-- 
Dmitry

  reply	other threads:[~2011-12-22 17:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16  7:07 [PATCH 1/1] input: sentelic: Releasing mutex upon register writing failure Tai-hwa Liang
2011-12-22 17:52 ` Dmitry Torokhov [this message]
2011-12-23  1:08   ` Tai-hwa Liang

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=20111222175206.GD21103@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=avatar@sentelic.com \
    --cc=linux-input@vger.kernel.org \
    --cc=pgf@laptop.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;
as well as URLs for NNTP newsgroup(s).