Linux Input/HID development
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Stefan Roese <sr@denx.de>
Cc: linux-input@vger.kernel.org, Henrik Rydberg <rydberg@bitmath.org>,
	Olivier Sobrie <olivier@sobrie.be>
Subject: Re: Support for touch controller ILI2511: Integrate into ili210x or new driver ?
Date: Fri, 2 Feb 2018 12:06:17 -0800	[thread overview]
Message-ID: <20180202200617.3z2fcfqgpilkkkjk@dtor-ws> (raw)
In-Reply-To: <92137959-654f-79f9-e15f-d9bed2185518@denx.de>

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

      reply	other threads:[~2018-02-02 20:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=20180202200617.3z2fcfqgpilkkkjk@dtor-ws \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=olivier@sobrie.be \
    --cc=rydberg@bitmath.org \
    --cc=sr@denx.de \
    /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