]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7280/1: mmc: mmci: Cache MMCICLOCK and MMCIPOWER register
authorUlf Hansson <ulf.hansson@stericsson.com>
Wed, 18 Jan 2012 08:17:27 +0000 (09:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Feb 2012 17:02:15 +0000 (17:02 +0000)
commit4e49929b71a81b55c2ff1c2afc8d4dd8768edf4f
treea668a44a7c54b9f8e73c816831ad0958cc61fc18
parentd86fb39ba6bb98f90957d0ad401bb157bf7fd0ff
ARM: 7280/1: mmc: mmci: Cache MMCICLOCK and MMCIPOWER register

Instead of reading a register value everytime we need to
apply a new value for it, maintain a cached copy for it.
This also means we are able to skip writes that are not
needed.

Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/host/mmci.c
drivers/mmc/host/mmci.h