clk: Allow clocks to be marked as CRITICAL 64/143164/1
authorLee Jones <lee.jones@linaro.org>
Wed, 9 Aug 2017 00:47:55 +0000 (09:47 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 9 Aug 2017 01:58:32 +0000 (10:58 +0900)
commitd04899b372c1e7c2edf425bc9f8ae840821d7fad
tree292c11f980fdd30f167efb4966a1b1b5e2cfd08a
parent7b799aa2bf5713edf03bb1c2bf113a8a1302a690
clk: Allow clocks to be marked as CRITICAL

Critical clocks are those which must not be gated, else undefined
or catastrophic failure would occur.  Here we have chosen to
ensure the prepare/enable counts are correctly incremented, so as
not to confuse users with enabled clocks with no visible users.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1455225554-13267-2-git-send-email-mturquette@baylibre.com
[cw00.choi: Fix the merge conflict and apply the mainline patch]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Change-Id: Ic4ec2959426dc4a424bf71bdc6b725dd9022616c
drivers/clk/clk.c
include/linux/clk-provider.h