]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: duplicated trial with same freq in mmc_rescan_try_freq()
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 12 May 2011 08:18:59 +0000 (17:18 +0900)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 03:53:59 +0000 (23:53 -0400)
commit39c7cad101f6f6f00588e20c42c650aefde26ee9
tree00808b589ed4e95fd77722fadf106bf8a1121782
parent48e4f053170c09add215a11a9e8c06d410e632f0
mmc: core: duplicated trial with same freq in mmc_rescan_try_freq()

mmc_rescan_try_freq() tries to init two times with the last frequency.
For example, if host->f_min is 400KHz, we see the message below:

mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz
mmc1: mmc_rescan_try_freq: trying to init card at 400000 Hz

Andy Ross says that he didn't try this code on a board with an f_min
that exactly matches one of the table entries, which explains why the
bug wasn't detected.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Andy Ross <andy.ross@windriver.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c