Commit graph

597829 commits

Author SHA1 Message Date
Rashi Bindra
a9c93223f4 msm: mdss: Fix for wrong length in copy_to_user
The caller could have a small buf passed (less then < blen).
Since, the length of count and blen is not checked, it can
write beyond the end of buf.

Change-Id: I9138cd742b6166937f3cc1cbf1af36f280c94bdb
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
2018-03-19 17:06:12 +05:30
Linux Build Service Account
3e1f25e955 Merge "ARM: dts: msm: Fix subsys notification virtualization device instance" 2018-03-13 15:20:27 -07:00
Linux Build Service Account
c3b8576cf9 Merge "clk: qcom: Remove the CLK_SET_RATE_PARENT flag for Byte intferface clk" 2018-03-12 21:20:51 -07:00
Linux Build Service Account
869960020e Merge "mmc: sd: limit SD card power limit according to cards capabilities" 2018-03-12 11:49:57 -07:00
Anant Goel
295bf2e8b9 ARM: dts: msm: Fix subsys notification virtualization device instance
Add a bracket to fix the device instance for the subsystem_notif_virt
device.

Change-Id: Ib114a6d520aafbbcb0886dcf987d0509af80b636
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2018-03-12 11:17:57 -07:00
Rashi Bindra
99682cfc7b clk: qcom: Remove the CLK_SET_RATE_PARENT flag for Byte intferface clk
If the CLK_SET_RATE_PARENT flag for the mmss_mdss_byte_intf_div_clk
divider is set re-calculation of dividers in DSI byte clock path takes
place which causes both the byte clock and byte interface clock to be
set to the same value.

Change-Id: Ia30c8070ec5c451a12f29e983089a7a2bbe6a8b3
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
2018-03-12 15:20:34 +05:30
Linux Build Service Account
0356b3c187 Merge "ASoC: msm: Fix repeated reg phy stream issue" 2018-03-12 02:47:15 -07:00
Linux Build Service Account
bf641b6b92 Merge "ASoC: msm: qdsp6v2: check for buffer size before read" 2018-03-12 02:47:14 -07:00
Linux Build Service Account
6086791d00 Merge "fbdev: msm: Set the commit_in_progress flag after sync_fence_wait" 2018-03-12 02:47:12 -07:00
Russell King
99593ab021 mmc: sd: limit SD card power limit according to cards capabilities
The SD card specification allows cards to error out a SWITCH command
where the requested function in a group is not supported.  The spec
provides for a set of capabilities which indicate which functions are
supported.

In the case of the power limit, requesting an unsupported power level
via the SWITCH command fails, resulting in the power level remaining at
the power-on default of 0.72W, even though the host and card may support
higher powers levels.

This has been seen with SanDisk 8GB cards, which support the default
0.72W and 1.44W (200mA and 400mA) in combination with an iMX6 host,
supporting up to 2.88W (800mA).  This currently causes us to try to set
a power limit function value of '3' (2.88W) which the card errors out
on, and thereby causes the power level to remain at 0.72W rather than
the desired 1.44W.

Arrange to limit the selected current limit by the capabilities reported
by the card to avoid the SWITCH command failing.  Select the highest
current limit that the host and card combination support.

