Commit graph

595136 commits

Author SHA1 Message Date
Padmanabhan Komanduru
6254597c2b msm: mdss: dp: fix programming of DisplayPort SDP registers
Fix the programming of DisplayPort SDP registers primarily related
to Audio enable sequence. This would fix potential issues caused by
read/append/write operations on SDP registers which might corrupt
the parity/data bytes. This would lead to audio issues since the DP
controller would treat the corrupt SDP information as invalid data.

Change-Id: I55db6a70be0fdf94a60fd7cc8bf0d30702febef8
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
2017-11-13 19:18:40 +05:30
Rahul Sharma
acbe0dcf09 msm: ais: sensor: actuator: avoid accessing out of bound memory
Issue:
When total_steps is updated, after that, copy_from_user
fails with an error, then, i2c_reg_tbl is not allocated.
In this case, when calling msm_actuator_parse_i2c_params,
it lead to out-of-bound memory write.
Fix:
1) Assign total_steps to zero when error from copying.
2) Add NULL pointer check for i2c tbl.

Change-Id: I4df8557719533900a5c571fc00f9844943c8f7b1
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-11-12 21:38:28 -08:00
Maulik Shah
bddfadfc2a power: qcom: msm-core: Add mutex lock for ioctl
There can be use after free with multiple ioctl calls.
Add mutex lock when updating userspace power.

Change-Id: Ieae08d05478a462b19cf7f91b64267177eaebe84
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-11-12 21:15:40 -08:00
Rahul Sharma
913cd48cf2 adv7481: Changes to compile ADV7481 as a module
ADV7481 driver is board-specific, and thus should be compiled
as a module. This is part of the kernel modularization requirement.

Change-Id: I38ab9efca34ac9f898c2b76843563d8f74c29320
Suggested-by: Resmi Rajendran <resmir@qti.qualcomm.com>
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-11-12 20:45:07 -08:00
Walter Yang
1589568cdd ASoC: wcd934x: reset ASRC after playback
Reset ASRC after audio playback is completed to clear
the FIFO and avoid any noise being generated.

CRs-Fixed: 2129994
Change-Id: Ie45796e1bd68d5a8bd790490a65520358f26b811
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-11-12 18:59:17 -08:00
Hareesh Gundu
b0ba6e4792 msm: kgsl: Do not expose kernel pointer for global entries
Add kernel pointer restriction while printing the global
page table entries through the debugfs.

Change-Id: Ia2ef4243248ece477e3f679c0027379686670928
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2017-11-11 22:14:51 -08:00
Linux Build Service Account
92c49e0199 Merge "drm/msm: add SRM support for HDCP 1.4" 2017-11-10 07:55:27 -08:00
Ananda Kishore
c3883fcbfe ARM: dts: msm: add SLPI fw name property for msm8996
Add SLPI fw name property to support dynamic loading of SLPI
fw images based on the version info.

Change-Id: I31baf971106a7a076cf83bd72c4509d860b3e7cb
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
2017-11-10 01:49:33 -08:00
Linux Build Service Account
d8675c149d Merge "msm: pcie: always recover cfg space during resume" 2017-11-09 22:06:48 -08:00
Abhinav Kumar
ef193b7094 drm/msm: add SRM support for HDCP 1.4
Add support for clients to notify SRM update
to HDCP 1.x driver.

Integrate the SRM validation check in the HDCP 1.x
authentication flow to check HDCP 1.x receiver/repeater
KSV against the SRM revoked list and fail the authentication
if the sink is found to be present in the list.

Change-Id: I6615122f785bde94cb746ec4df7ab63b9f878528
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-11-09 20:53:59 -08:00
Sujeev Dias
4f3f403a2e msm: pcie: always recover cfg space during resume
During linkdown pci host cannot save the config space
prior to suspending the link. If saved_state is null
recover rc config space using shadow recovery.

