Commit graph

578423 commits

Author SHA1 Message Date
Lee Jones
a2c13a4cc2 clk: WARN_ON about to disable a critical clock
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1455225554-13267-3-git-send-email-mturquette@baylibre.com
(cherry picked from commit 2e20fbf592621b2c2aeddd82e0fa3dad053cce03)
Git-commit: 2e20fbf592621b2c2aeddd82e0fa3dad053cce03
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Change-Id: I88418dd25f356402219d7ff36ce791370c69114a
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-28 10:17:41 +05:30
Lee Jones
2cb4fc7a17 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
(cherry picked from commit 32b9b10961860860268961d9aad0c56a73018c37)
[tdas@codeaurora.org: resolve trivial merge conflict]
Git-commit: 32b9b10961860860268961d9aad0c56a73018c37
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

Change-Id: I003abf22da8600dd90ef397d293544b4bc9e0160
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-28 10:17:40 +05:30
Linux Build Service Account
9aa1df0cf5 Merge "sched: Ensure proper synch between isolation, hotplug, and suspend" 2016-11-27 19:40:21 -08:00
Ray Zhang
2c93b885f6 msm: mdss: fix some potential issues in HDMI driver
Fix some potential issues in HDMI driver such as suspicious
dereference of NULL pointer and variable reference without
initialization.

CRs-Fixed: 1091211
Change-Id: I81a99bcc4201ccd72de1f812e9c4da36d6a81958
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2016-11-27 19:16:25 -08:00
Ray Zhang
a400e381d0 msm: mdss: add support to change HDMI PLL PPM
Add sysfs and ioctl to adjust HDMI clock rate by certain PPM.
This function is required by clock recovery in broadcast in
which HDMI PLL should be adjusted in order to reduce the clock
drift in broadcast.

CRs-Fixed: 1086894
Change-Id: I1df15dd6aec44ae3e78bd4f80dc70d0d04760687
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2016-11-27 19:16:13 -08:00
zhenchao
ac24dc205b ARM: dts: msm: Add bluetooth node for WCN3990 in msm8998 QRD VR1
Add bluetooth device tree node for WCN3990 chip in msm8998 QRD
VR1 board. Configure necessary power supply and clocks to enable
bluetooth.

CRs-Fixed: 1080773
Change-Id: I47b042dc79145a13142c02b0ef8da777efff3a8d
Signed-off-by: zhenchao <zhenchao@codeaurora.org>
2016-11-27 18:32:21 -08:00
zhenchao
76dc4632b2 ARM: dts: msm: Add bluetooth node for WCN3990 in msm8998 QRD SKUK
Add bluetooth device tree node for WCN3990 chip in msm8998 QRD
SKUK board. Configure necessary power supply and clocks to enable
bluetooth.

CRs-Fixed: 1080773
Change-Id: I433c349ddfd6d83629080afadc6fbf79c3b8c635
Signed-off-by: zhenchao <zhenchao@codeaurora.org>
2016-11-27 18:31:15 -08:00
Linux Build Service Account
b459804296 Merge "clk: msm: hdmi: correct the precision when calculating HDMI PLL" 2016-11-27 13:09:02 -08:00
Maulik Shah
22189476b3 ARM: dts: msm: Add msm-core device for msmfalcon
Add msm-core device to run power and temperature calculation
on the cores.

Change-Id: I3e8300f15757739714579055985e3fff1a4d8f86
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2016-11-27 22:06:46 +05:30
Anil Kumar Mamidala
9879d0300b qos: Register irq notify after adding the qos request
Before adding the irq affinity based qos request to the list, if
the affinity of the interrupt changes it will trigger notify call.
This notifier call will try to update the qos request. Accessing
the qos request which is not yet added to the list leads to a
NULL pointer exception.

Avoid this race by registering the notifier after adding the
qos request.

