mmc: sdhci-sprd: Fix the limitation of div
authorWenchao Chen <wenchao.chen@unisoc.com>
Wed, 14 Sep 2022 06:37:02 +0000 (14:37 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Sep 2022 09:34:06 +0000 (11:34 +0200)
commitd252e9b1073a12fee68fc9a626a83035cd03cf70
treefb04efd75975b79353b86e3b88465df805ff56a8
parent627a78b2dec669c4efa216d827341c948eb3f42d
mmc: sdhci-sprd: Fix the limitation of div

Because the bit field size of the divider coefficient register is 1023, it is
limited before returning the value.

Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>
Link: https://lore.kernel.org/r/20220914063702.20283-1-wenchao.chen666@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-sprd.c