CRs-Fixed: 2141146
Change-Id: I6c6e817ae2c32d8040853fe22785040480aa76eb
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-11-09 15:52:04 -08:00
Linux Build Service Account
10dc161b22 Merge "msm: vidc: Fix sequence change event properly" 2017-11-09 09:58:57 -08:00
Linux Build Service Account
d36a884a1e Merge "soc: qcom: msm_bus: Add debug logging for max bandwidth votes" 2017-11-09 09:58:56 -08:00
Linux Build Service Account
59b028f31d Merge "msm: mdss: do not do phy reset when HDMI power off" 2017-11-09 09:58:55 -08:00
Linux Build Service Account
f2dfcc956e Merge "usb: gadget: f_qdss: Update usb string table based on channel name" 2017-11-09 01:36:54 -08:00
Linux Build Service Account
a2e26ea434 Merge "msm: sensor: actuator: avoid accessing out of bound memory" 2017-11-09 01:36:53 -08:00
Linux Build Service Account
56909a07a9 Merge "net: rmnet_data: Support recycling frames to real device" 2017-11-09 01:36:52 -08:00
Linux Build Service Account
118bf84f06 Merge "ARM: dts: msm: Add support for irs1645 eeprom on msm8998" 2017-11-09 01:36:51 -08:00
Linux Build Service Account
fb484848d3 Merge "cnss2: Refactor callbacks for SSR framework" 2017-11-09 01:36:50 -08:00
Linux Build Service Account
aaacae8143 Merge "Merge android-4.4@ceee5bd (v4.4.95) into msm-4.4" 2017-11-09 01:36:48 -08:00
Linux Build Service Account
2a8246c9d1 Merge "sched: restore discarded ifdef CONFIG_SCHED_WALT code" 2017-11-09 01:36:48 -08:00
Linux Build Service Account
3581002a13 Merge "wil6210: drop RX probe reponses with low SNR" 2017-11-09 01:36:46 -08:00
Linux Build Service Account
f1d762e892 Merge "msm: cec: simplify TX message processing" 2017-11-09 01:36:45 -08:00
Linux Build Service Account
7e7ffb7435 Merge "cec: Fix runtime BUG when (CONFIG_RC_CORE && !CEC_CAP_RC)" 2017-11-09 01:36:44 -08:00
Linux Build Service Account
dc27c14f6b Merge "msm: ipa: Fix to use GFP_DMA flag" 2017-11-09 01:36:42 -08:00
Haibin Liu
37347af942 msm: sensor: actuator: avoid accessing out of bound memory
Issue:
When total_steps is updated, after that, copy_from_user
fails with an error, then, i2c_reg_tbl is not allocated.
In this case, when calling msm_actuator_parse_i2c_params,
it lead to out-of-bound memory write.

Fix:
1) Assign total_steps to zero when error from copying.
2) Add NULL pointer check for i2c tbl.

CRs-Fixed: 2111672
Change-Id: Ib9dcb182356e2df8078c131edfd0791fa95a35e0
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2017-11-08 19:27:27 -08:00
Linux Build Service Account
3a15cd3400 Merge "NFC: Fix for core init cmd send failure" 2017-11-08 12:55:15 -08:00
Linux Build Service Account
56f4249dfb Merge "spi: core: Add support for registering SPI slave controllers" 2017-11-08 12:55:14 -08:00
Linux Build Service Account
b9d7765e73 Merge "regulator: qpnp: fix voltage min/max constraints check" 2017-11-08 12:55:13 -08:00
Linux Build Service Account
9d1c28996f Merge "dwc3: Do not perform core reinitialisation for host only mode" 2017-11-08 12:55:13 -08:00
Vivek Iyer
26f229089b ARM: dts: msm: Add support for irs1645 eeprom on msm8998
Add device tree entry needed to support eeprom on the
irs1645 sensor.

Change-Id: I88ad09c7da813e3b74d465392e8e40839d9c88a9
Signed-off-by: Vivek Iyer <viyer@codeaurora.org>
2017-11-08 11:49:52 -08:00
Dedy Lansky
7d7d37295b wil6210: drop RX probe reponses with low SNR
FW now reports SNR for RX management frames.
Drop probe responses with SNR lower than the configured threshold.

Change-Id: Ife1863b07aebe5cb6097420290c0c10b590c2da1
Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
2017-11-08 14:57:41 +02:00
Dedy Lansky
dea78e0c9f wil6210: add sysfs for setting connect SNR threshold
snr_thresh sysfs can be used to set omni and direct SNR threshold for
connection.

Change-Id: I091a6b61a1a4cb98e0e8c0f70b2fff4d22486e61
Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
2017-11-08 14:57:30 +02:00
Lynus Vaz
a00b5d0583 msm: kgsl: Update the dispatcher timer properly
The dispatcher timer should be updated if preemption is not in
progress. This schedules the dispatcher work in case the command
does not make progress.

Change-Id: I9ef55b12d7a4f07a3c5bba650e37453bd8f86ce3
Signed-off-by: Lynus Vaz <lvaz@codeaurora.org>
2017-11-08 03:30:03 -08:00
Neeraj Soni
a3b28d68a2 security: pfe: Return proper error code
ICE clock funciton masks the error code from
scm call. This might introduce unwanted issues
in device. Ensure to return proper error code
to storage frameworks.

