[PATCH] drivers: mmc: sdhci: update max frequency only if undefined

2015-06-18 Thread Suneel Garapati
f_max parameter of mmc structure is updated unconditionally. If dt property max-frequency is assigned, this update is overwriting the dt property value which is undesired. Signed-off-by: Suneel Garapati suneel.garap...@xilinx.com --- drivers/mmc/host/sdhci.c | 5 - 1 file changed, 4

[PATCH 0/2] adds quirk SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN

2015-06-09 Thread Suneel Garapati
reported in registers is broken and preset values are broken too and tested on zynq ep108 platform. max-frequency devicetree parameter is alternative to get upper limit . Suneel Garapati (2): drivers: mmc: add quirk SDHCI_QUIRK_CLOCK_DIV_ZERO_BROKEN drivers: mmc: add quirks for broken clock

[PATCH 2/2] drivers: mmc: add quirks for broken clock base

2015-06-09 Thread Suneel Garapati
adding SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN,SDHCI_QUIRK2_PRESET_VALUE_BROKEN flags for arasan sdhc. Signed-off-by: Suneel Garapati suneel.garap...@xilinx.com --- drivers/mmc/host/sdhci-of-arasan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers

[PATCH 1/2] drivers: mmc: add quirk SDHCI_QUIRK_CLOCK_DIV_ZERO_BROKEN

2015-06-09 Thread Suneel Garapati
adds quirk for controllers whose clock divider zero is broken, sdhci_set_clock function will incorporate this modification. Signed-off-by: Suneel Garapati suneel.garap...@xilinx.com --- drivers/mmc/host/sdhci.c | 4 drivers/mmc/host/sdhci.h | 2 ++ 2 files changed, 6 insertions(+) diff