If I understand the patch above, you basically have:
if ()
goto out;
else
ret = ufshcd_resume();
out:
Wouldn't it be better to just reverse the above if condition?
if (!...)
ret = ufshcd_resume();
That would be much less
+#define UFSHCD_UPDATE_TAG_STATS(hba, tag)
+#define UFSHCD_UPDATE_TAG_STATS_COMPLETION(hba, cmd)
+#define UFSHCD_UPDATE_ERROR_STATS(hba, type)
+
+#endif
Is there any reason that these are defined as macros instead of
static functions?
No special reason that I'm aware of. I will convert
On Fri, Feb 27, 2015 at 02:30:16PM -0800, Bjorn Andersson wrote:
Add binding documentation for the Qualcomm Hardware Mutex.
Signed-off-by: Bjorn Andersson bjorn.anders...@sonymobile.com
---
Looks fine.
Reviewed-by: Andy Gross agr...@codeaurora.org
--
Qualcomm Innovation Center, Inc.
The
Add all data for the GDSCs which are part of msm8916 GCC block.
Signed-off-by: Rajendra Nayak rna...@codeaurora.org
---
drivers/clk/qcom/Kconfig | 1 +
drivers/clk/qcom/gcc-msm8916.c | 46
From: Stephen Boyd sb...@codeaurora.org
Theres just one GDSC as part of the msm8974 GCC block.
Signed-off-by: Stephen Boyd sb...@codeaurora.org
Signed-off-by: Rajendra Nayak rna...@codeaurora.org
---
drivers/clk/qcom/Kconfig | 1 +
drivers/clk/qcom/gcc-msm8974.c
The common clk probe registers a clk provider and a reset controller.
Update it to register a genpd provider using the gdsc data provided
by each platform.
Signed-off-by: Rajendra Nayak rna...@codeaurora.org
---
drivers/clk/qcom/common.c | 27 ++-
GDSCs (Global Distributed Switch Controllers) control switches
that supply power to an on-chip power domain and hence can be
programmed in SW to safely power collapse and restore power to the
respective PDs. They are part of a considerable number of recent QCOM
SoCs (This series adds support for
From: Stephen Boyd sb...@codeaurora.org
GDSCs (Global Distributed Switch Controllers) are responsible for
safely collapsing and restoring power to peripherals in the SoC.
These are best modelled as power domains using genpd and given
the registers are scattered throughout the clock controller
From: Stephen Boyd sb...@codeaurora.org
Add the GDSC instances that exist as part of msm8974 MMCC block
Signed-off-by: Stephen Boyd sb...@codeaurora.org
Signed-off-by: Rajendra Nayak rna...@codeaurora.org
---
drivers/clk/qcom/Kconfig | 1 +
drivers/clk/qcom/mmcc-msm8974.c
Add the GDSC instances that exist as part of apq8084 GCC block
Signed-off-by: Rajendra Nayak rna...@codeaurora.org
---
drivers/clk/qcom/gcc-apq8084.c | 38
include/dt-bindings/clock/qcom,gcc-apq8084.h | 6 +
2 files changed, 44 insertions(+)
diff
10 matches
Mail list logo