]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ads7846 - SPI_CPHA mode bugfix
authorSemih Hazar <semih.hazar@indefia.com>
Wed, 23 May 2007 03:35:12 +0000 (23:35 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Wed, 23 May 2007 03:35:12 +0000 (23:35 -0400)
commit7eb7173a3fcbdd12d8b02259196d37e9b437887a
treeabd53863436714298c5b8920cbbbb9b2cf9ba6b7
parent8adf420696be0bb4c8471ef05eebb046237fae23
Input: ads7846 - SPI_CPHA mode bugfix

In commit [1] the SPI mode is set to 1, but it should be 0.  As stated
in the commit, ads784x samples the data on the rising edge.  SPI mode 1
samples on the falling edge [2] though.

The root cause of this is a bug in the omap_uwire code, which treats
CPHA=1 incorrectly; so these two bugs cancel each other out on one
of the main regression test platforms for this driver.

[1] kernel.org GIT 89433679a8e290e32e19421fdd66d65ff5816cad
[2] http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ads7846.c