Re: [RFC PATCH 1/1] input/touchscreen: Synaptics Touchscreen Driver

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christopher Heiny
Date: Thursday, March 4, 2010 - 6:16 pm

On 03/02/2010 01:12 AM, Dmitry Torokhov wrote:

Hi Dmitry!

Thanks for reviewing our patch.  We plan to address all the issues you 
brought up, and submit an updated patch around the middle of this month 
correcting the majority of them (anything not corrected will be TODOed 
so they don't get lost).

I've included replies to your comments (mostly of the "Noted, will act" 
sort) below.  For brevity, some chunks of the quoted text are snipped 
out, presumably folks needing more context can obtain that from the 
original patch.

				Cheers,
					Chris



Actually, the strange indenting/whitespace is due to a day-long struggle
with checkpatch.pl to get it to accept something - anything - without
complaining.  Personally I thought the formatting that checkpatch 
finally accepted was kind of strange, but went with it.

We'll update to 8-space hard tabs only, and ignore any future checkpatch 
complaints in that department.

We'll address the camel-case issue.


See above re: checkpatch.


See above re: checkpatch.


We've been thinking along those lines recently, since it would really 
increase the flexibility of the driver.  We will either include that 
refactoring in the next patch or plan to do it immediately after.


That's a leftover from a previous incarnation of the driver, which used
doxygen to generate user API documentation.  We'll remove doxygen style 
markups or switch to the kernel-doc standard.  Thanks for catching it.


Heh.  Our expectation is that this driver is going to be picked up by
embedded device manufacturers and handed to engineers who are utterly
inexperienced with the kernel.  So in several places there are comments
that say things that are obvious to experienced kernel programmers (or
even newbies such as ourselves), for the benefit of the poor guy who has
been given a CD of code and the instructions "make it work".


Yes - from here:
       http://www.synaptics.com/developers/manuals
We'll add the URL to the comment.

[snip]


Check - will correct this.


Check - will correct this.


Agreed.  We'll plan to remedy this, hopefully in the next version of the 
patch.


Whoops!  We'll correct that.

[snip]


Check - will correct this.


It was important at one point long ago, but no longer is relevant. 
We'll get rid of it.


Check - will correct this.


Check - will correct this.


Check - will correct this.


Check - will correct this.


Check - will correct this.


Agreed.


We concur, and will change to simplified structure using delayed work 
for both polling and interrupt mode.


Check - will correct this.


Yes it can, we'll update to return and check an error code.


Hmmm.  This just seemed like a handy place to do it.  Checking when 
we're building the list could be more robust, though.


In systems where there are multiple sensors, we may want to leave the 
ones that were successfully configured enabled.


Check - will correct this.


Check - will correct this.


Check - will correct this.


Right.


Check - will correct this.


Check - will correct this.

[snip]


We'll change this and most others to used debugfs instead.


Good point.  Parts of this patch are inherited from some older in-house 
drivers, including this section.  I'm not sure why this section does it 
this way, but it worked so we kept for now.  We'll switch to rely on the 
kernel driver model as you suggest.

[snip]


Agreed, will do.


Agreed, will do.

[snip]


Agreed, will do.


Initial driver development was done on the GTA01, so this tags along. 
We're not sentimental about it, though, so it can be removed.

[snip]


Agreed, will do.


OK, we'll do that in a separate email.  We're trying to cut over to the 
newer approach to i2c, and it's possible we don't understand it entirely.


We need to initialize it somewhere.  It makes more sense to do it in the 
declaration, though, so that's what we'll do.


We'll check this and either correct it or delete it.



Noted, will correct.


We'll correct this.


Good point.  We'll check to see if that's an omission or else remove 
platform_driver_register().

[snip]
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC PATCH 0/1] input/touchscreen: Synaptics Touchscreen D ..., Christopher Heiny, (Wed Feb 17, 3:37 pm)
[RFC PATCH 0/1] input/touchscreen: Synaptics Touchscreen D ..., Christopher Heiny, (Wed Feb 17, 3:37 pm)
[RFC PATCH 1/1] input/touchscreen: Synaptics Touchscreen D ..., Christopher Heiny, (Wed Feb 17, 3:37 pm)
Re: [RFC PATCH 1/1] input/touchscreen: Synaptics Touchscre ..., Christopher Heiny, (Thu Mar 4, 6:16 pm)