Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Issue 6905092: cyapa: support MT-A protocol, and add cyapa_misc_dev interface

Created:
9 years, 8 months ago by dudl
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, vb+kernel_google.com, Mandeep Singh Baines, Olof Johansson, Micah C, dudl, dso_cypress.com, singh_google.com
Visibility:
Public.

Description

cyapa: support MT-A protocol, and add cyapa_misc_dev interface 1. Remove codes that support relative report data, this mode is no longer required for trackpads 2. Modify cyapa driver to support MT-A protocol to support multitouch X input driver; 3. Add cyapa_misc_dev interface, so applications can get driver, firmware and hardware version of the trackpad device. Change-Id: I8c70391a581bd1f62803f25fe3a52589b56aeed7 Signed-off-by: Du, Dudley <dudl@cypress.com>; R= olofj@chromium.org, micahc@chromium.org, djkurtz@chromium.org BUG=chrome-os-partner:3549 TEST=test trackpad on kaen with multitouch X driver

Patch Set 1 #

Total comments: 44
Unified diffs Side-by-side diffs Delta from patch set Stats (+1024 lines, -1443 lines) Patch
M drivers/input/mouse/cypress_i2c.c View 34 chunks +945 lines, -1423 lines 43 comments Download
M include/linux/cyapa.h View 2 chunks +79 lines, -20 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
dudl
9 years, 8 months ago (2011-04-28 10:04:13 UTC) #1
Daniel Kurtz
nits http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c.c File drivers/input/mouse/cypress_i2c.c (right): http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c.c#newcode43 drivers/input/mouse/cypress_i2c.c:43: /* Cypress I2C APA trackpad driver version is ...
9 years, 7 months ago (2011-05-01 23:44:09 UTC) #2
Olof Johansson
Hi, I have a handful of comments below, mostly drive-by simple nits. Main worry is ...
9 years, 7 months ago (2011-05-02 05:47:12 UTC) #3
Daniel Kurtz
Some more nits. http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c.c File drivers/input/mouse/cypress_i2c.c (right): http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c.c#newcode266 drivers/input/mouse/cypress_i2c.c:266: int max_absolution_y; max_abs_x / max_abs_y absolution ...
9 years, 7 months ago (2011-05-02 12:43:47 UTC) #4
dudl
9 years, 7 months ago (2011-05-05 08:06:20 UTC) #5
Hi All,

Attached is the patch file of cyapa driver that modified depending on
http://codereview.chromium.org/6905092/ comments based on chromeos-2.6.38.
Because I encounter some issue when submit code in gerrit system, so send out
the patch file firstly.
Please help review it.

Thanks.

Best Wishes,
Dudley Du
86-21-61648950


-----Original Message-----
From: djkurtz@chromium.org [mailto:djkurtz@chromium.org] 
Sent: Monday, May 02, 2011 8:44 PM
To: Dudley Du; olofj@chromium.org; micahc@chromium.org
Cc: chromium-os-reviews@chromium.org; vb+kernel@google.com; msb@chromium.org;
olofj@chromium.org; micahc@google.com; Dudley Du; dso@cypress.com;
singh@google.com
Subject: Re: Update cyapa driver support MT type-A protocol, add cyapa_misc_dev
interface (issue6905092)

Some more nits.


http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c.c
File drivers/input/mouse/cypress_i2c.c (right):

http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c...
drivers/input/mouse/cypress_i2c.c:266: int max_absolution_y;
max_abs_x / max_abs_y

absolution means something completely different!

http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c...
drivers/input/mouse/cypress_i2c.c:1343: ** be pull up.
I'm not sure what this comment means.
Perhaps:
/*
  * In polling mode, initialize the polling interval to
  * CYAPA_NO_DATA_SLEEP_MSECS.
  * Once data is read, the polling rate will be automatically increased.
  */

And please use kernel multi-line comment style, here, and everywhere
else in this driver.

http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c...
drivers/input/mouse/cypress_i2c.c:1365: ** then cancel the delayed work
routine.
/*
  * Since the mouse, wheel and kbd input_dev all use the same open and
close
  * routines, only cancel the delayed work routine when all three drivers
are
  * closed.
  */

http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c...
drivers/input/mouse/cypress_i2c.c:1433: input_set_abs_params(input,
ABS_Y, 0, touch->max_absolution_y, 0, 0);
Do you really still want to report non-MT axes in a MT driver?
When multiple contacts are present, which finger is reported by these
axes?

http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c...
drivers/input/mouse/cypress_i2c.c:1446: 0, CYAPA_MT_MAX_WIDTH, 0, 0);
Do you really report both axes for both touch and approach elipses, and
orientation?
Or is this just for future expansion?

http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c...
drivers/input/mouse/cypress_i2c.c:1451: 0, touch->max_absolution_x, 0,
0);
absolution and absolute have completely different meanings. :)
I think you mean "max_absolute_x", or maybe just use "max_abs_x" and
"max_abs_y".

http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c...
drivers/input/mouse/cypress_i2c.c:1493: /* do platfrom initialize
firstly. */
/* First, initialize platform_data */

http://codereview.chromium.org/6905092/diff/1/drivers/input/mouse/cypress_i2c...
drivers/input/mouse/cypress_i2c.c:1506: * when special paltfrom that do
not support slave interrupt.
s/normallly/normally
s/paltfrom/platform

'platform' is misspelled often...  Please verify every where in this
file.

And, please use kernel multi-line comment style:
/*
  * Comment comment
  * comment comment
  */

http://codereview.chromium.org/6905092/

Powered by Google App Engine
This is Rietveld 408576698