]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] SPI: infrastructure to initialize spi_device.mode early
authorDavid Brownell <david-b@pacbell.net>
Wed, 28 Jun 2006 14:47:15 +0000 (07:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Jun 2006 22:51:01 +0000 (15:51 -0700)
commitfbc4b7e50f3914ccb9c54874a01f9e5a8dd28e83
tree8d14aa685d81abe410ce1842a6498878daf8a04d
parentca59fec38d707f4260b62aa0be370d04e041a958
[PATCH] SPI: infrastructure to initialize spi_device.mode early

This patch adds earlier initialization of spi_device.mode, as needed
on boards using nondefault chipselect polarity.  An example would be
ones using the RS5C348 RTC without an external signal inverter between
the RTC chipselect and the SPI controller.

Without this mechanism, the first setup() call for that chip would
wrongly enable chips, corrupting transfers to/from other chips sharing
that SPI bus.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/spi/spi.c
include/linux/spi/spi.h