[PATCH v2 0/3] mmc: sdhci: Card detection fixes

2015-07-06 Thread Ivan T. Ivanov
Following changes aimed to fix some aspects of card detection, when BROKEN_CARD_DETECTION quirk is set. Changes since first version [1]: * Patch 1/3 is a modified to first check for MMC_CAP_NONREMOVABLE and then check for a valid value in gpio_cd [1]

[PATCH v2 2/3] mmc: sdhci: don't use card state polling when CD GPIO is defined

2015-07-06 Thread Ivan T. Ivanov
There is no reason to use polling for card detection state change when drivers are using dedicated GPIO for this. Don't poll in this case. Signed-off-by: Ivan T. Ivanov ivan.iva...@linaro.org --- drivers/mmc/host/sdhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

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

2015-07-06 Thread Ivan T. Ivanov
Ensure SDCC is working with maximum clock otherwise card detection could be extremely slow, up to 7 seconds. Signed-off-by: Ivan T. Ivanov ivan.iva...@linaro.org Reviewed-by: Georgi Djakov georgi.dja...@linaro.org Acked-by: Stephen Boyd sb...@codeaurora.org --- Changes since v0: -

[PATCH v2 1/3] mmc: sdhci: let GPIO based card detection have higher precedence

2015-07-06 Thread Ivan T. Ivanov
Controller could have BROKEN_CARD_DETECTION quirk set, but drivers could use GPIO to detect card present state. Let, when defined, GPIO take precedence, so drivers could properly detect card state and not use polling. Signed-off-by: Ivan T. Ivanov ivan.iva...@linaro.org ---

[PATCH v2 3/3] mmc: sdhci: properly check card present state when quirk NO_CARD_NO_RESET is set

2015-07-06 Thread Ivan T. Ivanov
Controller could have both NO_CARD_NO_RESET and BROKEN_CARD_DETECTION quirks set. Use sdhci_do_get_cd() when applying NO_CARD_NO_RESET, which properly check for BROKEN_CARD_DETECTION quirk. Signed-off-by: Ivan T. Ivanov ivan.iva...@linaro.org --- drivers/mmc/host/sdhci.c | 3 +-- 1 file changed,

[PATCH] clk: qcom: Constify the parent names arrays

2015-07-06 Thread Georgi Djakov
Make const both the array and the strings, so they can be moved to .rodata section. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Patch based on v4.2-rc1 drivers/clk/qcom/gcc-apq8084.c | 12 ++-- drivers/clk/qcom/gcc-ipq806x.c | 10 +-

Re: [PATCH] mfd: qcom-rpm: Add apq8064 QDSS clock resource

2015-07-06 Thread Bjorn Andersson
On Mon 18 May 07:35 PDT 2015, Ivan T. Ivanov wrote: Qualcomm Debug Subsystem clock is used by CoreSight components. Add required definitions for it. Signed-off-by: Ivan T. Ivanov ivan.iva...@linaro.org Sorry for the slow response Ivan. --- drivers/mfd/qcom_rpm.c | 1 + 1 file changed,

[PATCH 5/6] drm/msm/mdp5: use 2 memory clients for YUV formats on newer mdp5

2015-07-06 Thread Stephane Viau
From: Wentao Xu went...@codeaurora.org Newer MDP5 uses 2 shared memory pool clients for certain YUV formats. For example, if VIG0 is used to fetch data in YUYV format, it will use VIG0_Y for Y component, and VIG0_Cr for UV packed. Signed-off-by: Wentao Xu went...@codeaurora.org [rebase]

[PATCH 6/6] drm/msm/mdp5: add more YUV formats for MDP5

2015-07-06 Thread Stephane Viau
Add packed YUV422 and planar YUV420 formats to MDP supported formats. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 105 +- drivers/gpu/drm/msm/mdp/mdp_format.c | 19 ++ 2 files changed, 77 insertions(+),

[PATCH 3/6] drm/msm/mdp: Update generated headers (chroma_samp)

2015-07-06 Thread Stephane Viau
See Envytools patch: rnndb: Rename 1st Source Chroma Sampling option Signed-off-by: Wentao Xu went...@codeaurora.org Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp_common.xml.h | 37 +++- 1 file changed, 3 insertions(+), 34

[PATCH 1/6] drm/msm/mdp5: Update generated headers (filter fieds)

2015-07-06 Thread Stephane Viau
See envytools commit: rnndb: Rename scalers' filter fields Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h | 58 - 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5.xml.h

[PATCH 4/6] drm/msm/mdp: mark if a MDP format is YUV at definition

2015-07-06 Thread Stephane Viau
From: Wentao Xu went...@codeaurora.org This makes it easy to determine if a format is YUV. The old method of using chroma sample type incorrectly marks YUV444 as RGB format. Signed-off-by: Wentao Xu went...@codeaurora.org [rebase] Signed-off-by: Stephane Viau sv...@codeaurora.org Change-Id:

[PATCH 2/6] drm/msm/mdp5: Rename scalers' filter fields

2015-07-06 Thread Stephane Viau
The current names were guessed based on downstream driver. This change replaces the filter fields' names to avoid any confusion. Signed-off-by: Stephane Viau sv...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-)

[PATCH] rnndb: Rename scalers' filter fields

2015-07-06 Thread Stephane Viau
The current names were guessed based on downstream driver. This change replaces the filter fields' names to avoid any confusion. Signed-off-by: Stephane Viau sv...@codeaurora.org --- rnndb/mdp/mdp5.xml | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git

[PATCH] rnndb: Rename 1st Source Chroma Sampling option

2015-07-06 Thread Stephane Viau
enum mdp_chroma_samp_type's first value (0) is actually shared by all non-subsampled formats; that is RGB but also some YUV formats (eg: YUV444). This change makes the name a little less confusing. Signed-off-by: Stephane Viau sv...@codeaurora.org Signed-off-by: Wentao Xu went...@codeaurora.org

Re: [PATCH] clk: qcom: Constify the parent names arrays

2015-07-06 Thread Stephen Boyd
On 07/06, Georgi Djakov wrote: Make const both the array and the strings, so they can be moved to .rodata section. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation

Re: [PATCH 1/5] clk: qcom: Add support for SR2 PLLs

2015-07-06 Thread Stephen Boyd
On 06/12, Georgi Djakov wrote: Add support for SR2 type pll operations. SR2 is optimized for Time Interval Error (TIE) or absolute jitter. Signed-off-by: Georgi Djakov georgi.dja...@linaro.org --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a

[PATCH] Input: pmic8xxx-pwrkey - Support shutdown

2015-07-06 Thread Stephen Boyd
On pm8xxx PMICs, shutdown and restart are signaled to the PMIC via a pin called PS_HOLD. When this pin goes low, the PMIC performs a configurable power sequence. Add a .shutdown hook so that we can properly configure this power sequence for shutdown or restart depending on the system state.

[PATCH] pinctrl: qcom: Hook pm_power_down for shutdown support

2015-07-06 Thread Stephen Boyd
Assign pm_power_off() if we have the PS_HOLD functionality so that we can properly shutdown the SoC. Otherwise, shutdown won't do anything besides put the CPU into a tight loop. Unfortunately, we have to use a singleton here because pm_power_off() doesn't take any arguments. Fortunately there's