Commit graph

577574 commits

Author SHA1 Message Date
Ajay Singh Parmar
dec2c9c98d msm: mdss: dp: add support for link retraining at lower link rate
Add support to restart link training at a lower link rate if the
training has failed at the current rate in Clock Recovery phase
or has reached the maximum number of retries in the Channel
Equalization phase.

Change-Id: Ic7ac0b7ac19d19577d4d1223c8638f17ad9d78af
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-10-27 15:18:22 -07:00
Ajay Singh Parmar
dc10995a1b msm: mdss: hdcp2p2: optimize aux message read and write
hdcp 2.2 message has multiple parts with different addresses.
Currently, each address is read/written as a separate aux
transactions. As, for a particular message, all parts are
read/written contiguously, make single aux transaction instead
of multiple transactions to avoid unnecessary aux delays.

Change-Id: I284bc56aa94eef127c2bdd0f80aab7b0cf080342
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-10-27 15:17:57 -07:00
Abhijeet Dharmapurikar
ca3b5f6d7e pmic-voter: Add the votable name in debugfs
Add the votable name in the first line of the debug output. This helps
in understanding which voter the output is for.

Change-Id: I7c3d321f9f062037d85efba437a3fc1012b64d4b
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-10-27 15:16:45 -07:00
Ajay Singh Parmar
01cb3026c6 msm: mdss: hdcp2p2: fix deadlock during re-authentication
Fix the dead lock happening during re-authentication where
threads were waiting for each other during clearing the last
session and starting a new one.

Change-Id: Ife18adde8349acb92b22e228d0bbc18edbf2c90e
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-10-27 15:16:42 -07:00
Satish kumar sugasi
63288e7dc9 Bluetooth:Add ioctl to power control connectivity chip
Added new ioctl command to perform power on/off operations
on connectivity chipset from userspace process.

CRs-Fixed: 1049512
Change-Id: Id254a12ba8fc2d57951d158c8fce80168375586d
Signed-off-by: Satish kumar sugasi <ssugas@codeaurora.org>
Signed-off-by: Bhakthavatsala Raghavendra <braghave@codeaurora.org>
2016-10-27 14:58:42 -07:00
Bhalchandra Gajare
c26d6b5861 ASoC: wcd934x: fix default value for FLL threshold
The default value of CPE FLL threshold register needs to be updated
to 0x20 as per the hardware specification. Change fixes this by
adding this register to the codec register defaults.

CRs-Fixed: 1083199
Change-Id: Ib19d78f0834803c75b255ee3a119e043ffb8a988
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-27 14:42:43 -07:00
Yuanyuan Liu
fd0549cf6a icnss: Enable PMM_TCXO_CLK before switch to cxo
Enable PMM_TCXO_CLK before swith to cxo. Also, add
debug logs of reading WCSS_SR_PMM_SR_MSB register
multiple times to check whether ref clock is shut off
or not when xo disable command failed.

CRs-Fixed: 1082643
Change-Id: I1aae776d5e6cc8f1cc2af9278c0e3d6ac37804a9
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-10-27 14:08:58 -07:00
Naseer Ahmed
1880e6184a msm: mdss: Dynamic resolution switch with DSC on/off
When dynamically switching resolutions from one with DSC and the
other without, DSC should be turned off in MDP and also
topology should be switched to enable 3D mux if DSC merge was
being used.

Change-Id: I381003f4542d1483004df4b24e2ffe6bd1571592
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2016-10-27 15:35:48 -04:00
Hemant Kumar
59caa12279 usb: dwc3: Turn on memory core and periphery upon resume
Memory core and memory peripheral blocks should remain
on upon host bus suspend otherwise XHCI controller
fails to respond to XHCI commands upon host bus resume.
These memory blocks will be turned off only upon stopping
host mode or vbus off in device mode.

Change-Id: I1f53c9536b6896111707b77954d2b6cf4d227db8
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-10-27 12:20:00 -07:00
Zhen Kong
492459ec60 msm: crypto: Fix integer over flow check in qce driver
Integer overflow check is invalid when ULONG_MAX is used,
as ULONG_MAX has typeof 'unsigned long', while areq->assoclen,
q_req->crytlen, and qreq.ivsize are 'unsigned int'. Make change
to use UINT_MAX instead of ULONG_MAX.

Change-Id: If2bb1900c07af1ea162da362c913d4880b0bc755
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-10-27 12:14:09 -07:00
Neeraj Upadhyay
536965ebca ARM: qcom: add board entries for msmtriton
Add board entries to support msmtriton 32-bit boot.

