Commit graph

585336 commits

Author SHA1 Message Date
Yingwei Zhao
4de1da15c1 ARM: dts: msm: change CHG_OK pin to active high for QRD SDM660
PM660 controls SMB1351 by STAT_CHG pin when the parallel is enabled.
the polarity of SMB1351 should be active high, so add a property
in DTS to the polarity.

CRs-Fixed: 2015025
Change-Id: Idca4149c587e9588fce8ba757fa0b7bf0ca5614d
Signed-off-by: Yingwei Zhao <cyizhao@codeaurora.org>
2017-03-05 18:30:54 -08:00
Linux Build Service Account
796d604a03 Merge "msm: mdss: Fix AVR flush for split control path" 2017-03-05 12:38:08 -08:00
Linux Build Service Account
7a1822a443 Merge "msm: mdss: flush timing after splash done for video panel" 2017-03-05 12:38:07 -08:00
Linux Build Service Account
fc0f8e4fab Merge "msm: mdss: add support for DP PLL driver on sdm630" 2017-03-05 12:38:06 -08:00
Linux Build Service Account
0022c06fc8 Merge "USB: gadget: midi: Replace snd_card_free with snd_card_free_closed" 2017-03-04 23:34:13 -08:00
Linux Build Service Account
ee3c2b2d74 Merge "msm: mdss: validate qseed3 params" 2017-03-04 10:12:55 -08:00
Linux Build Service Account
d2499ee89d Merge "mmc: core: Retry claim host in mmc_sd_detect" 2017-03-04 10:12:54 -08:00
Linux Build Service Account
77610431cb Merge "defconfig: enable VT driver for mediabox" 2017-03-04 02:56:20 -08:00
Linux Build Service Account
776a0506ed Merge "ASoC: codecs: add cable connect/disconnect acknowledgment" 2017-03-04 02:56:19 -08:00
Linux Build Service Account
62be936f95 Merge "msm: pcie: add the checking of userspace input length" 2017-03-04 02:56:18 -08:00
Linux Build Service Account
b398385a00 Merge "msm: camera: Lack of copy_from_user in camera driver." 2017-03-04 02:56:17 -08:00
Veerabhadrarao Badiganti
e9cc73402e mmc: core: Retry claim host in mmc_sd_detect
Use mmc_try_claim_host with a timeout instead of mmc_claim_host in
mmc_sd_detect. This is to ensure that mmc rescan work item is doesn't
get blocked on claim_host for longer period.

In the pm_suspend path, we cancel the mmc_rescan work item.
If this work item is already scheduled, suspend would be blocked till
mmc_rescan gets finished. In case, mmc_rescan is blocked on claim_host
lock, pm_suspend could get blocked for longer period.  This can result
in momentary UI freeze since pm_suspend is blocked for longer duration.
This change is to prevent this scenario.

Change-Id: Ib93bae6745a153bad3579ae42f46c3c3a7c1b95a
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-03-03 18:55:32 -08:00
Linux Build Service Account
b64db613f2 Merge "usb: dwc3: Replace sscanf with kstrtou8_from_user" 2017-03-03 17:39:29 -08:00
Linux Build Service Account
743e265eb5 Merge "clk: qcom: Use the saved current frequency for enable_safe_config" 2017-03-03 17:39:28 -08:00
Linux Build Service Account
a7554a335c Merge "power: fg-util: Fix the address mask for secure_write check" 2017-03-03 17:39:27 -08:00
Linux Build Service Account
ea9c12138d Merge "qcom: smb-lib: fix adapter allowance for PM660" 2017-03-03 17:39:26 -08:00
Linux Build Service Account
2a9195b87f Merge "msm: ipa3: fix DMA memory allocation success check" 2017-03-03 17:39:25 -08:00
Linux Build Service Account
22cc32a067 Merge "msm: ipa: Remove usage of stack memory" 2017-03-03 17:39:24 -08:00
Linux Build Service Account
085e108910 Merge "alarmtimer: Program mpm wakeup time in milliseconds" 2017-03-03 17:39:23 -08:00
Linux Build Service Account
6897134f74 Merge "msm: mhi_uci: Add support for platform devices" 2017-03-03 17:39:22 -08:00
Linux Build Service Account
f13bb40b09 Merge "ARM: dts: msm: Update SDCC bus voting for SDM660" 2017-03-03 17:39:21 -08:00
Linux Build Service Account
92751c23bd Merge "ARM: dts: msm: add sink capabilities to PM660 PD PHY" 2017-03-03 17:39:20 -08:00
Linux Build Service Account
e6e0a5df5f Merge "ath10k: Remove bus structures from ath10k struct" 2017-03-03 17:39:19 -08:00
Linux Build Service Account
048676be41 Merge "Merge tag 'lsk-v4.4-16.12-android' into branch 'msm-4.4'" 2017-03-03 17:39:18 -08:00
Linux Build Service Account
c0e191cd70 Merge "ARM: dts: msm: Add Nfc device to sdm630" 2017-03-03 17:39:17 -08:00
Linux Build Service Account
9b591f82cc Merge "USB: f_mtp: Perform vfs_write under mutex protection" 2017-03-03 17:39:16 -08:00
Linux Build Service Account
9067d4454d Merge "sched/rt: Fix PI handling vs. sched_setscheduler()" 2017-03-03 17:39:16 -08:00
Linux Build Service Account
2b5b362f11 Merge "msm: kgsl: Change GPU RAC hardware clockgating on SDM660" 2017-03-03 17:39:15 -08:00
Linux Build Service Account
064ad70ba3 Merge "defconfig: Enable REGMAP_ALLOW_WRITE_DEBUGFS for sdm660" 2017-03-03 17:39:14 -08:00
Abhinav Kumar
d528f00b0b drm/msm/sde: fix color component order for UBWC formats
For UBWC formats color component order should
be independent of endianness.

