spi: s3c64xx: Do not request CS GPIO on subsequent calls to .setup()
authorTomasz Figa <tomasz.figa@gmail.com>
Sun, 11 Aug 2013 00:33:29 +0000 (02:33 +0200)
committerMark Brown <broonie@linaro.org>
Sun, 11 Aug 2013 13:06:30 +0000 (14:06 +0100)
commit0149871c428cc8cb44337703ca46a98a6b541b42
tree4241d6555f8be9cfe0ad815d61bea1830eedfe48
parentb1a8e78d173081c303bea88e92a1e1423befca63
spi: s3c64xx: Do not request CS GPIO on subsequent calls to .setup()

Comments in linux/spi/spi.h and observed behavior show that .setup()
callback can be called multiple times without corresponding calls to
.cleanup(), what was incorrectly assumed by spi-s3c64xx driver, leading
to failures trying to request CS GPIO multiple times.

This patch modifies the behavior of spi-s3c64xx driver to request CS
GPIO only on first call to .setup() after last .cleanup().

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-s3c64xx.c
This page took 0.024244 seconds and 5 git commands to generate.