Change-Id: Idfc139ff63f6268f836694e0680c1e44582dfbb3
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-10-27 06:29:30 -07:00
Xiaogang Cui
4ab1239e42 ARM: dts: msm: Add initial support for msmcobalt v2 QRD VR1 board
Add initial device trees for msmcobalt v2 QRD VR1 board.
Move audio device tree entry to common file as well.

Change-Id: Iabc11506074511ee71463e9d287f6e460dca451e
Signed-off-by: Xiaogang Cui <xiaogang@codeaurora.org>
2016-10-27 01:01:10 -07:00
Ghanim Fodi
e1cf6bb611 msm: ipa3: Support IPA-USB suspend sequence without remote wake-up
Today IPA-USB uses disconnect sequence when USB initiates
suspend without remote wake-up, and uses suspend sequence
when USB initiates suspend with remote wake-up.
In accordance with USB-GSI driver, changing this behavior
to use suspend sequence in both of the cases. This is to
overcome some USB H/W malfunction when using disconnect
sequence in case of suspend scenario.

Change-Id: Iba43e192905ab37d196aea4b5d00861b9cb7c347
CRs-Fixed: 1068949
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-10-26 23:36:47 -07:00
Jack Pham
9ed78090a0 usb: xhci-plat: Enable wakeup for the root hubs
During system suspend, usb_suspend() will get called for
both root hub instances and in the choose_wakeup() routine
it will find that device_may_wakeup() returns false. If
the busses were previously runtime suspended then
udev->do_remote_wakeup would be set, but since it conflicts
with the wakeup setting being false, the routine has to
first runtime resume the devices in order to change the
remote wakeup setting. This causes unnecessary delay
as it interrupts the system suspend sequence.

Since the host already does support remote wakeup, enable the
per-device wakeup settings for both the hcd root hub instances
in order to avoid the mismatch during choose_wakeup() which
will allow usb_suspend() to proceed without any unnecessary
resume.

Change-Id: I619272c5d0439427061541f5658cfd305a4ebd46
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-26 19:46:23 -07:00
Meng Wang
4c2301d047 ASoc: wcd934x: correct MAD micbias setting
As per register definition in software interface, the
bitmask for Micbias selection in wcd934x MAD setup should
be 0x07, not 0x03. Correct the bitmask setting.

Change-Id: I475d1219ae62378a90c69642f2320149d0f13885
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-10-26 19:45:02 -07:00
Subbaraman Narayanamurthy
016b80785f leds: qpnp-wled: add support for configuring ILIM in pmicobalt
Currently, current limit (ILIM) for WLED is configured only for
pmi8994. ILIM levels differs in pmicobalt. Also, the step size
assumed before cannot go well with the different levels.
Default ILIM value differs for LCD and AMOLED mode. Taking this
all into account, add a separate function to configure ILIM for
different PMIC subtypes.

Change-Id: Ibc69706ae1dc878de5cbdaf283f0d71aff8000a1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-26 18:23:44 -07:00
Subbaraman Narayanamurthy
9b32ac8b25 leds: qpnp-wled: Update AMOLED_VOUT programming
For newer PMICs like pmicobalt, AMOLED_VOUT can be programmed via
independent registers. Also the option to configure AVDD voltage
through SWIRE and SPMI mode is present. Add support to program
the AVDD voltage and mode through these registers. AVDD TRIM
adjustment is needed only for pmi8952 and pmi8994. It is not
needed for pmicobalt. Support it.

CRs-Fixed: 1051250
Change-Id: Ia5cc4a6bbf6b6d0d86e13cec7da167f8a49b859d
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-26 18:21:40 -07:00
Satyajit Desai
045923835d coresight: tmc: fix mutex release
Add proper handling for mutex release when input validation
fails on mem_size attribute.

Change-Id: I190cdb3f3dfe718f19c40f31e82eeb401f9ea37d
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
2016-10-26 18:18:52 -07:00
Sunil Paidimarri
de9d29a416 msm: ipa: Fix the memory leak in error cases
Free the skb if packet is not sent to ipa hw
successfully other than TX_BUSY error cases to avoid
memory leak.

Change-Id: I012484aa92e8f25ed0ad4f6709a54f40409ab8d2
CRs-Fixed: 1077525
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-10-26 17:34:59 -07:00
Zhen Kong
ecd28536e3 qseecom: check buffer size when loading firmware images
Make change in __qseecom_load_fw() and qseecom_load_commonlib_image()
to check buffer size before copying img to buffer.

CRs-fixed: 1080290
Change-Id: I0f48666ac948a9571e249598ae7cc19df9036b1d
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-10-26 15:58:38 -07:00
Subbaraman Narayanamurthy
77b00179a4 ARM: dts: msm: fix WLED sink configuration for msmcobalt QRD platform
MSM8998 QRD platform uses WLED sinks 2 and 3 instead of 1 and 2.
Fix the WLED sink configuration for the proper operation.