Fix the component order for UBWC formats based
on above requirement for SDE driver.

Change-Id: I054049105d3af99c5496328819ffef7d0eb9610a
Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org>
2017-03-03 14:14:49 -08:00
Sujeev Dias
25a3b9b47d msm: mhi_rmnet: Keep wake when processing transfer
Disable MHI from going into low power mode when
processing inbound transfers.

CRs-Fixed: 1081654
Change-Id: If8af0805501901a15981bbc6db0c92d2e040eb78
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-03 13:41:21 -08:00
Sujeev Dias
63b9fc1f66 msm: mhi_rmnet: Add support for platform devices
In order to support multiple instances of mhi_rmnet
net devices re-architect how the driver initialize
by adding support for platform device.

CRs-Fixed: 1027069
Change-Id: I038f9dcb2e9bffb2637d82fb30794f6e6d4c578c
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-03 13:40:08 -08:00
Skylar Chang
8c08d0e498 msm: IPA: add the check on intf query
The ipa_ioc_query_intf_rx_props structure comes
from the ioctl handler, and it is verified that
the size of rx buffer does not exceed the
IPA_NUM_PROPS_MAX elements. It is also verified
that the "entry->rx" buffer does not exceed
IPA_NUM_PROPS_MAX when "entry" is allocated.
However, the sizes of the buffer "rx->rx" and
the buffer "entry->rx" are not guaranteed to
be the same and will lead memory corruption
issue. The fix is to add the check before
memcpy.

Change-Id: Idf5c2d32f47c1a1cffeaa5607193855188893ddb
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2017-03-03 13:36:30 -08:00
Siena Richard
5b2f6e011b drivers: soc: add size check
Add size check to ensure the payload fits inside the declared payload
size to prevent loss of data when copying.

CRs-Fixed: 2009224
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Change-Id: I4275c626605272941143b54a7b8861b25f8e750a
2017-03-03 10:29:35 -08:00
Veerabhadrarao Badiganti
2c7676c7d7 mmc: card: block: Add support for completing cmdq requests with error
Add support for completing failed cmdq requests with error.

If any cmdq request is failed, we enter into error recovery path and
re-queue the same request. But in some cases (e.g. requests failed due
to invalid crypto configuration) same request shouldn't be re-queued
but should complete the request with error so that the a new requested
would be issued.

In mmc_blk_cmdq_complete_rq(), for a request if error information is
present and flag which indicates to skip error handling is set
then complete that request with error info.

Change-Id: I9c4a446bb27b4d82a0847d0bfb4481b314df479c
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-03-03 09:01:29 -08:00
Mahesh Sivasubramanian
b8d9268af5 ARM: dts: msm: Add rpm stats for TZ and SPSS for MSM8998
Add rpm master stats votes for TZ and SPSS to track votes from these
masters.

Change-Id: I98781d33f4e8424660898d5635624b8b891237f8
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2017-03-03 08:56:48 -07:00
Vijayavardhan Vennapusa
399fa239e4 USB: composite: Check return value before composite_setup_complete()
Currently driver is calling composite_setup_complete() when request
queuing to control endpoint fails. During disconnect or composition switch,
ep_queue() fails with -ESHUTDOWN return value. In this case also, driver is
calling composite_setup_complete(), which leads to invalid pointer
dereference. Fix it by not calling composite_setup_complete() in case of
return value of -ESHUTDOWN as anyhow composite_unbind() will take care of
clearing pending flags before freeing request buffers.

Change-Id: I87ea6ecb1e925c6b36dede59486e49ba3a4e90c7
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-03-03 18:53:25 +05:30
Manish Poddar
88ad6090d3 msm: camera: Lack of copy_from_user in camera driver.
In msm_copy_camera_private_ioctl_args function in
msm_buf_mgr camera driver arg is pointing to an address
in userspace and not kernel.
Done changes to use copy_from_user to fix it.

Change-Id: Ia9b747dcf86b448656a5d3676455ccb4eccd4e5a
Signed-off-by: Manish Poddar <mpoddar@codeaurora.org>
2017-03-03 02:25:19 -08:00
Krishna Manikandan
1520065c26 msm: mdss: Avoid unnecessary warnings during pipe unstaging
In some cases, when the pipe is being unstaged from right mixer,
some unnecessary processing is done and warning messages are
being printed. This can be avoided by updating the right stage
information after unstaging the pipe.