Change-Id: I99869cc233573b5db10e4f3224d65c29511050ea
Signed-off-by: Anil Kumar Mamidala <amami@codeaurora.org>
2016-11-27 08:21:28 -08:00
Linux Build Service Account
841264c505 Merge "ARM: dts: msm: include RPM regulator for MSM8998 interposer" 2016-11-27 04:56:03 -08:00
Linux Build Service Account
d0fd03a2cf Merge "usb: dwc3-msm: Fix restart usb work functionality" 2016-11-26 21:27:50 -08:00
Linux Build Service Account
5b3053ec24 Merge "qos: wake up cores based on the qos updated cpu mask" 2016-11-26 21:27:49 -08:00
Linux Build Service Account
fab9979e25 Merge "scsi: ufs: perform full reset at initialization" 2016-11-26 21:27:48 -08:00
Linux Build Service Account
75fa0c77c8 Merge "scsi: ufs-qcom: update delay between assert/deassert in full reset" 2016-11-26 21:27:48 -08:00
Linux Build Service Account
1daf08d1f6 Merge "soc: qcom: rpm: Change driver memory allocation to use GFP_NOIO" 2016-11-26 21:27:46 -08:00
Linux Build Service Account
7989c135ab Merge "msm: ion: Modified Secure Display buffer permissions" 2016-11-26 21:27:46 -08:00
Linux Build Service Account
4ff6b47f11 Merge "usb: pd: Support Android dual_role_usb sysfs class" 2016-11-26 21:27:45 -08:00
Linux Build Service Account
794f6f9038 Merge "clk: qcom: Add support to convert the clock rate to KHz" 2016-11-26 21:27:43 -08:00
Linux Build Service Account
c00a37de98 Merge "ARM: dts: msm: Specify the configuration for audio on msmfalcon interposer" 2016-11-26 14:26:50 -08:00
Linux Build Service Account
81271b3c6e Merge "ARM: dts: msm: Make required changes for msm8998-interposer" 2016-11-26 14:26:49 -08:00
Linux Build Service Account
45e7ce30d6 Merge "procfs: Update order of Ngid in /proc/PID/status" 2016-11-26 14:26:48 -08:00
Linux Build Service Account
7183205cd4 Merge "ARM: dts: msm: add support of pm3falcon PMIC for msmfalcon" 2016-11-26 14:26:47 -08:00
Linux Build Service Account
04da367b64 Merge "soc: qcom: Turn off MSM_PERFORMANCE_HOTPLUG_ON by default" 2016-11-26 14:26:47 -08:00
Linux Build Service Account
b4f023e5a2 Merge "usb: pd: Fix VDM and misc timing issues" 2016-11-26 14:26:44 -08:00
Ashay Jaiswal
5bffba9b26 ARM: dts: msm: include RPM regulator for MSM8998 interposer
Include RPM regulator dtsi to enable RPM regulator device
nodes for MSM8998 based interposer platform.

CRs-Fixed: 1077493
Change-Id: Ifcfd9f75e817561b17ec26a68f901a31c5a63a9a
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-11-26 23:54:57 +05:30
Linux Build Service Account
b23cd82dba Merge "soc: qcom: msm_bus: Set current index to default value" 2016-11-25 17:47:07 -08:00
Linux Build Service Account
0ff0bddebd Merge "ARM: dts: msm: Add thermal mitigation properties to msmfalcon" 2016-11-25 17:47:06 -08:00
Linux Build Service Account
74d0e8e4ca Merge "input: synaptics_dsx: add checks of user input data" 2016-11-25 17:47:04 -08:00
Linux Build Service Account
fdc9a3b7d5 Merge "ASoC: wcd9335: Add dapm ignore suspend for codec dai" 2016-11-25 17:47:03 -08:00
Linux Build Service Account
ef8f297dee Merge "ASoc: msm: qdsp6v2: Add support for compress capture" 2016-11-25 17:47:02 -08:00
Linux Build Service Account
308d5348fe Merge "include: clock: Add audio external clock of_index extries" 2016-11-25 17:47:01 -08:00
Linux Build Service Account
6392d4ee36 Merge "msm: mdss: fix to handle multi-rect configuration in error cases" 2016-11-25 17:46:59 -08:00
Linux Build Service Account
4df93480e8 Merge "msm: crypto: fix issues on digest buf and copy_from_user in qcedev.c" 2016-11-25 17:46:58 -08:00
Linux Build Service Account
2eeb169184 Merge "Revert "msm: kgsl: Enable limits management on A540v2"" 2016-11-25 17:46:57 -08:00
Linux Build Service Account
2d8b206407 Merge "smb-lib: fix null ptr access while handling src change interrupt" 2016-11-25 17:46:56 -08:00
Linux Build Service Account
c7690d6901 Merge "msm: mdss: refine the calculation of tmds clock rate" 2016-11-25 17:46:54 -08:00
Linux Build Service Account
86dffc4e82 Merge "msm: camera: Enable secure camera feature" 2016-11-25 17:46:53 -08:00
Linux Build Service Account
0ed6e29b91 Merge "soc: qcom: socinfo: Change offset of image OEM attribute" 2016-11-25 17:46:52 -08:00
Linux Build Service Account
1095ce72f4 Merge "qpnp-smb2: force UFP mode before shutdown" 2016-11-25 17:46:51 -08:00
Linux Build Service Account
24f3e90971 Merge "qpnp-smb2: add support to configure auto recharge" 2016-11-25 17:46:50 -08:00
Linux Build Service Account
2488b7eb05 Merge "qcom: scm: remove printing input arguments" 2016-11-25 08:32:36 -08:00
Linux Build Service Account
22f8318fcc Merge "audit: fix a double fetch in audit_log_single_execve_arg()" 2016-11-25 08:32:35 -08:00
Benjamin Chan
5ddbf6aedc msm: mdss: Fix disabling destination scalar using 4K panel
4K panel uses split control path setup, so there is no need to correct
the panel width when updating the mixer width resolution during
destination scalar disabling.

