msm: clock-mdss-8974: Dynamic HDMI PHY-PLL configuration

Implement the  HDMI PHY PLL calculator to dynamically configure the
HDMI PLL VCO to any supported pixel rate within the supported range.

Change-Id: I5665509aeaf54132ae711e3c4c9be542b25b8241
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
cpufreq: interactive: Modifying sync_freq implementation

1. Check for up_threshold_any_cpu_freq instead of sync_freq to
   boost the frequency to sync_freq.
2. Change the load threshold name from sync_freq_load_threshold to
   up_threshold_any_cpu_load
3. Do not consider CPUs with load less than up_threshold_any_cpu_load
   while evaluating max load across CPUs

Change-Id: Ia0e537edbf38a5006c1a22f5c472daa0d086ffc9
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
USB: gadget: f_mtp: Fix bug in receive_file work

If cable is disconnected while receive_file work is in progress,
there is a case where mtp driver returns -ECANCELLED instead of
-EIO. This results in mtp server thread not getting disconnect
notification and mtp release will not be called. Due to this, mtp
server will not start mtp connection after next USB connection.

CRs-Fixed: 590055
Change-Id: I909bebe0d22c19329cebb0a4a76424e08c82328c
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Merge "msm: mdp3: implement asynchronous frame events"
msm: clock-8610: Allow measurement of clocks in the WCNSS

For debugging reasons, it is required that WLAN drivers
be able to measure clocks in the WCNSS subsystem. It is
assumed that the WCNSS debug mux is already programmed
by the WCNSS firmware.

Change-Id: If3ebbe680347aa62d6c706f1518dda4585b90a74
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: clock-8226: Allow measurement of clocks in the WCNSS

For debugging reasons, it is required that WLAN drivers
be able to measure clocks in the WCNSS subsystem. It is
assumed that the WCNSS debug mux is already programmed
by the WCNSS firmware.

Change-Id: I3e7411021200a96454f37a1d40a17b109be4fc70
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
msm: clock-8974: Allow measurement of clocks in the WCNSS

For debugging reasons, it is required that WLAN drivers
be able to measure clocks in the WCNSS subsystem. It is
assumed that the WCNSS debug mux is already programmed
by the WCNSS firmware.

Change-Id: Ia1bc054f8dd8bd51e62046c9ea71624a22bc890e
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Revert "ARM: dts: msm: add qti,cpr-quot-adjust-table for CPR on msm8226"

This reverts commit d53c9602b86e678d361136d27e5172a781a84e06.

Change-Id: Ifb95b4649196e2c8a6645c5b3e1ede8ee89deb09
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
Revert "msm: cpr-regulator: add support for frequency based CPR quotient scaling"

This reverts commit 2c0854bdb93b8f50894c35b13a56cb6c26968de0.

Change-Id: I7c25425b6f825eeedbef3aeed1fec4067c09514d
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
qseecom: Fix issues on key management scheme

The mechanism to update how a user is tied to an existing key is
added. And the app_access_lock mutex is removed in key management
APIs, as there is no need to lock app access while processing a
key related request.

Signed-off-by: Zhen Kong <zkong@codeaurora.org>
cpufreq: interactive: Use default min_sample_time if SDF is zero

Use min_sample_time to step down from max frequencies if
sampling_down_factor is set to zero.

Change-Id: I2e89bef6220557cb95efd20d658e0c05753b4c3c
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Merge "ARM: dts: msm8974: Update MPM mapping to bypass few GIC interrupts"
Merge "ARM: dts: msm: allow VDD_CX to operate in AUTO mode for MSM8974Pro"
Merge "Revert "ARM: dts: msm: add qti,cpr-quot-adjust-table for CPR on msm8226""
Merge "Revert "msm: cpr-regulator: add support for frequency based CPR quotient scaling""
Merge "ASoC: msm8974: Add voice2 dai-link"
ARM: dts: msm: change cpr SVS voltage for msm8x10

Change voltage of SVS mode for 8x10 as voltage plan updated.

Change-Id: Id46d939757ff8629e68d539f51e4304258334498
Signed-off-by: Ke Liu <keliu@codeaurora.org>
ASoC: msm: hold lock while allocating and freeing ASM clients

ASM client allocation and free have to happen atomically to avoid
ASM APR being in wrong state. So hold lock while allocating and freeing
ASM clients.

CRs-Fixed: 554249

Change-Id: Ie6d2e87445cc06de990c9e8bed6dbf88ac79cd3a
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
msm: ipa: teth_bridge: bug fix in get_aggr_capabilities ioctl

Incorrect input validation may cause a kernel memory disclosure to user
space. This fix adds the correct input validation.

Change-Id: Iaca618529bd1f660a731ec2dd50942f0a2fb271f
CRs-Fixed: 555453
Signed-off-by: Gidon Studinski <gidons@codeaurora.org>
mmc: card: fix arbitrary write via read handler in mmc_block_test

In mmc_block_test, the debug_fs based read function handlers write to an
arbitrary buffer which is given by any user. We add an access_ok check
to verify that the address pointed by *buffer is not in kernel space.
Only if the buffer is valid, do we continue the read handler.

Change-Id: I1413f71be13509a3b4e56b919cfbcbd9fcc9d2bd
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>