Change-Id: Ibeaa1c4bee29d7ac3ae34140bea8d5b7468dbc85
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
2017-03-03 13:35:21 +05:30
Govind Singh
473d827675 ath10k: skip cal configuration for WCN3990
Calibration data configuration is done from user space
for WCN3990 target. Skip cal configuration from debug
routine.

Change-Id: I349575a04029e80ef4efc2ac486f5716561c37d8
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2017-03-03 12:37:09 +05:30
Veerabhadrarao Badiganti
83333ef2f4 mmc: cmdq_hci: ice: Handle ICE HCI errors in cmdq mode
With ICE HCI addition in SDHC, couple of errors conditions
got introduced. These errors would be detected by ICE HCI and
triggers interrupt.

The two errors are:
1. Generic Crypto Error (GCE): This error is detected during the
transfer. Need to reset SDHC to recover.
2. Invalid Crypto Configuration Error (ICCE): The HW detects it
before the beginning of the transfer and terminates the transfer
before actual execution started.

Driver has to handle these error for recovering ICE-HCI from
these error conditions. This patch is for handling there errors
in cmdq mode.

Change-Id: Ia10075aca429cbc49ccccdae5c0499c7a176b8a2
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-03-03 12:13:32 +05:30
Deepak Kushwah
2c6f660170 msm: vidc: Fix masking of QP values for different codecs in driver
Driver is masking QP values for different codecs, as same control
is used for all codecs.This change enables driver to
differentiate QP boundaries based on codec type.

Change-Id: Ibc8a64ab933bac85c72b2dd62f6988bad6d5c5fa
CRs-Fixed: 2011307
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
2017-03-02 22:19:43 -08:00
Manoj Kumar AVM
26dc184bbb defconfig: enable VT driver for mediabox
Enable CONFIG_VT in msmcortex mediabox defonfig. This is needed for
Weston compositor functionality.

CRs-Fixed: 2002381
Change-Id: Id7d57d4b1862252af40fe1d8b296a4e5a8ee0fba
Signed-off-by: Manoj Kumar AVM <manojavm@codeaurora.org>
2017-03-02 20:11:33 -08:00
zhaoyuan
4fea7185a7 ARM: dts: msm: Add improve touch device node into sdm630 QRD
Improve touch will be used on sdm630 QRD so add support for it.

Change-Id: I4e7868f81dbd86a425375e98f4fea4a40f53887f
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
2017-03-03 11:22:56 +08:00
Subbaraman Narayanamurthy
0996508e0d leds: qpnp-wled: add support to control PSM dynamically
As per the hardware recommendation, keep PSM disabled 10 ms after
WLED module is enabled. Enable PSM back when the module is
disabled. This is to ensure that PFM mode is operational without
the precedence from PSM. Make this configurable through a device
tree property.

Change-Id: Ic6be160a88be40e94a4a0798646b8aa3f169ab49
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-02 18:52:08 -08:00
Xiaojun Sang
3053c8faea ASoC: msm: add support for VI sense recording
Add new routing dailink to support VI recording using
DAI of Slimbus4 Capture.

CRs-Fixed: 1113625
Change-Id: I75282bd39a7299a9906ac38907e93e359403c077
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2017-03-02 18:19:53 -08:00
Harsh Sahu
1e400c0dbd msm: mdss: Handling possible integer overflow
fudge_factor calculation can suffer from integer overflow as numer and
denom are user controlled. Hence this change will first check for the
overflow and return immediately.

CRs-Fixed: 1110860
Change-Id: I3fab3edd4515d7a4c67f29d68b2039f234b03612
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2017-03-02 18:06:37 -08:00
Subbaraman Narayanamurthy
104f30e462 leds: qpnp-wled: improve OVP fault interrupt handling
If there is an OVP event happened in the bootloader and the
interrupt is not handled before, then as soon as the WLED
module is enabled, fault interrupt can fire. This is seen
sometimes during bootup. This is harmless as such and cannot
be stopped completely. However, it would be good to keep the
OVP fault interrupt disabled at the startup. When WLED module
is enabled again, it will get enabled anyways after ~10 ms.

While at it, print the error message in OVP fault interrupt
handler only when the fault status is set.

Change-Id: I0759c87137a52a8872b37d126e71c13f76d10e05
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-02 17:57:08 -08:00
Subbaraman Narayanamurthy
4c4a60efd4 ARM: dts: msm: change WLED interrupt configuration for pm660l
Currently, WLED over-voltage and short-circuit fault interrupts
are configured for both rising and falling edge. Configure them
to be on rising edge alone as that should be sufficient.

Change-Id: I9e19cf08e77432a4db5f18894ee445d38f1ad802
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-02 17:48:56 -08:00
Subbaraman Narayanamurthy
75b11e217d ARM: dts: msm: change WLED interrupt configuration for pmi8998
Currently, WLED over-voltage and short-circuit fault interrupts
are configured for both rising and falling edge. Configure them
to be on rising edge alone as that should be sufficient.

Change-Id: I7cdaf126c07daa9afb2c0db68ee760a9a4a2956a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-03-02 17:47:56 -08:00