mmc: atmel: Fix clock configuration
authorMarek Vasut <marex@denx.de>
Fri, 23 Oct 2015 18:46:29 +0000 (20:46 +0200)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Sun, 1 Nov 2015 21:02:15 +0000 (22:02 +0100)
commitecfb0ff81295933584da136da792c317063f7bcc
treeb50df5227e1929049b817d9ea577470a529180f7
parentb84c9c9a988f9631f547222d2d43298c57149e3a
mmc: atmel: Fix clock configuration

After silencing the prints which were generated when reconfiguring the
clock of the SD/MMC bus, surprisingly, the driver stopped working such
that every attempt to use the SD/MMC bus caused the CPU to get totally
stuck hard. It turns out that the prints generated a short delay, which
was necessary for the CPU to reconfigure the clock without getting stuck.
Thus, this patch adds a short delay after the clock configuration instead.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/mmc/gen_atmel_mci.c