]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ARM: 5697/1: MMCI Break out clock divider setup
authorLinus Walleij <linus.walleij@stericsson.com>
Mon, 14 Sep 2009 11:56:14 +0000 (12:56 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 15 Sep 2009 21:11:05 +0000 (22:11 +0100)
commita6a6464a0ecd20c5f1594a4fe5b24af6181b7366
treef97039472b6a10b36d9e068e59f00c2bf290819e
parentbc581770cfdd8c17ea17d324dc05e2f9c599e7ca
ARM: 5697/1: MMCI Break out clock divider setup

This breaks out the clock divider set-up code from the
mmci_set_ios() code and surrounds the two register
writes with a host lock so we don't get collisions if
(in future code) two code paths want to change the
clock divider at the same time as can be the case if
we get something like pre/post- clock frequency change
notifications soonish.

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