linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Cc: Benjamin Tissoires <benjamin.tissoires@gmail.com>,
	linux-input <linux-input@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Nick Dyer <nick.dyer@itdev.co.uk>,
	Yufeng Shen <miletus@chromium.org>,
	Benson Leung <bleung@chromium.org>,
	Daniel Kurtz <djkurtz@chromium.org>,
	Sjoerd Simons <sjoerd.simons@collabora.co.uk>,
	Olof Johansson <olof@lixom.net>
Subject: Re: [PATCH 1/2] Input: atmel_mxt_ts - add support for Google Pixel 2
Date: Wed, 15 Apr 2015 15:43:26 -0700	[thread overview]
Message-ID: <20150415224326.GA1119@dtor-ws> (raw)
In-Reply-To: <552EE4C7.4010001@collabora.co.uk>

On Thu, Apr 16, 2015 at 12:23:03AM +0200, Javier Martinez Canillas wrote:
> Hello Benjamin,
> 
> On 04/15/2015 11:20 PM, Benjamin Tissoires wrote:
> > Hi guys,
> > 
> > On Wed, Apr 15, 2015 at 11:58 AM, Javier Martinez Canillas <javier.martinez@collabora.co.uk> wrote:
> >> Hello Dmitry,
> >>
> >> On 04/08/2015 02:26 AM, Dmitry Torokhov wrote:
> >>> This change allows atmel_mxt_ts to bind to ACPI-enumerated devices in
> >>> Google Pixel 2 (2015).
> >>>
> >>> While newer version of ACPI standard allow use of device-tree-like
> >>> properties in device descriptions, the version of ACPI implemented in
> >>> Google BIOS does not support them, and we have to resort to DMI data to
> >>> specify exact characteristics of the devices (touchpad vs. touchscreen,
> >>> GPIO to button mapping, etc).
> >>>
> >>> Pixel 1 continues to use i2c devices and platform data created by
> >>> chromeos-laptop driver, since ACPI does not enumerate them.
> >>>
> >>> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> >>> ---
> > [snipped]
> >>
> >> Patch looks good to me and I've tested it in a Pixel2 Chromebook using
> >> evtest:
> >>
> >> Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> >> Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> >>
> > 
> > Hmm, this is weird. I tried to apply the 2 patches of this series to a 
> > 4.0 fedora kernel[1], and the touch{pad|screen} are desperately muted.
> 
> Yes, is not going to work with just 4.0, I tested with today's -next.
> 
> > The abs_X/Y max shows up as 0, so there is something wrong with either 
> > my touchpad (which works fine on ChromeOS) or with the driver.
> > There are no differences between 4.0-rcX and the final 4.0 so I suspect 
> > there must be something else.
> > I also copied the 2 samus-* config files from the ChromeOS root to
> > /lib/firmware but this does not change anything.
> > 
> > In [3], I enabled the debug output of atmel_mxt, and it seems that the 
> > table of functions is missing the T9 one, which is the multitouch one... :(
> > 
> 
> The atmel_mxt error message is somehow misleading. The problem is not
> that the T9 multitouch object is missing (in fact that's the only one
> supported by the driver in 4.0) but that the atmel chip in the pixel2
> uses another multitouch object (T100).
> 
> So the driver tries to initialize the input device assuming that is a
> T9 one and fails showing the "Invalid object type T9" error.
> 
> > Any help would be greatly appreciated so we can fix [2] and support 
> > those laptops in Fedora directly.
> >
> 
> Patches to add proper T100 support are already in Linus' tree but did
> not make it to 4.0. So you need to cherry-pick commits:
> 
> b23157dc7427 ("Input: atmel_mxt_ts - implement support for T100 touch object") [0]
> b6d2d3289f84 ("Input: atmel_mxt_ts - split out touchpad initialisation logic") [1].
> 
> Dmitry mentioned that he used a 4.0+ kernel with Fedora's config so I
> guess he also was testing with linux-next or latest Linus' master.

I usually test with my internal tree that consists of mainline (either
at X.0 or at ToT past rc3-rc4 of the current release) + my "for-linus"
branch + my "next" branch + some work in progress that has not made into
for-linus/next but should have no effect on the patches as posted.

Thanks.

-- 
Dmitry

  reply	other threads:[~2015-04-15 22:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08  0:26 [PATCH 1/2] Input: atmel_mxt_ts - add support for Google Pixel 2 Dmitry Torokhov
2015-04-08  0:26 ` [PATCH 2/2] Input: atmel_mxt_ts - allow specifying device-specific configs Dmitry Torokhov
2015-04-09 11:03   ` Nick Dyer
2015-04-09 16:42     ` Dmitry Torokhov
2015-04-15 15:58   ` Javier Martinez Canillas
2015-04-09 11:08 ` [PATCH 1/2] Input: atmel_mxt_ts - add support for Google Pixel 2 Nick Dyer
2015-04-09 16:29   ` Dmitry Torokhov
2015-04-15 15:58 ` Javier Martinez Canillas
2015-04-15 17:35   ` Dmitry Torokhov
2015-04-15 22:36     ` Javier Martinez Canillas
2015-04-15 21:20   ` Benjamin Tissoires
2015-04-15 22:23     ` Javier Martinez Canillas
2015-04-15 22:43       ` Dmitry Torokhov [this message]
2015-04-15 23:34         ` Benjamin Tissoires

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=20150415224326.GA1119@dtor-ws \
    --to=dmitry.torokhov@gmail.com \
    --cc=benjamin.tissoires@gmail.com \
    --cc=bleung@chromium.org \
    --cc=djkurtz@chromium.org \
    --cc=javier.martinez@collabora.co.uk \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miletus@chromium.org \
    --cc=nick.dyer@itdev.co.uk \
    --cc=olof@lixom.net \
    --cc=sjoerd.simons@collabora.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;
as well as URLs for NNTP newsgroup(s).