Commit graph

580010 commits

Author SHA1 Message Date
Taniya Das
44aa223a3e clk: move check for CLK_ENABLE_HAND_OFF at unused tree
The commit 04a0136aeea5 ("clk: introduce CLK_ENABLE_HAND_OFF flag")
assumes that the first time clock client calls a clk_prepare &
clk_enable, the clocks from that point of time could be on their own.
But there could be use cases which could have impacts due to this
handling. Moving the handoff counts for prepare and enable at unused
tree level.

Change-Id: I7d527571c2eb4d53d58d82126989bd673de12e2d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 11:42:24 +05:30
Michael Turquette
d8d0e55ed1 clk: introduce CLK_ENABLE_HAND_OFF flag
Some clocks are critical to system operation (e.g. cpu, memory, etc) and
should not be gated until a driver that knows best claims such a clock
and expressly gates that clock through the normal clk.h api.

The typical way to handle this is for the clk driver or some other early
code to call clk_prepare_enable on this important clock as soon as it is
registered and before the clk_disable_unused garbage collector kicks in.

This patch introduces a formal way to handle this scenario that is
provided by the clk framework. Clk driver authors can set the
CLK_ENABLE_HAND_OFF flag in their clk data, which will cause the clk to
be enabled in clk_register(). Then when the first clk consumer driver
comes along and calls clk_get() & clk_prepare_enable(), the reference
counts taken during clk registration are transfered (or handed off) to
the clk consumer.

At this point handling the clk is the same as any other clock which as
not set the new CLK_ENABLE_HAND_OFF flag. In fact no changes to any
clock consumer driver are needed for this to work.

Change-Id: Ib5247f6bceb1f555c03103f061af089755b2de62
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Patch-mainline: patchwork.kernel.org @ 02/11/16, 9:19
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 11:41:12 +05:30
Linux Build Service Account
83134d5df1 Merge "thermal: tsens: Update critical interrupt functionality for Tsens" 2016-12-21 07:30:37 -08:00
Linux Build Service Account
b7e53064a6 Merge "regulator: cpr3: support LDO handling for different LDO types" 2016-12-21 07:30:36 -08:00
Linux Build Service Account
a204fcac9f Merge "diag: Change to GFP_KERNEL in diagfwd_buffers_init()" 2016-12-21 07:30:35 -08:00
Linux Build Service Account
b36f945be4 Merge "icnss: Remove hardware reset sequence" 2016-12-21 07:30:34 -08:00
Linux Build Service Account
9ab58266e1 Merge "ARM: dts: msm: remove turing-cti node from msmtriton" 2016-12-21 07:30:30 -08:00
Linux Build Service Account
ccc6501961 Merge "ARM: dts: msm: add jtag, hwevent and csr nodes for falcon" 2016-12-21 07:30:29 -08:00
Linux Build Service Account
0668391229 Merge "ARM: dts: msm: Add extcon node for QRD starlord track 3" 2016-12-21 07:30:28 -08:00
Linux Build Service Account
f3a71c4dd0 Merge "ARM: dts: msm: add bus vote for mmss smmu on msmfalcon" 2016-12-21 07:30:26 -08:00
Linux Build Service Account
bd15db7a9b Merge "ASoC: wcd-mbhc: check HPH PA status before impedance detection" 2016-12-21 07:30:25 -08:00
Linux Build Service Account
5b223d1dd3 Merge "ASoC: msm: fix ULL playback over a2dp" 2016-12-21 07:30:24 -08:00
Linux Build Service Account
6af6366bf2 Merge "sched/tune: remove duplicate allow_attach in schedtune_cgrp_subsys" 2016-12-21 07:30:24 -08:00
Linux Build Service Account
1c89f59efd Merge "qcom-charger: smb2: support for micro USB mode" 2016-12-21 07:30:23 -08:00
Linux Build Service Account
89bf1c6f82 Merge "clk: qcom: Add new voter clocks for camss clocks" 2016-12-21 07:30:21 -08:00
Linux Build Service Account
9bb2912be3 Merge "USB: gadget: u_data_ipa: Handle usb requests allocation/free correctly" 2016-12-21 07:30:20 -08:00
Linux Build Service Account
d69dbc634d Merge "ARM: dts: msm: Add support for clock debug for MSMfalcon/MSMtriton" 2016-12-21 07:30:19 -08:00
Linux Build Service Account
e4095dcdc4 Merge "ARM: dts: msm: Update regulator node for PIL for MSMFalcon/Triton" 2016-12-21 07:30:17 -08:00
Linux Build Service Account
100d528324 Merge "mmc: host: Use correct flag to support 64-bit DMA" 2016-12-21 07:30:16 -08:00
Linux Build Service Account
485fff3066 Merge "defconfig: enable compile audio for msmfalcon" 2016-12-21 07:30:15 -08:00
Linux Build Service Account
6f703f178b Merge "lowmemorykiller: fix an uninitialized variable usage" 2016-12-21 07:30:12 -08:00
Linux Build Service Account
b728b32df3 Merge "msm: mdss: fix handling of audio for DVI sinks" 2016-12-21 07:30:06 -08:00
Linux Build Service Account
8d9d44abdd Merge "mdss: mdp: unmap buffers before secure transition" 2016-12-21 07:30:05 -08:00
Linux Build Service Account
ffb54a86f3 Merge "clk: msm: mdss: Update DSI PLL configuration for msmcobalt" 2016-12-21 07:30:04 -08:00
Linux Build Service Account
9b7d23b9f9 Merge "msm: mdss: hdcp_1x: do not fail if no cp_irq for R0" 2016-12-21 07:30:02 -08:00
Linux Build Service Account
f5d6d71727 Merge "msm: mdss: Check for handoff pending before IOMMU min BW voting" 2016-12-21 07:30:01 -08:00
Linux Build Service Account
6a7da89b84 Merge "msm: sde: add compression ratio support to v4l2 rotator" 2016-12-21 07:30:00 -08:00
Linux Build Service Account
21fb3a4b62 Merge "msm: mdss: Fix scaler enable flag setting" 2016-12-21 07:29:59 -08:00
Linux Build Service Account
5ea7eae65b Merge "msm: mdss: avoid requesting ov_lock in esd thread" 2016-12-21 07:29:58 -08:00
Linux Build Service Account
81b1d8342f Merge "ARM: dts: msm: enable few features to single DSI sim cmd panel" 2016-12-21 07:29:57 -08:00
Linux Build Service Account
89936c94ec Merge "msm: sde: secure camera changes for v4l2 rotator" 2016-12-21 07:29:56 -08:00
Linux Build Service Account
1c2dbebda1 Merge "msm: sde: Disallow TP10 to P010 format conversion in rotator" 2016-12-21 07:29:55 -08:00
Linux Build Service Account
1b34c4c119 Merge "diag: Null pointer check to avoid kernel panic" 2016-12-21 07:29:39 -08:00
Amey Telawane
de04dbd97b ARM: dts: msm: add jtag, hwevent and csr nodes for falcon
Add etm save retore nodes which saves etm
values across power collapse. Hwevent is
used to collect hardware events.

