diff options
author | Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com> | 2012-06-12 09:10:58 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-07-02 07:55:36 -0400 |
commit | fd316941cfee1fbd12746afea83720fb7823888a (patch) | |
tree | 9cb6938b756aebfdf125dbe7e829bca296014a8b /drivers/spi | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) |
spi/pl022: disable port when unused
Commit ffbbdd21329f3e15eeca6df2d4bc11c04d9d91c0
"spi: create a message queueing infrastructure"
Accidentally deleted the logic to disable the port
when unused leading to higher power consumption.
Fix this up.
Cc: stable@kernel.org
Cc: Vinit Shenoy <vinit.shenoy@st.com>
Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-pl022.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 400ae2121a2a..469eb28e8328 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c | |||
@@ -489,6 +489,11 @@ static void giveback(struct pl022 *pl022) | |||
489 | pl022->cur_transfer = NULL; | 489 | pl022->cur_transfer = NULL; |
490 | pl022->cur_chip = NULL; | 490 | pl022->cur_chip = NULL; |
491 | spi_finalize_current_message(pl022->master); | 491 | spi_finalize_current_message(pl022->master); |
492 | |||
493 | /* disable the SPI/SSP operation */ | ||
494 | writew((readw(SSP_CR1(pl022->virtbase)) & | ||
495 | (~SSP_CR1_MASK_SSE)), SSP_CR1(pl022->virtbase)); | ||
496 | |||
492 | } | 497 | } |
493 | 498 | ||
494 | /** | 499 | /** |