linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Support for touch controller ILI2511: Integrate into ili210x or new driver ?
@ 2018-02-02 16:03 Stefan Roese
  2018-02-02 20:06 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Roese @ 2018-02-02 16:03 UTC (permalink / raw)
  To: linux-input; +Cc: Dmitry Torokhov, Henrik Rydberg, Olivier Sobrie

Hi,

I'm currently working on supporting the Ilitek ILI2511 touch controller
in mainline. The 2 choices I have are:

a) Try to integrate the ILI2511 support into the existing ili210x
    driver

or

b) Create a new driver for ILI2511 which might be suitable for other /
    future Ilitek controller

Looking at alternative a), ili210x seems to be pretty unused and in not
real good shape (only supporting platform-data, not using devm_ calls,
not using threaded interrupts etc...). I could enhance this driver but
my main concern here is, that I have no chance to test this driver on
the currently supported chips.

Alternative b) sounds more promising to me. Especially since ILI2511
supports touch protocol v3.x (Ilitek naming), which is quite different
from the currently supported protocol.

What's your recommendation here? Is it okay to go with adding a new
driver, perhaps named something like ili2xxx?

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Support for touch controller ILI2511: Integrate into ili210x or new driver ?
  2018-02-02 16:03 Support for touch controller ILI2511: Integrate into ili210x or new driver ? Stefan Roese
@ 2018-02-02 20:06 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2018-02-02 20:06 UTC (permalink / raw)
  To: Stefan Roese; +Cc: linux-input, Henrik Rydberg, Olivier Sobrie

Hi Stefan,

On Fri, Feb 02, 2018 at 05:03:10PM +0100, Stefan Roese wrote:
> Hi,
> 
> I'm currently working on supporting the Ilitek ILI2511 touch controller
> in mainline. The 2 choices I have are:
> 
> a) Try to integrate the ILI2511 support into the existing ili210x
>    driver
> 
> or
> 
> b) Create a new driver for ILI2511 which might be suitable for other /
>    future Ilitek controller
> 
> Looking at alternative a), ili210x seems to be pretty unused and in not
> real good shape (only supporting platform-data, not using devm_ calls,
> not using threaded interrupts etc...). I could enhance this driver but
> my main concern here is, that I have no chance to test this driver on
> the currently supported chips.
> 
> Alternative b) sounds more promising to me. Especially since ILI2511
> supports touch protocol v3.x (Ilitek naming), which is quite different
> from the currently supported protocol.
> 
> What's your recommendation here? Is it okay to go with adding a new
> driver, perhaps named something like ili2xxx?

It all depends on how much code can be shared. If protocol is
sufficiently different I do not see why it can't be a separate driver.

OTOH we do not have any users of ili210x in mainline, so I would not
worry too much if we break it - interested parties should have been
working on upstreaming the rest of their code if it is important to
them. I'll gladly take patches converting to devm, dropping platform
data support, using generic device properties, etc.

Thanks.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-02-02 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-02 16:03 Support for touch controller ILI2511: Integrate into ili210x or new driver ? Stefan Roese
2018-02-02 20:06 ` Dmitry Torokhov

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).