[PATCH 3/6] Input: psmouse - rearrange Focaltech init code

2015-11-28 Thread Dmitry Torokhov
The fact that we were calling focaltech_init() even when Focaltech support is disabled was confusing. Rearrange the code so that if support is disabled we continue to fall through the rest of protocol probing code until we get to full reset that Focaltech devices need to work properly. Also, repla

[PATCH 6/6] Input: psmouse - limit protocols that we try on passthrough ports

2015-11-28 Thread Dmitry Torokhov
PS/2 protocol is slow, and using it with pass-through port (where we encapsulate PS/2 into PS/2) is slower yet so it takes quite a bit of time to do full protocol discovery for device attached to a pass-through port. However, so far we have not see anything but trackpoints or basic PS/2 mice on pas

[PATCH 1/6] Input: psmouse - use switch statement in psmouse_process_byte()

2015-11-28 Thread Dmitry Torokhov
Instead of a series mostly exclusive "if" statements testing protocol type of the mouse let's use "switch" statement. Signed-off-by: Dmitry Torokhov --- drivers/input/mouse/psmouse-base.c | 65 ++ 1 file changed, 31 insertions(+), 34 deletions(-) diff --git a

[PATCH 2/6] Input: psmouse - fix comment style

2015-11-28 Thread Dmitry Torokhov
The module was using non-standard comment style with comment blocks often starting at the very beginning of a line instead of being aligned with the code. Let's switch to standard formatting. Signed-off-by: Dmitry Torokhov --- drivers/input/mouse/psmouse-base.c | 279 +---

[PATCH 5/6] Input: psmouse - factor out common protocol probing code

2015-11-28 Thread Dmitry Torokhov
In preparation of limiting protocols that we try on pass-through ports, let's rework initialization code and factor common code into psmouse_try_protocol() that accepts protocol type (instead of detec() function pointer) and can, for most protocols, perform both detection and initialization. Note

[PATCH 4/6] Input: psmouse - move protocol descriptions around

2015-11-28 Thread Dmitry Torokhov
We move protocol descriptions and psmouse_find_by_type() and pmouse_find_by_name() so that we can use them without forward declarations in the subsequent patches. Signed-off-by: Dmitry Torokhov --- drivers/input/mouse/psmouse-base.c | 379 ++--- 1 file changed, 18

[PATCH 0/6] Only probe select protocols on pass through PS/2 prots

2015-11-28 Thread Dmitry Torokhov
This series limits protocols that we probe on pass-through PS/2 ports to IBM Trackpoint, Intellimouse, Intellimouse Explorer and basic PS/2, since we have not seen anything else and probing all possible protocols takes too long. Input: psmouse - use switch statement in psmouse_process_byte() I

Re: [PATCH 05/10] Input: synaptics-rmi4: Add device tree support for 2d sensors and F11

2015-11-28 Thread Andrew Duggan
Hi Rob, Thanks for reviewing! I will incorporate your feedback into the next version. Andrew On 11/27/2015 01:10 PM, Rob Herring wrote: On Wed, Nov 25, 2015 at 04:09:13PM -0800, Andrew Duggan wrote: 2D sensors have several parameter which can be set in the platform data. This patch adds sup

Re: [PATCH 00/10] Input: synaptics-rmi4: Synaptics RMI4 Driver rebased on 4.3

2015-11-28 Thread Andrew Duggan
On 11/26/2015 02:41 AM, Benjamin Tissoires wrote: Hi Andrew, On Nov 25 2015 or thereabouts, Andrew Duggan wrote: This is a new patch series which squashes all of the development history of the RMI4 driver into patches based on functionality. The first patch adds the core RMI4 functionality ne

Re: X-Box one controller causes Xpad to crash [NEW INFO]

2015-11-28 Thread Jonathan Beilharz
On 27.11.2015 19:08, Dmitry Torokhov wrote: On Fri, Nov 27, 2015 at 06:47:10PM +0100, Jonathan Beilharz wrote: On 27.11.2015 18:34, Dmitry Torokhov wrote: Hi Jonathan, On Fri, Nov 27, 2015 at 05:48:56PM +0100, Jonathan Beilharz wrote: Still haven't got it on the mailing list... Also can't fin