linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Benson Leung <bleung@chromium.org>,
	rydberg@euromail.se, linux-input@vger.kernel.org,
	linux-kernel@vger.kernel.org, djkurtz@chromium.org,
	olofj@chromium.org, dudl@cypress.com
Subject: Re: [PATCH v2 1/1] Input: add driver for Cypress APA I2C Trackpad
Date: Thu, 6 Dec 2012 09:29:23 +0100	[thread overview]
Message-ID: <20121206092923.54fef9b8@endymion.delvare> (raw)
In-Reply-To: <20121206074817.GA25574@core.coreip.homeip.net>

On Wed, 5 Dec 2012 23:48:17 -0800, Dmitry Torokhov wrote:
> Hi Benson,
> 
> On Wed, Dec 05, 2012 at 04:48:19PM -0800, Benson Leung wrote:
> > This patch introduces a driver for Cypress All Points Addressable
> > I2C Trackpad, including the ones in 2012 Samsung Chromebooks.
> > 
> > This device is compatible with MT protocol type B, providing identifiable
> > contacts.
> > 
> > Signed-off-by: Dudley Du <dudl@cypress.com>
> > Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
> > Signed-off-by: Benson Leung <bleung@chromium.org>
> > ---
> >  Version history :
> > v2 : * Removed firmware update.
> >      * Removed sysfs properties related to firmware update and power mode.
> >      * Folded cyapa_detect into cyapa_probe.
> >      * Added support for middle and right mechanical buttons, if they exist.
> >      * Rearranged disable_irq/enable_irq in suspend and resume to prevent
> >          a power mode change from colliding with a read of tracking data.
> >      * Made cyapa_get_state more reliable.
> >      * Use IRQF_ONESHOT for threaded irq
> >      * Simplified cyapa_set_power_mode.
> >      * Removed extra kernel-doc style comments
> >      * Removed dev_dbg messages.
> >      * Cleaned up unused includes.
> >      * Cleaned up unused #defines
> > v1 : Initial
> 
> First of all - this version is excellent compared to the previous ones
> posted. I have just a few quesutions (and of course I'd like Henrik to
> look over MT handlingi and Jean for I2C bits).

I did not find any problem with the I2C bits.

> > (...)
> > +static ssize_t cyapa_i2c_reg_read_block(struct cyapa *cyapa, u8 reg, size_t len,
> > +					u8 *values)
> > +{
> > +	return i2c_smbus_read_i2c_block_data(cyapa->client, reg, len, values);
> 
> Does it have to be SMBUS? If it does you need to check the capabilities
> in probe(). 

Using SMBus calls is recommended as it increases portability of the
driver. I2C controllers can do SMBus but SMBus controllers can't do
I2C. Checking the capabilities is needed in both cases anyway, as you
can't assume anything from an i2c_adapter.

-- 
Jean Delvare

  reply	other threads:[~2012-12-06  8:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 22:29 [PATCH] Input: add driver for Cypress APA I2C Trackpad Benson Leung
2012-07-16 11:05 ` Henrik Rydberg
2012-12-06  0:48 ` [PATCH v2 0/1] " Benson Leung
2012-12-06  0:48   ` [PATCH v2 1/1] " Benson Leung
2012-12-06  7:48     ` Dmitry Torokhov
2012-12-06  8:29       ` Jean Delvare [this message]
2012-12-06 14:59     ` Henrik Rydberg
2012-12-07 22:52       ` Benson Leung
2012-12-08 12:39         ` Henrik Rydberg
2012-12-07 23:24   ` [PATCH v3 0/1] " Benson Leung
2012-12-07 23:24     ` [PATCH v3 1/1] " Benson Leung
2012-12-08 12:42       ` Henrik Rydberg
2012-12-13 22:46         ` Benson Leung
2013-01-22 17:57       ` [v3,1/1] " Doug Anderson

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=20121206092923.54fef9b8@endymion.delvare \
    --to=khali@linux-fr.org \
    --cc=bleung@chromium.org \
    --cc=djkurtz@chromium.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dudl@cypress.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olofj@chromium.org \
    --cc=rydberg@euromail.se \
    /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).