[PATCH] mmc: pxamci: fix read-only gpio detection polarity

2015-11-05 Thread Robert Jarzmik
The commit converting pxamci to slot-gpio API inverted the logic of the read-only gpio. Fix it by inverting the logic again. Fixes: fd546ee6a7dc ("mmc: pxamci: fix card detect with slot-gpio API") Signed-off-by: Robert Jarzmik Cc: sta...@vger.kernel.org ---

[PATCH 4/4] mmc: sdhci-brcmstb: Add sdhci driver for Broadcom BRCMSTB/BMIPS SOCs

2015-11-05 Thread Al Cooper
Signed-off-by: Al Cooper --- .../devicetree/bindings/mmc/sdhci-brcmstb.txt | 16 +++ drivers/mmc/host/Kconfig | 12 ++ drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-brcmstb.c | 143

[PATCH 1/4] mmc: Add quirk to disable SDR50 mode

2015-11-05 Thread Al Cooper
Add quirk to disable SDR50 mode for controllers/boards that have problems with this mode. Signed-off-by: Al Cooper --- drivers/mmc/host/sdhci.c | 3 +++ drivers/mmc/host/sdhci.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/drivers/mmc/host/sdhci.c

[PATCH 3/4] mmc: Add Device Tree binding supported by sdhci-pltfm.c

2015-11-05 Thread Al Cooper
This includes both newly added and previously undocumented properties. Signed-off-by: Al Cooper --- Documentation/devicetree/bindings/mmc/mmc.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt

[PATCH 2/4] mmc: sdhci-pltfm: Add DT properties to set various QUIRKS

2015-11-05 Thread Al Cooper
Add support for "broken-sdr50", "broken-ddr50", "broken-64-bit-dma" and "broken-timeout-value" device tree properties. The properties will cause the corresponding quirks bits to be set. This allows some of the platform specific QUIRKS setting to be moved out of the driver and into the Device Tree

Re: [PATCH v2] mmc: sdhci-msm: Boost controller core clock

2015-11-05 Thread Bjorn Andersson
On Mon, Jul 6, 2015 at 4:53 AM, Ivan T. Ivanov wrote: > Ensure SDCC is working with maximum clock otherwise card > detection could be extremely slow, up to 7 seconds. > > Signed-off-by: Ivan T. Ivanov > Reviewed-by: Georgi Djakov

[PATCH 2/2] mmc: core: Remove MMC_CAP_RUNTIME_RESUME as it's redundant

2015-11-05 Thread Ulf Hansson
Signed-off-by: Ulf Hansson --- drivers/mmc/host/dw_mmc-rockchip.c | 8 drivers/mmc/host/mtk-sd.c | 1 - include/linux/mmc/host.h | 1 - 3 files changed, 10 deletions(-) diff --git a/drivers/mmc/host/dw_mmc-rockchip.c

[PATCH 1/2] mmc: core: Make runtime resume default behavior for MMC/SD

2015-11-05 Thread Ulf Hansson
MMC_CAP_RUNTIME_RESUME was invented to decrease system PM resume time for systems that particularly needs this. As the feature has matured let's make it the default behavior for MMC/SD. Signed-off-by: Ulf Hansson --- drivers/mmc/core/mmc.c | 15 ++-

[PATCH 2/2] mmc: core: Keep host claimed in mmc_rescan() while calling host ops

2015-11-05 Thread Ulf Hansson
As mmc_claim_host() invokes pm_runtime_get_sync() for the mmc host device, it's important that the host is kept claimed for *all* accesses to it via the host_ops callbacks. In mmc_rescan(), the ->card_event() and the ->get_cd() callback are being invoked without claiming the host, let's fix this.

[PATCH 1/2] mmc: core: Invoke ->card_event() callback only when needed

2015-11-05 Thread Ulf Hansson
The ->card_event() callback may be called when re-scan is disabled and for non-removable cards, which both cases are unnecessary. Instead let's move the call later in mmc_rescan() where these constraints have been validated. Signed-off-by: Ulf Hansson ---

[PATCH] mmc: core: Refactor code to register the MMC PM notifier

2015-11-05 Thread Ulf Hansson
Instead of checking for "#ifdef" directly in the code, let's invent a pair of mmc core functions to deal with register/unregister the MMC PM notifier block. Implement stubs for these functions when CONFIG_PM_SLEEP is unset, as in that case the PM notifiers isn't used. Signed-off-by: Ulf Hansson

[PATCH] mmc: core: Check for non-removable cards earlier in the error path

2015-11-05 Thread Ulf Hansson
_mmc_detect_card_removed() validates that the card is removable, but when being called via the bus_ops ->detect() callbacks, the validation is redundant as it's already done in mmc_rescan(). Move the validation of a removable card to the mmc_detect_card_removed() API, which is where it's