Change-Id: I329aa4084c0983f066cdd06455c3d69e255a420c
CRs-fixed: 1056777
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2016-12-21 16:15:44 +05:30
Yuanyuan Liu
1001f1277f icnss: Remove hardware reset sequence
Remove WLAN hardware reset sequence from ICNSS platform as it
will be taken care by WLAN FW.

CRs-Fixed: 1089686
Change-Id: I363ee028eeb360ef998fd90c1ff94bb09c4ac8b4
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-12-21 00:15:13 -08:00
Linux Build Service Account
e76c8c8e73 Merge "qcom-charger: Add ship mode support" 2016-12-20 23:45:23 -08:00
Linux Build Service Account
14e5892a7e Merge "power: power_supply: Add property for ship mode" 2016-12-20 23:45:22 -08:00
Linux Build Service Account
27e623187a Merge "ARM: dts: msm: Add initial device tree for APQ FALCON" 2016-12-20 23:45:20 -08:00
Linux Build Service Account
451146c26b Merge "ARM: dts: msm: Add msmfalcon device tree files for internal codec" 2016-12-20 23:45:20 -08:00
Linux Build Service Account
dba91385de Merge "sched: Avoid packing tasks with low sleep time" 2016-12-20 23:45:19 -08:00
Linux Build Service Account
7d4b9fcecb Merge "ARM: dts: msm: Add compute context banks for msmfalcon" 2016-12-20 23:45:18 -08:00
Linux Build Service Account
aa94ab5384 Merge "ARM: dts: msm: enable SSC based sensors for msmfalcon MTP/CDP" 2016-12-20 23:45:17 -08:00
Linux Build Service Account
86fb073705 Merge "msm: kgsl: Get pages from the system incase mempool is not configured" 2016-12-20 23:45:15 -08:00
Linux Build Service Account
bcf71a62b0 Merge "usb: phy: qusb: Keep LDOs ON during disconnect if PMI voted for it" 2016-12-20 23:45:14 -08:00
Linux Build Service Account
cc4405e27b Merge "msm: cpp: Use the micro reset binding to decide if micro can be reset" 2016-12-20 23:45:13 -08:00
Linux Build Service Account
70e6c2b913 Merge "ARM: dts: msm: Add cpp micro reset flag for 8998 and 8996" 2016-12-20 23:45:13 -08:00
Linux Build Service Account
4a3a2bdbcd Merge "ARM: dts: msm: Update the QoS settings for msmfalcon" 2016-12-20 23:45:11 -08:00
Linux Build Service Account
ab81637373 Merge "msm: msm_bus: Add new bus master id for pimem" 2016-12-20 23:45:10 -08:00
Linux Build Service Account
18f836e908 Merge "thermal: tsens: Add support to parse critical interrupt properties" 2016-12-20 23:45:10 -08:00
Linux Build Service Account
11418bd51e Merge "ARM: dts: msm: add pinctrl configuration for Touchscreen GPIOs on MSMFALCON" 2016-12-20 23:45:09 -08:00