diff options
author | Eddie James <eajames@linux.ibm.com> | 2020-07-09 22:57:06 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2020-07-27 05:09:48 +0300 |
commit | c31e6e713de7d4b4498ca6c2fface68b17552a2b (patch) | |
tree | d8b0ec1cc10fbc0c5239bf26f4963789a5f245c5 /scripts/gdb/linux/utils.py | |
parent | 275ccda0bf252d764706aa7d98a16ddac17178c6 (diff) | |
download | linux-c31e6e713de7d4b4498ca6c2fface68b17552a2b.tar.xz |
mmc: sdhci-of-aspeed: Fix clock divider calculation
When calculating the clock divider, start dividing at 2 instead of 1.
The divider is divided by two at the end of the calculation, so starting
at 1 may result in a divider of 0, which shouldn't happen.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Acked-by: Joel Stanley <joel@jms.id.au>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200709195706.12741-3-eajames@linux.ibm.com
Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions