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)
commit118032be389009b07ecb5a03ffe219a89d421def
tree06be4c283829cb1fdbca85e2a548debeb8b38c08
parentfe0e58048f005fdce315eb4d185e5c160be4ac01
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: 660fc733bd74 ("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