Commit graph

595078 commits

Author SHA1 Message Date
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
Liangliang Lu
a17c88a808 usb: gadget: ffs: Defer freeing memory on free_inst if in use
In the case of ffs_free_inst() called, whole ffs_dev structure is
freed. Userspace related API do not check if ffs_dev is freed or
not.

If ffs endpoint is opened by userspace, ffs_free_inst() is executed,
mark inst_exist to false but do not free instance structures until
ffs_data is freed.

Besides, ffs_data is allocated in ffs_fs_mount() while opts->dev
is allocated when ffs instance created. And opts->dev will
be freed when ffs instance freed.

If ffs instance is freed and created once, opts->dev is allocated
to new memory, but since ffs_fs_mount() won't be called in this
case, new opts->dev miss the ffs_data address and
ffs_data->private_data still point to old opts->dev address which
is already freed.

So new allocated opts->dev need to initialize opts->dev->ffs_data,
and ffs_private_data also need to update new allocated opts->dev
address.

Change-Id: Idea56f86c62da700926e8ce3a724d5be6295a4fd
Signed-off-by: Liangliang Lu <luliang@codeaurora.org>
2017-11-07 18:53:08 +08:00
Wanhyeong Ryu
63d7fc8afd mmc: core: Return error if fallback to lower speed mode fails
If there are continuous data-CRC errors in higher speed modes (SDR104
mode), then driver fallbacks to lower speed mode. But if at all it
fails to fallback to lower speed mode, then that error should be
propagated to the caller so that caller will handle it appropriately.

Without this change, sometime while processing card removal event,
driver fails to detect card removal and treats card as present
eventhough its removed.

Change-Id: I89544d41c5b014eb9227ba33ef9ec1917b6793dc
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-11-07 15:39:33 +05:30
Linux Build Service Account
c64b5ccbba Merge "msm: isp: Soft reset ISP before second pass" 2017-11-07 01:41:17 -08:00
Linux Build Service Account
f2a461d291 Merge "ARM: dts: msm: Remove the virtual plane implementation on msm8996" 2017-11-07 01:41:17 -08:00
Zhiming Weng
df46a12ca7 msm: cec: simplify TX message processing
Simplify the message processing of CEC adapter driver's transmit
function. Don't need to decompose CEC message's header block and
data block 0 before programming to the registers.

Change-Id: Icf2b2f123bda560ef4e3c8c4c6a2eaf828b7ce9a
CRs-Fixed: 2117559
Signed-off-by: Zhiming Weng <czweng@codeaurora.org>
2017-11-07 16:43:01 +08:00
Surajit Podder
7dae4c54df msm: vidc: Fix sequence change event properly
Ensure that session continue is not sent to firmware
in cases where resources sufficient event is converted
to insufficient.

Change-Id: I3500a63d49dcd799ad76491a207c68bfef854dd3
Signed-off-by: Surajit Podder <spodder@codeaurora.org>
2017-11-06 22:37:50 -08:00
Vivek Veenam
c2646efc65 msm: camera: Enable (2+1) lane csiphy combo mode
Changes to enable csiphy in combo mode for (2+1) lane
sensors.

CRs-Fixed: 1068576
Change-Id: Iaf03c1a6b13a19e8591ab3dbb462154130b41e5e
Signed-off-by: Vivek Veenam <vveenam@codeaurora.org>
2017-11-06 22:25:59 -08:00