Change-Id: Ibd7358c3b19d23d5995cf267f56ef3bacf166569
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
2017-11-08 16:49:51 +05:30
Linux Build Service Account
8fe7c2f3d9 Merge "ARM: dts: msm: enable adv7533 bridge chip power rails on msm8996" 2017-11-08 02:31:29 -08:00
Linux Build Service Account
8cf2adc53d Merge "msm: camera: Check step position table for NULL pointer" 2017-11-08 02:31:27 -08:00
Linux Build Service Account
fa213fd7e7 Merge "ARM: dts: msm: Add sdhc_2 on msm8996 virtual platform" 2017-11-08 02:31:26 -08:00
Linux Build Service Account
dc774bc378 Merge "USB: configfs: Don't send DISCONNECT uevent during unbind" 2017-11-08 02:31:24 -08:00
Linux Build Service Account
637b5248c1 Merge "defconfig: arm64: msm: Enable MMC on msm8996 virtual plaform" 2017-11-08 02:31:23 -08:00
Linux Build Service Account
997088afbf Merge "soc: qcom: scm: Remap scm busy error codes to -EBUSY" 2017-11-08 02:31:22 -08:00
Yuan Zhao
a634cb0591 msm: mdss: do not do phy reset when HDMI power off
Do not need to do HDMI PHY reset here, because will do
that when HDMI cable connected again in HDMI mode setting
function.

Change-Id: Ifae7c35f72a9008980c207e0806ab7aaa57dfe07
Signed-off-by: Yuan Zhao <yzhao@codeaurora.org>
2017-11-08 15:51:18 +08:00
Gaurav Singhal
e635410e40 NFC: Fix for core init cmd send failure
Due to delay of ~3 sec between core reset response
and core init cmd, i2c send fails as NFC controller
goes to deep sleep state if its idle for ~1sec.

Delay caused due to logs in driver probe sequence.

Delay is added after every gpio state change to
ensure, modified value is taken into consideration
and unnecessary delays are removed.

Change-Id: I4c6e8f867f641d6648139206244d67bb556e0099
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
2017-11-08 12:11:34 +05:30
Ajay Agarwal
76cde531db dwc3: Do not perform core reinitialisation for host only mode
Cuurently as a part of start host, after the block reset we
are performing core init and gadget restart of the dwc3
controller. This causes crash for host only controller where
ep0 and ep1 have not been initialised but are being
dereferenced. Also, HW reinitialisation is not required for
start or restart host routine.

Change-Id: Ie2b781ecb03a1d0a02c5f4305d518adc18dc6ade
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
2017-11-08 11:27:35 +05:30
Geert Uytterhoeven
7e351fc4ea spi: core: Add support for registering SPI slave controllers
Add support for registering SPI slave controllers using the existing SPI
master framework:
  - SPI slave controllers must use spi_alloc_slave() instead of
    spi_alloc_master(), and should provide an additional callback
    "slave_abort" to abort an ongoing SPI transfer request,
  - SPI slave controllers are added to a new "spi_slave" device class,
  - SPI slave handlers can be bound to the SPI slave device represented
    by an SPI slave controller using a DT child node named "slave",
  - Alternatively, (un)binding an SPI slave handler to the SPI slave
    device represented by an SPI slave controller can be done by
    (un)registering the slave device through a sysfs virtual file named
    "slave".

From the point of view of an SPI slave protocol handler, an SPI slave
controller looks almost like an ordinary SPI master controller. The only
exception is that a transfer request will block on the remote SPI
master, and may be cancelled using spi_slave_abort().

Change-Id: I251c5b7247ee7088285e42dd3b3cdce9c56cb9f7
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Git-commit: 6c364062bfed3c34490e85bea52ff6e2d4f0f281
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
2017-11-08 11:26:36 +05:30
Odelu Kukatla
16d78cda70 soc: qcom: msm_bus: Add debug logging for max bandwidth votes
Max bandwidth vote on each bus device is required to be
printed when the device panics, so add a panic notifier
to print the max BW votes on each bus device.

Change-Id: I2256407638fe5085cb4b0f4d5a594dd00f4f3bce
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-11-08 10:58:19 +05:30
Rahul Sharma
431bac2520 ARM: dts: msm: enable adv7533 bridge chip power rails on msm8996
msm8996 auto CDP platform missing vddio power supply to power up
adv7533 bridge chip for DSI interfaces, which converts DSI to HDMI
signal. This change adds power rails to adv7533.

Change-Id: Ieaea589803bbac1d42478fff16e8a4a833cf7426
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
2017-11-07 19:02:35 -08:00
Linux Build Service Account
b1281c202f Merge "mmc: core: Return error if fallback to lower speed mode fails" 2017-11-07 15:40:02 -08:00
Linux Build Service Account
5662b995d5 Merge "ARM: dts: msm: Change QDSS pipe index to 3 for SDM660" 2017-11-07 15:40:01 -08:00
Yue Ma
23e028334a cnss2: Refactor callbacks for SSR framework
SSR framework is specific for MSM kernels. Refactor the callbacks
for SSR framework so that the same powerup/shutdown APIs can be
also used for non-MSM kernels where SSR framework does not exist.

Change-Id: Ic7bcafadc4f7ad3bd2fab0a4b672b2f5676fe401
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-11-07 10:25:44 -08:00