]> 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)
commit7cd20ce4a02fc45761ec17434a10fbf25c540dc7
tree06be4c283829cb1fdbca85e2a548debeb8b38c08
parentc761e867a4c53d8d09cda0304acf97477922b9ef
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: a970a9a7ec8f ("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