CRs-Fixed: 1082598
Change-Id: I2a49535786ac61c4da0bebe300aff33a556e485d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-26 15:09:02 -07:00
Harry Yang
b6d0253492 qcom-charger: set optimal buck switching frequency
Reduce the power dissipation impact by choosing the optimal
switching frequency per input voltage.

The optimal switching frequences are chosen as follow,
	5V only = 600kHz
	6-8V QC3 = 800kHz
	9V QC2 or vanilla PD = 1.0MHz
	12V QC2 or PD adapter = 1.2MHz

CRs-Fixed: 1048242
Change-Id: I2ef9f3e122b39682a743334668fcd0aeb085e147
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-10-26 14:22:51 -07:00
Linux Build Service Account
bcd8ec9210 Merge "Merge remote-tracking branch 'msm-4.4/tmp-510d0a3f' into msm-4.4" 2016-10-26 13:13:24 -07:00
Linux Build Service Account
b12304a536 Merge "clk: osm: msm: allow WDOG status register to be enabled via debugfs" 2016-10-26 13:13:23 -07:00
Linux Build Service Account
6d89479bd3 Merge "msm: mdss: fix crash when wrong params are passed on the esd config" 2016-10-26 13:13:21 -07:00
Linux Build Service Account
604c0ceedb Merge "icnss: Do top level reset when timeout to pull register state" 2016-10-26 13:13:20 -07:00
Mahesh Sivasubramanian
bf3c04884e drivers: cpuidle: lpm-levels: Enable Sleep prediction
Enable Sleep mode prediction by default. This predictions provides better
power and CPU performance.

Change-Id: Ic4791164cee1dea0cc36c8445f546b9ec56785d4
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-10-26 13:28:07 -06:00
Skylar Chang
370d57077e msm: ipa: fix ioctl input param validation
Fix input parameter validation in order to avoid
device crash because of incorrect parameter in IPA driver.

Change-Id: Icbdb05aeb9211665420a872d3453dbbd24fd347b
CRs-Fixed: 1069060
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-26 11:05:07 -07:00
Robin Murphy
778e921c5e arm64: Implement optimised IP checksum helpers
AArch64 is capable of 128-bit memory accesses without alignment
restrictions, which makes it both possible and highly practical to slurp
up a typical 20-byte IP header in just 2 loads. Implement our own
version of ip_fast_checksum() to take advantage of that, resulting in
considerably fewer instructions and memory accesses than the generic
version. We can also get more optimal code generation for csum_fold() by
defining it a slightly different way round from the generic version, so
throw that into the mix too.

CRs-Fixed: 1082349
Change-Id: I0d8e9bdc15d052458e366cef13a6d2d8c7420ff2
Suggested-by: Luke Starrett <luke.starrett@broadcom.com>
Acked-by: Luke Starrett <luke.starrett@broadcom.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Git-commit: 0e455d8e80aa22d7ed42c9f5e4e3a75c558aa543
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-10-26 11:44:42 -06:00
Siena Richard
a608944cfb drivers: soc: Add new parameters for APR IPC logging
Add the ability to log source address, dest address, opcode, token,
and possibly return value in APR IPC logging to better assist
with debugging issues.

CRs-fixed: 1064187
Change-Id: I86976ac6139b8c76d9239acae073f03fbc5e0a38
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-10-26 10:39:41 -07:00
Jack Pham
a9f360e8ae usb: pd: Observe PSHardResetTimer for source hard reset
Ensure the PSHardResetTimer is observed in the source case
when receiving a hard reset. Currently it is handled only
when sending a hard reset. This is achieved by moving
PE_SRC_TRANSITION_TO_DEFAULT from usbpd_set_state to usbpd_sm.