CRs-Fixed: 1093549
Change-Id: I064987534124e025abaccec05ab70acf93538bce
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-11-25 07:46:57 -08:00
Swetha Chikkaboraiah
394c5c6ca0 qcom: scm: remove printing input arguments
scm_call2 is printing the input arguments if TZ ret value is  < 0
leading to information leak. Remove printing input arguments.

Change-Id: I21dd6d83fa979aed2c79ebb2c9c8de63a247dded
CRs-Fixed: 1076407
Signed-off-by: Swetha Chikkaboraiah <schikk@codeaurora.org>
Signed-off-by: Paresh Purabhiya <ppurab@codeaurora.org>
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-11-25 04:10:25 -08:00
Ray Zhang
a360fc2d1d clk: msm: hdmi: correct the precision when calculating HDMI PLL
In existing HDMI PLL driver the VCO frequency value is truncated
so following PLL calculation could be impacted. Use 64 bit value
instead to maintain the necessary precision.

CRs-Fixed: 1086894
Change-Id: Iec3f65942dd152b0b7aa32af1a90039fff06cb34
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2016-11-25 17:16:45 +08:00
King Li
642cb61f18 ARM: dts: msm: Add VADC_HC and BTM channels for QVR8998
Clients of VADC_HC and BTM include reading voltage phone
power, system thermistors for thermal mitigation such as
msm_therm, case_therm, XO therm. Add the supported VADC
and BTM channels for the msm8998-qrd-vr1 platforms.

CRs-Fixed: 1090542
Change-Id: I4cda24b1be20310f54ceba1297f424ede1c5d889
Signed-off-by: King Li <kjli@codeaurora.org>
2016-11-25 01:11:04 -08:00
King Li
9a0bc03c52 ARM: dts: msm: Add VADC_HC and BTM channels for QRD8998 SKUK
Clients of VADC_HC and BTM include reading voltage phone
power, system thermistors for thermal mitigation such as
msm_therm, case_therm, XO therm. Add the supported VADC
and BTM channels for the msm8998-qrd-skuk platforms.

CRs-Fixed: 1090579
Signed-off-by: King Li <kjli@codeaurora.org>
Change-Id: I7b7c0ec59e9a3ce8a3526bdc8eb7359a0c98ccd7
2016-11-25 01:08:14 -08:00
Ray Zhang
83c88144ae clk: msm: hdmi: add support for live programming of HDMI PLL
Clock recovery and dynamic resolution change require changing
HDMI clock rate while HDMI PLL is on. There are two paths while
clock is changed, one is atomic update which doesn't require
PLL tear down, the other is when clock rate change is too big
and a full PLL tear down is needed.

CRs-Fixed: 1086894
Change-Id: Ia202e0aee09f506a7bbe4e13702f30dee119ce8e
Signed-off-by: Ray Zhang <rayz@codeaurora.org>
2016-11-25 17:06:47 +08:00
Linux Build Service Account
9a20006c20 Merge "soc: qcom: fix uninitialized references in gladiator_erp_v2" 2016-11-25 00:10:26 -08:00