Change-Id: I7fbd035cdc606946e997fa4671ec5683acd3ed1b
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Fixes: a39ca6ae0a ("mmc: core: Simplify and fix
				for SD switch processing")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Git-commit: d9812780a020bcec44565b5950b2a8b31afb5545
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
2018-03-11 22:41:45 -07:00
Linux Build Service Account
2c333d317c Merge "msm: ipa: Fix to handle NULL pointer dereference" 2018-03-10 21:18:49 -08:00
Mohammed Javid
806eaf6ffe msm: ipa: Fix to handle NULL pointer dereference
Header entry deleted but same entry pointer using in
routing table not updated. Added checks to confirm
header entry present or not before using it to avoid
null pointer dereference.

Change-Id: Id1d844c60b2dcb0cc7cf18352b78d62fe5a89347
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
2018-03-10 03:53:07 -08:00
Linux Build Service Account
16a3488d96 Merge "[drm-sde] remove additional release fence offset" 2018-03-09 23:14:55 -08:00
Linux Build Service Account
3d59d5cbc0 Merge "ARM: dts: msm: Configure GPIO98 as the active output for Mizar" 2018-03-09 23:14:53 -08:00
Linux Build Service Account
650877ff28 Merge "ARM: dts: msm: Add subsys notification virtualization on msm8996 vplatform" 2018-03-09 23:14:51 -08:00
Linux Build Service Account
f24c6aec3e Merge "ath10k: Skip reading of utf.bin file" 2018-03-09 23:14:50 -08:00
Camus Wong
654000d2d7 [drm-sde] remove additional release fence offset
Remove additional release fence offset to fix deadlock between
graphics and display when only two buffers are used.

Change-Id: Ifc94dae28484e13fae6cb9a7dfd19c1cb13c7c20
Signed-off-by: Camus Wong <camusw@codeaurora.org>
2018-03-09 16:20:40 -05:00
Bharathraj Nagaraju
16e03973ae ARM: dts: msm: Configure GPIO98 as the active output for Mizar
Configure GPIO98 as active output & drive low.
Delete pinctrl property for audio_ext_clk node.

Change-Id: Ic5178ff44a89433848bdd1a92bc3e3b122aeeffd
Signed-off-by: Bharathraj Nagaraju <snbraj@codeaurora.org>
2018-03-09 10:45:32 -08:00
Karthikeyan Mani
023bc4e0bf ASoC: msm: qdsp6v2: check for buffer size before read
Check for debugfs ops buf size passed before reading
to eliminate the possibility of reading out of bounds.

Change-Id: I28fd60ce93256b6b0bad62b449092a891cc15463
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-09 10:34:18 -08:00
Linux Build Service Account
e6408fea60 Merge "scsi: ufs: do not destroy clk scaling work queue if it is NULL" 2018-03-09 02:47:56 -08:00
Linux Build Service Account
4e755a752e Merge "asoc: msm: add check for integer overflow" 2018-03-09 02:47:54 -08:00
Linux Build Service Account
bc60923a9f Merge "mm/migration: make isolate_movable_page() return int type" 2018-03-09 02:47:52 -08:00
Linux Build Service Account
b36bac6b0d Merge "mm/hotplug: enable memory hotplug for non-lru movable pages" 2018-03-09 02:47:52 -08:00
Linux Build Service Account
951119485b Merge "profiler: memset cnt_buf before use" 2018-03-09 02:47:50 -08:00
Linux Build Service Account
b83a3d1c47 Merge "soc: qcom: subsystem_notif_virt: Add virtual subsystem notification driver" 2018-03-09 02:47:49 -08:00
Rakesh Pillai
086d1f49c7 ath10k: Skip reading of utf.bin file
The non-bmi targets do need to load firmware from the
driver and is loaded by other procedure.

Since, utf.bin file is not needed, this change skips parsing
and loading of the same.

Change-Id: Id7cc0b1cd75f813c1b6c762685d8806a30ba8295
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
2018-03-09 12:11:07 +05:30
Cong Tang
3886996825 ASoC: msm: Fix repeated reg phy stream issue
Fix repeated reg phy stream issue in loopback driver
which cause audio dsp calibration failure due to
rtac device could not remove successfully.

Change-Id: Ifa1b9cd579bc313d4addc00d48a8b4b636181220
Signed-off-by: Cong Tang <congt@codeaurora.org>
2018-03-08 20:13:05 -08:00
Anant Goel
92caf2f356 ARM: dts: msm: Add subsys notification virtualization on msm8996 vplatform
Add subsystem_notif_virt device to support subsystem
notifications virtualization for subsystems.

Change-Id: Icc8118e834e2c1c0e54fc7380fe3ea8c7a173665
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2018-03-08 10:41:05 -08:00
Linux Build Service Account
07324253e2 Merge "DRM: SDE: Fix potential buffer overflow in SDE encoder" 2018-03-08 04:27:51 -08:00
Anant Goel
f64af1ec50 soc: qcom: subsystem_notif_virt: Add virtual subsystem notification driver
The guest VM uses this driver to communicate subsystem state related
notifications to a backend driver via the virtual device's registers.

Change-Id: I612fcb641c4d531c1d2c0fd18f44f7ebff040f2c
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2018-03-07 12:05:28 -08:00
Linux Build Service Account
b02928f9da Merge "i2c-msm-v2: Replace HW recovery mechanism with SW bit-banging" 2018-03-07 09:16:40 -08:00
Linux Build Service Account
1ccffb8bdd Merge "ais: match type to avoid array overflow" 2018-03-07 09:16:39 -08:00
Linux Build Service Account
5f0137e535 Merge "sched: add sched_get_cpu_last_busy_time() API" 2018-03-07 09:16:38 -08:00
Linux Build Service Account
bbfcd05a31 Merge "Revert "ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards"" 2018-03-07 09:16:37 -08:00
Linux Build Service Account
52981940d7 Merge "clk: qcom: mdss: improve DSI PLL's performance" 2018-03-07 09:16:35 -08:00
Linux Build Service Account
a3c86eca63 Merge "msm: vidc: enable port reconfig for thumbnail session" 2018-03-07 09:16:34 -08:00
Linux Build Service Account
ef0769db30 Merge "Merge android-4.4.118 (5f7f76a) into msm-4.4" 2018-03-07 09:16:32 -08:00
Linux Build Service Account
296628bc78 Merge "Merge android-4.4.117 (4ec3656) into msm-4.4" 2018-03-07 09:16:31 -08:00
Linux Build Service Account
d30c02ed5b Merge "Merge android-4.4.116 (20ddb25) into msm-4.4" 2018-03-07 09:16:30 -08:00
Linux Build Service Account
40cb358707 Merge "clk: msm: Add reset support in dummy clock driver" 2018-03-07 09:16:29 -08:00
Gustavo Solaira
7327c28169 Revert "ARM: dts: msm: Disable SPI CAN controller on msm8996 CV2X boards"
This reverts commit a8c85fc795.
Reverted because support for MPC5746C SPI-CAN is being
added back to the platform.

Change-Id: Ib14caf39a8cba9c6028abceb85adcd43df53ba06
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
2018-03-06 22:47:50 -08:00
Lei wang
94e90bcf7f profiler: memset cnt_buf before use
fix cnf_buf.cmd is uninitialized in bw_profiling_get

Change-Id: I9638fe423e6768c66a85e80c0d5175b8a33c1901
Signed-off-by: Lei wang <leiwan@codeaurora.org>
2018-03-06 22:04:33 -08:00
Can Guo
8a7e59ba7f scsi: ufs: do not destroy clk scaling work queue if it is NULL
Function ufshcd_hba_exit might be called to destroy clk scaling work queue
if failure happends in function ufshcd_init before clk gating work queue
is created. This change fixs it by skipping destroying clk scaling work
queue if it is NULL.

Change-Id: Ifb1c46f490749e4afe7cea331c29d073175f68ef
Signed-off-by: Can Guo <cang@codeaurora.org>
2018-03-07 13:03:25 +08:00
Linux Build Service Account
834739e911 Merge "drm/msm-hyp: overwrite hyp ioctls used by libgbm" 2018-03-06 20:57:58 -08:00
Linux Build Service Account
c70b573a90 Merge "ath10k: fix the invalid STA disconnect after wow resume" 2018-03-06 20:57:57 -08:00
Linux Build Service Account
25eb087db9 Merge "defconfig: arm64: msm: Enable SPMI msm8996 virtual platform" 2018-03-06 20:57:55 -08:00
Linux Build Service Account
39e3389b79 Merge "ASoC: msm: Support Channel Mixer Cfg" 2018-03-06 20:57:54 -08:00
Linux Build Service Account
83efda84fc Merge "ARM: dts: msm: Disable usb phy by default on msm8996 vplatform" 2018-03-06 20:57:53 -08:00
Linux Build Service Account
2ad3d8cb64 Merge "spmi: msm: correct len part in formatted cmd value." 2018-03-06 20:57:51 -08:00
Linux Build Service Account
df41a54a67 Merge "drm/msm: HPD_OFF Property for SDE HDMI Connector" 2018-03-06 20:57:50 -08:00