mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Test update to 4.14
This commit is contained in:
parent
57d33083f7
commit
dccb17c612
270 changed files with 149330 additions and 5 deletions
|
@ -0,0 +1,36 @@
|
|||
From 36f18cac8d49801ec028a645de90b12f37a72d9f Mon Sep 17 00:00:00 2001
|
||||
From: Phil Elwell <phil@raspberrypi.org>
|
||||
Date: Mon, 22 Jan 2018 12:22:01 +0000
|
||||
Subject: [PATCH 186/277] mmc: bcm2835-mmc: Support underclocking
|
||||
|
||||
Support underclocking of the SD bus using the max-frequency DT property
|
||||
(which currently has no DT parameter). The sd_overclock parameter
|
||||
already provides another way to achieve the same thing which should be
|
||||
equivalent in end result, but it is a bug not to support max-frequency
|
||||
as well.
|
||||
|
||||
See: https://github.com/raspberrypi/linux/issues/2350
|
||||
|
||||
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
|
||||
---
|
||||
drivers/mmc/host/bcm2835-mmc.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/drivers/mmc/host/bcm2835-mmc.c b/drivers/mmc/host/bcm2835-mmc.c
|
||||
index c4a5e992c6fb..b7f5fd96ecb6 100644
|
||||
--- a/drivers/mmc/host/bcm2835-mmc.c
|
||||
+++ b/drivers/mmc/host/bcm2835-mmc.c
|
||||
@@ -1310,8 +1310,8 @@ static int bcm2835_mmc_add_host(struct bcm2835_host *host)
|
||||
|
||||
host->clk_mul = 0;
|
||||
|
||||
- mmc->f_max = host->max_clk;
|
||||
- mmc->f_max = host->max_clk;
|
||||
+ if (!mmc->f_max || mmc->f_max > host->max_clk)
|
||||
+ mmc->f_max = host->max_clk;
|
||||
mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_300;
|
||||
|
||||
/* SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK */
|
||||
--
|
||||
2.16.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue