]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
omap_uwire: SPI_CPHA mode bugfix
authorImre Deak <imre.deak@solidboot.com>
Wed, 23 May 2007 20:58:20 +0000 (13:58 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 24 May 2007 03:14:15 +0000 (20:14 -0700)
commite5f1b194a9afa3e686986839eb67620e6549e9ad
tree614bf0abccdeefc7f8e68e42ae5947ba79e89a51
parent81fc632355834b7133ec4f3341cfb171bd9edc31
omap_uwire: SPI_CPHA mode bugfix

The omap_uwire controller driver handles SPI_CPHA incorrectly;
It should mean:

  CPHA=0 ... sample at leading edge of clock
  CPHA=1 ... sample at trailing edge of clock

This bug has been masked by inverse bugs in layered drivers;
and was uncovered by running some of them on non-OMAP hardware.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/omap_uwire.c