From: "Henrik Rydberg" <rydberg@euromail.se>
To: Daniel Kurtz <djkurtz@chromium.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Joonyoung Shim <jy0922.shim@samsung.com>,
Nick Dyer <nick.dyer@itdev.co.uk>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Benson Leung <bleung@chromium.org>,
Yufeng Shen <miletus@chromium.org>
Subject: Re: [PATCH 00/14 v3] cleanup atmel_mxt_ts
Date: Sat, 5 May 2012 14:16:26 +0200 [thread overview]
Message-ID: <20120505121626.GA754@polaris.bitmath.org> (raw)
In-Reply-To: <CAGS+omDm36Sxpv_e1=W6BNx9EoeWd1H2EaPqHAaGYYWnaZjZAw@mail.gmail.com>
Hi Daniel,
> Thank you to Henrik for reviewing again, and ACK'ing patch 3.
Reading it again, I do have some more comments, actually.
> Could I get a review for the rest of the set?
> There will actually be quite a few more patches that follow these.
I think that is part of the problem. What you want to achieve is all
good, but something else is not quite right. Reading through these
patches felt like a lot of work, although it should not really be that
much. A closer look suggests the patches are on average 20% too large,
the rest being irrelevant changes. That may look small, but apparently
it is off-putting enough. The less work it is to accept your patches,
the more likely they are to be processed quickly.
Please find brief notes below.
> > Daniel Kurtz (14):
> > Input: atmel_mxt_ts - use CONFIG_PM_SLEEP
Seems to clash with current mainline.
> > Input: atmel_mxt_ts - only allow root to update firmware
OK.
> > Input: atmel_mxt_ts - refactor mxt_read/write_reg to take a length
The return value change should be split out in a separate patch,
subject to stable as well. Also, there is no real benefit in changing
the name from __mxt to mxt. It only makes the patch longer.
> > Input: atmel_mxt_ts - verify object size in mxt_write_object
OK, also stable material.
> > Input: atmel_mxt_ts - do not read extra (checksum) byte
OK.
> > Input: atmel_mxt_ts - dump each message on just 1 line
OK.
> > Input: atmel_mxt_ts - refactor mxt_object_show
Start of for loop does not need to change. The buf_end - buf is less
clear than the existing PAGE_SIZE - count. The realloc feels clunky,
could it not allocate the max size once instead?
> > Input: atmel_mxt_ts - optimize writing of object table entries
Seems the index variable could be kept, no real need to move the bject
deklaration around, small things like that.
> > Input: atmel_mxt_ts - refactor get info
Why not keep mxt_get_info(), just using the smaller implementation?
Why change the formatting of the debug messages?
> > Input: atmel_mxt_ts - simplify event reporting
Why change formatting of function, why reformat status initialization,
why new name for pressure, why change the shift functions, why change
the debug message.
> > Input: atmel_mxt_ts - cache T9 reportid range when reading object
> > table
Why change touchevent() function name and arguments, why not reuse the
reportid variables. Why reformat the object assignment. Aren't
T9_reportid values zero already.
> > Input: atmel_mxt_ts - parse vector field of data packets
These could be deferred until they are actually used.
> > Input: atmel_mxt_ts - send all MT-B slots in one input report
OK.
> > Input: atmel_mxt_ts - parse T6 reports
Aren't T6_reportid values zero already.
Hope this helps.
Thanks.
Henrik
next prev parent reply other threads:[~2012-05-05 12:11 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-18 13:21 [PATCH 00/14 v3] cleanup atmel_mxt_ts Daniel Kurtz
2012-04-18 13:21 ` [PATCH 01/14 v3] Input: atmel_mxt_ts - use CONFIG_PM_SLEEP Daniel Kurtz
2012-04-18 13:21 ` [PATCH 02/14 v3] Input: atmel_mxt_ts - only allow root to update firmware Daniel Kurtz
2012-04-18 13:21 ` [PATCH 03/14 v3] Input: atmel_mxt_ts - refactor mxt_read/write_reg to take a length Daniel Kurtz
2012-04-24 11:23 ` Henrik Rydberg
2012-05-09 5:50 ` Dmitry Torokhov
2012-05-09 5:54 ` Dmitry Torokhov
2012-05-09 7:05 ` Jean Delvare
2012-05-09 7:25 ` Dmitry Torokhov
2012-04-18 13:21 ` [PATCH 04/14 v3] Input: atmel_mxt_ts - verify object size in mxt_write_object Daniel Kurtz
2012-04-18 13:21 ` [PATCH 05/14 v3] Input: atmel_mxt_ts - do not read extra (checksum) byte Daniel Kurtz
2012-04-18 13:21 ` [PATCH 06/14 v3] Input: atmel_mxt_ts - dump each message on just 1 line Daniel Kurtz
2012-04-18 13:21 ` [PATCH 07/14 v3] Input: atmel_mxt_ts - refactor mxt_object_show Daniel Kurtz
2012-04-18 13:21 ` [PATCH 08/14 v3] Input: atmel_mxt_ts - optimize writing of object table entries Daniel Kurtz
2012-04-18 13:21 ` [PATCH 09/14 v3] Input: atmel_mxt_ts - refactor get info Daniel Kurtz
2012-05-05 17:41 ` Nick Dyer
2012-05-06 2:43 ` Daniel Kurtz
2012-04-18 13:21 ` [PATCH 10/14 v3] Input: atmel_mxt_ts - simplify event reporting Daniel Kurtz
2012-04-18 13:21 ` [PATCH 11/14 v3] Input: atmel_mxt_ts - cache T9 reportid range when reading object table Daniel Kurtz
2012-04-18 13:21 ` [PATCH 12/14 v3] Input: atmel_mxt_ts - parse vector field of data packets Daniel Kurtz
2012-04-18 13:21 ` [PATCH 13/14 v3] Input: atmel_mxt_ts - send all MT-B slots in one input report Daniel Kurtz
2012-04-18 13:21 ` [PATCH 14/14 v3] Input: atmel_mxt_ts - parse T6 reports Daniel Kurtz
2012-05-04 17:39 ` [PATCH 00/14 v3] cleanup atmel_mxt_ts Daniel Kurtz
2012-05-05 12:16 ` Henrik Rydberg [this message]
2012-05-05 13:01 ` Daniel Kurtz
2012-05-09 5:48 ` Dmitry Torokhov
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=20120505121626.GA754@polaris.bitmath.org \
--to=rydberg@euromail.se \
--cc=bleung@chromium.org \
--cc=djkurtz@chromium.org \
--cc=dmitry.torokhov@gmail.com \
--cc=jy0922.shim@samsung.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miletus@chromium.org \
--cc=nick.dyer@itdev.co.uk \
/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