]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-sprd: Fix minimum clock limit
authorWenchao Chen <wenchao.chen@unisoc.com>
Tue, 11 Oct 2022 10:49:35 +0000 (18:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:13 +0000 (13:22 +0200)
commit98712d4f7f7e89da39976823c10793add20ee65c
tree879d1ebc7050bd88f67e3395e58a864ac48a3322
parentf6cbdbbba1869cecfa9c3461deb3e2f75c113670
mmc: sdhci-sprd: Fix minimum clock limit

commit 51c43aea24334e7a509b6d202e1721204b738d48 upstream.

The Spreadtrum controller supports 100KHz minimal clock rate, which means
that the current value 400KHz is wrong.

Unfortunately this has also lead to fail to initialize some cards, which
are allowed to require 100KHz to work. So, let's fix the problem by
changing the minimal supported clock rate to 100KHz.

Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Fixes: 4e150946b509 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221011104935.10980-1-wenchao.chen666@gmail.com
[Ulf: Clarified to commit-message]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-sprd.c