[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANLzEkve=_PaDreh72mE5TdvMEAKs520fObrFWVL9c1O7iHWbg@mail.gmail.com>
Date: Thu, 9 Apr 2015 14:57:24 -0700
From: Benson Leung <bleung@...omium.org>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: Olof Johansson <olof@...om.net>, Nick Dyer <nick.dyer@...ev.co.uk>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] platform/chrome: chromeos_laptop - do not probe devices
on Pixel 1
On Thu, Apr 9, 2015 at 1:39 PM, Dmitry Torokhov
<dmitry.torokhov@...il.com> wrote:
> Atmel MXT devices use different i2c addresses, depending on the current
> mode of operation (bootloader or application). The Atmel MXT driver
> expects i2c client's address contain the application address of the
> chip, and calculates the expected bootloader address form the
> application address. Unfortunately chrome_laptop does probe the devices
s/chrome_laptop/chromeos_laptop
> and if touchpad (or touchscreen, or both) comes up in bootloader mode
> the i2c device gets instantiated with the bootloader address, instead of
> application address, which confuses the driver.
>
> Given that hardware on Pixel is set and is not going to change let's not
> try to probe devices to see if they are present or not, but rather
> instantiate them always at expected addresses.
>
> Since all devices are now probed and/or instantiated at given address,
> we no longer need to support probing multiple addresses for the same
> device.
>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
> ---
Also, since we no longer probe for the bootloader addresses, you
should remove the following two unused defines too :
#define ATMEL_TP_I2C_BL_ADDR 0x25
#define ATMEL_TS_I2C_BL_ADDR 0x26
Otherwise :
Reviewed-by: Benson Leung <bleung@...omium.org>
--
Benson Leung
Software Engineer, Chrom* OS
bleung@...omium.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists