]> git.baikalelectronics.ru Git - kernel.git/commit
spi_s3c24xx: cache device setup data
authorBen Dooks <ben@simtec.co.uk>
Tue, 22 Sep 2009 23:46:14 +0000 (16:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 23 Sep 2009 14:39:44 +0000 (07:39 -0700)
commit32133b17deeb875a240a62ddb2f36d7b60768ba2
tree273502722726dab6e8a1c1fa903e642d22be3373
parent3d80adc4e448e2479be137c1ede6f2a93b7c9a1e
spi_s3c24xx: cache device setup data

With the update to the spi_bitbang driver, the transfer setup code is
being called more often, and thus is often re-doing calculations that have
been done before.  The SPI layer allows our driver to add its own data to
each device so add a result cache to each device.

This should also remove the problem where we where directly setting up
registers in the setup call which meant we might overwrite the state of an
extant transfer.,

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/spi_s3c24xx.c