Change-Id: Iea0a8cd64fcce14a99b828cadb0f07664ce858f0
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-26 09:12:34 -07:00
Jack Pham
df63068acb usb: pd: Fix sink hard reset looping bug
commit f2449fb61a ("usb: pd: Clear PD_IN_HARD_RESET in
PE_SNK_TRANSITION_TO_DEFAULT") introduced a subtle bug by
moving the clearing of the pd->hard_reset flag in sink mode
to the PE_SNK_TRANSITION_TO_DEFAULT state. This caused a
regression in which the state machine acts as if it had
received a hard reset signal and infinitely loops back there.
The cycle could only be broken if a physical disconnect happens.
Fix this by renaming the flag to hard_reset_recvd and only using
it when receiving, and not sending a hard reset.

Change-Id: I04008d0bfc9a874e08b45f78a937004e9f37527d
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-26 09:11:04 -07:00
Surendar karka
57260dab56 ASoC: msm: qdsp6v2: Change audio drivers to use %pK
Change all qdsp6v2 audio driver to use %pK instead
of %p. %pK hides addresses when the users doesn't
have kernel permissions. If address information
is needed echo 0 > /proc/sys/kernel/kptr_restrict.

CRs-Fixed: 1052832
Change-Id: Id6d45982cbe42a113e58c9b6509eb6ef8064aeef
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-10-26 21:07:26 +05:30
Sudheer Papothi
a5d2e8dce1 ASoC: msmcobalt: Fix MCLK routing on msmcobalt for WCD9340
MCLK TX widget has been added for WCD9335 for recording usecases,
but this results in failure of audio recording usecases on
WCD9340 as msmcobalt supports dynamic detection of codecs. Add
corresponding MCLK widgets based on codec selection for audio
recording usecases to work properly on both codecs.

CRs-Fixed: 1022917
Change-Id: I772e05990a796c99c3b6b6f50323d87b5894231b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-26 19:49:19 +05:30
Sudheer Papothi
03e7117725 ARM: dts: msm: Add dmic clock rate on ECPP path for msmcobalt
DMIC clock on ECPP(Echo cancellation Ping-Pong) path can
run at 1.2MHz. Change configures DMIC clock rate for ECPP
path in codec device node.

CRs-Fixed: 1022917
Change-Id: Ib846318dc3d359672314485d386a23fd8621bfda
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-26 07:07:20 -07:00
Abdulla Anam
3096610b62 msm: vidc: Correct debugfs directory name
Video instance pointer is used directly as a unique name for
the instance's corresponding debugfs directory. %pK will remove
the uniqueness and hence only first among any concurrent sessions
will be able to create a corresponding debugfs directory. Use %p
as the name is not directly revealed through prints.

Change-Id: I3a79950b76c1c38e487471f21dc60590b032dd3f
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
2016-10-26 04:39:41 -07:00
Ananda Kishore
48c3c0c102 ARM: dts: msm: add SLPI fw name property for msmcobalt
Add SLPI fw name property to support dynamic loading of SLPI
fw images based on the version info.

Change-Id: I69981b603526575758376695d7a5e9affd389dbe
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
2016-10-26 15:40:13 +05:30
Ananda Kishore
8b2625febf sensors: ssc: add support to read SLPI fw name
Read SLPI fw name from device node to dynamically load the SLPI
fw image.

Change-Id: I9ecc0cc1b5de5e0bd47c658747463a4498123655
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
2016-10-26 15:39:02 +05:30
Sarada Prasanna Garnayak
86ea96819d defconfig: Enable CONFIG_ICNSS_DEBUG for 32-bit msmfalcon
Enable CONFIG_ICNSS_DEBUG to enable driver debugging.

CRs-fixed: 1082440
Change-Id: I287761ce5b13dc139f59270dceac67cc9ae45cff
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-10-26 15:34:30 +05:30
Sarada Prasanna Garnayak
b5e9e70478 defconfig: Enable CONFIG_ICNSS_DEBUG for 32-bit msmcortex
Enable CONFIG_ICNSS_DEBUG to enable driver debugging.

CRs-fixed: 1082440
Change-Id: I6028d4a01ddfd8f8589a1de5322c2780d256d5bc
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-10-26 15:29:51 +05:30
Linux Build Service Account
5b7da25887 Merge "mdss: display-port: add support for hdcp 2.2" 2016-10-26 01:10:43 -07:00
Linux Build Service Account
c3b776a3ae Merge "icnss: Stay awake during recovery" 2016-10-26 01:10:40 -07:00
Linux Build Service Account
3319e8c1d7 Merge "ASoC: wcd934X: Update TX gain correctly after decimator enable" 2016-10-26 01:10:39 -07:00
Linux Build Service Account
49cc9d17a4 Merge "ASoC: wcd9335: Update TX gain correctly after decimator enable" 2016-10-26 01:10:38 -07:00
Linux Build Service Account
84072dbeee Merge "ARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms" 2016-10-26 01:10:36 -07:00
Linux Build Service Account
22d4148b42 Merge "clk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag" 2016-10-26 01:10:35 -07:00
Linux Build Service Account
9b87ed2468 Merge "lpm-levels: Change _WARN_printf to pr_err when residency < 0" 2016-10-26 01:10:34 -07:00
Linux Build Service Account
2d51941989 Merge "clk: Check for failure at clk_change_rate" 2016-10-26 01:10:33 -07:00
Linux Build Service Account
0ff93a3e06 Merge "ARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2" 2016-10-26 01:10:32 -07:00
Linux Build Service Account
cf4ce23d22 Merge "msm: vidc: Update log level for power collpase" 2016-10-26 01:10:31 -07:00