]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: bcm2835: Don't overwrite max frequency unconditionally
authorPhil Elwell <phil@raspberrypi.org>
Mon, 12 Feb 2018 20:13:44 +0000 (21:13 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 14 Feb 2018 10:30:10 +0000 (11:30 +0100)
commitb13604d6154dcf874a41372ed9b778d1f64f7397
tree06be4c283829cb1fdbca85e2a548debeb8b38c08
parentc359bcc8bb442d78303b78dfdd1948cd05c0f11e
mmc: bcm2835: Don't overwrite max frequency unconditionally

The optional DT parameter max-frequency could init the max bus frequency.
So take care of this, before setting the max bus frequency.

Fixes: 3c526e49d652 ("mmc: bcm2835: Add new driver for the sdhost controller.")
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Cc: <stable@vger.kernel.org> # 4.12+
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/bcm2835.c