Re: [PATCH] input: Add Atmel maXTouch touchscreen driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 17, 2010 at 08:04:32AM -0600, Murphy, Dan wrote:
> Hi Dmitry
> 
> On Wed, Nov 17, 2010 at 4:41 AM, Iiro Valkonen <iiro.valkonen@xxxxxxxxx> wrote:
> > On 11/12/2010 10:10 PM, Dmitry Torokhov wrote:
> > Hi Dmitry,
> >
> > the current driver is written for one maXTouch chip, mXT224. The
> > driver that I submitted will support all current >maXTouch chips,
> > and it is built to be future-proof so it should work with yet to be
> > released chips too, with minor or no changes. This shows in the
> > naming too, part name "qt602240" is deprecated and it shouldn't be
> > used. As the driver should work with all chips in the maXTouch
> > family, a more generic naming convention in the driver name itself
> > and all the code inside the driver would be more appropriate.

The name of the driver is not important and can easily be changed, just
send me a patch.

> 
> Having written this same driver for this IC I agree with Iiro that we
> should have one driver that would support multiple IC firmware
> revisions.  Once we had the base driver completed adding functionality
> to the driver was a snap.
> 
> Can these two drivers co-exist and let the developer decide which driver to use?
> Of course the Atmel driver needs to be scrubbed for problems.

No, that would cause duplicate effort. Just witness patches form Intel
submitted for the mainline driver a few days ago.

Development process in Linux kernel is rarely revolutionary but rather
evolutionary. That is why I asked Iiro to enumerate the changes needed
for qt602240 to support entire line of maXTouch chips.

> 
> Now.  I also strongly agree with Dmitry that the driver you are
> submitting is IMHO really rough and needs work.  Without even
> reviewing the complete functionality I have many concerns about the
> code.
> 
> For instance the header file spacing is really crazy.  I am not sure
> if the spacing was intended but it is really hard to follow.  In the
> source it seems like there is more debug code then functional working
> code.  The driver should be updated to use the request_threaded_irq
> call and not the request_irq then there is no need for scheduling work
> queues.  I can go on and on.... But I won't do a complete review on
> this driver unless Dmitry indicates that he will merge it once
> complete.

Like I said, I will not take the driver wholesale but I will take it
piecemeal, feature by feature transforming qt602240.

BTW, what is up with needing 2 custom character devices?

> 
> >
> > Atmel would like to be the maintainer of this driver, and it would
> > be easiest if we could use the code I submitted. Of course we would
> > be happy to implement any improvements like the threaded IRQs.
>
> I would prefer Atmel be the maintainer as they can expedite future
> changes into the driver prior to releasing the support firmware.
>

I will be delighted if Atmel takes over the driver, as long as they
follow the standard kernel practices.

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux