Commit graph

582476 commits

Author SHA1 Message Date
Subbaraman Narayanamurthy
993cc6a514 qcom: fg-memif: Return error properly when IMA read/write fails
In the SRAM masked write we read the register first, make
modification to the value and write it back. If the read fails
we bail out of the masked write function.

However there is a bug in the read api where the error code is
not properly returned. This causes the masked write to proceed
with a failed read and corruption ensues.

A similar bug is present in write api too where the error is not
returned correctly to the caller. Fix this.

Change-Id: Ic7651c5cb2e054a0b8b2dfe201463063ce9e167b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-31 15:07:03 -08:00
Jack Pham
1fb96a7df5 usb: pd: Support Programmable Power Supply as sink
PD 3.0 version 1.1 includes a new Programmable Power Supply
type that can be sent as an Augmented Power Data Object in a
Source Capabilities message. Add sink-side support to request an
Augmented PDO which also includes specifying the source's output
output voltage and current. For userspace, overload the 'select_pdo'
sysfs attribute by allowing voltage (uV) and current (uA) to be
optionally written, with the following syntax:

	echo <src cap id> <PDO> [<uV> <uA>] > select_pdo

Also rename the 'rdo' file to 'rdo_h' as it is already in human-
readable format, enhance it with APDO values, and make 'rdo' simply
spit out the hex value.

Change-Id: If861b0f8f2f04d06299f096ff52f1e1961c1daa9
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-01-31 14:53:07 -08:00
Jack Pham
ff00f08624 usb: pd: Support PD Rev 3.0 for sink mode
Set maximum revision support for 3.0 when starting in
PE_SNK_STARTUP state. If the partner source only supports
2.0, the spec_rev will be downgraded when receiving the
first Source_Capabilities message in phy_msg_received().

Add a helper to check for SinkTxOk (i.e. Rp indicates 3A)
before initiating an AMS sequence from PE_SNK_READY.
Currently such sequences are limited to power re-negotiation,
sink-initiated data/power role swap, and initiating VDMs.

Change-Id: I781c8826ded6e407297d50579d90bfd24783b164
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-01-31 14:53:06 -08:00
Jack Pham
326781e04b usb: pd: Support updating specification revision
To allow for future support of PD specification revision
3.0, update the PD_MSG_HDR macro to specify the revision
bits in each outgoing message header. The revision itself
will be kept in the struct pdphy. Also export a PD PHY
function to update the same for the auto-GoodCRC responses.
For now, only Rev 2.0 is supported.

Change-Id: I36e1b85f2e67597bd4fa8f0dd277374553451949
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-01-31 14:53:00 -08:00
Vamsi Krishna Samavedam
e8869713e5 usb: dwc3: Add maximum hw supported speed flag
Maximum hardware supported speed flag limits the maximum speed
of the usb controller to high or super. Adding this additional
flag as maximum_speed flag can be changed from different sources
such as power delivery stack.

Change-Id: I18f414e822b5525fe848a48384fac102cdae7b03
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
2017-01-31 14:52:59 -08:00
Linux Build Service Account
af883d4db0 Merge "qcom: fg-util: Fix possible race condition in debugfs" 2017-01-31 14:01:10 -08:00
Linux Build Service Account
f8478b9862 Merge "mmc: sdhci-msm: Update ICE reset register offset for ICE HCI" 2017-01-31 14:01:08 -08:00
Linux Build Service Account
d8dbdec2b2 Merge "mmc: sdhci-msm-ice: Enable ICE HCI if supported" 2017-01-31 14:01:08 -08:00
Linux Build Service Account
cf5b32c293 Merge "defconfig: Enable android-verity and FEC in sdm660" 2017-01-31 14:01:07 -08:00
Linux Build Service Account
1fda242d28 Merge "ASoC: msm: qdsp6v2: extend validation of virtual address" 2017-01-31 14:01:06 -08:00
Linux Build Service Account
ec2c50f78a Merge "ASoC: add missing switch mixer controls" 2017-01-31 14:01:05 -08:00
Linux Build Service Account
477b504fc6 Merge "ASoC: msm: qdsp6v2: fix spurious wakeup from q6asm cmd_wait" 2017-01-31 14:01:04 -08:00
Linux Build Service Account
33fffaf77f Merge "ARM: dts: msm: add power supplies for amoled panel on sdm660" 2017-01-31 14:01:04 -08:00
Linux Build Service Account
e106ce901f Merge "ASoC: msm: Remove i2s_pcm config settings in sdm660" 2017-01-31 14:01:03 -08:00
Linux Build Service Account
f413e767d0 Merge "ARM: dts: msm: Add PM support for sdm630" 2017-01-31 14:01:02 -08:00
Linux Build Service Account
bde58b49e0 Merge "net: rmnet_data: Optimized GRO for single flow" 2017-01-31 14:01:01 -08:00
Naseer Ahmed
d64ba05ed6 msm: mdss: Fix 3D Mux when restoring from DSC on/off
If a resolution switch with DSC on/off is executed during
suspend, it is possible that both 3D mux & DSC merge are
enabled after restore. This change fixes it.

Change-Id: I60cead6fea0023ea402f98f207d57099c2287be6
Signed-off-by: Naseer Ahmed <naseer@codeaurora.org>
2017-01-31 15:20:31 -05:00
Ajay Singh Parmar
55e88a7c67 msm: mdss: dp: fix hdcp data address
Provide correct hdcp related data from a given device to
avoid invalid address access related issues.

CRs-Fixed: 1114981
Change-Id: I8af0e80fa883f21e989a12a84e8e656d0dcb72d4
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2017-01-31 11:58:42 -08:00
Yuanyuan Liu
9dc3bd2212 icnss: Enable FW rejuvenate feature by default
Enable FW rejuvenate feature so that WLAN FW
can rejuvenate by default without changing the
configuration from debugfs.

CRs-Fixed: 2000561
Change-Id: Ic9b0524311c08bf3b99f43881054c23967734e5c
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-01-31 11:13:06 -08:00
Yuanyuan Liu
28616cc435 icnss: rename and change the type of enable_fw_log
enable_fw_log is renamed to fw_log_mode and changed
from boolean type to uint8_t, so that it can support
multiple log mode.

CRs-Fixed: 1116983
Change-Id: I9d4af7cd2c857b62f434d968f51af76121006907
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-01-31 10:44:59 -08:00
Veerabhadrarao Badiganti
8265e5eb2f mmc: sdhci-msm: Update ICE reset register offset for ICE HCI
SDHC v5.0 onwards the ICE reset register offset got updated.
Update the register offset based on the SDHC version.

Change-Id: I9c1250460cddf72837446b54fe03e3c52f11b234
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-01-31 20:51:19 +05:30
Veerabhadrarao Badiganti
92907bcb94 mmc: sdhci-msm-ice: Enable ICE HCI if supported
Check if the SDHC has ICE HCI support. If support is present,
enable the cryptoghrapic support inside SDHC.

Also ensure that it is re-enabled after SDHC is reset.
By default ICE HCI is disabled.

Change-Id: I43a65279088d70b415c396bc3e51e0e510bb7f9c
Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
2017-01-31 20:50:00 +05:30
Deepak Kushwah
a90ae1f904 ARM: dts: msm: Update venus clock cycles for SDM660
Update cycles per mb and low power factor for encoder
usecases to meet the performance.

Change-Id: I6b86426a7dae2a23636d1971b92da6f58e251ee8
CRs-Fixed: 1114008
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
2017-01-31 06:20:33 -08:00
Linux Build Service Account
a874c1606f Merge "soc: qcom: make debugfs support configurable for kryo l2 accessors driver" 2017-01-31 04:42:36 -08:00
Linux Build Service Account
db4204cf52 Merge "ARM: dts: msm: add battery profile for ascent 2800mah battery" 2017-01-31 04:42:35 -08:00
Linux Build Service Account
ffbe81b2ed Merge "ASoC: msm: Fix invalid pdata access after kfree" 2017-01-31 04:42:34 -08:00
Linux Build Service Account
22369c78bc Merge "usb: gadget: Add snapshot of CCID function driver" 2017-01-31 04:42:33 -08:00
Linux Build Service Account
1480b6a1a1 Merge "ARM: dts: msm: Add Nfc device to sdm660" 2017-01-31 04:42:32 -08:00
Linux Build Service Account
0a7b7fc131 Merge "mmc: sdhci-msm: Disable controller clocks in suspend" 2017-01-31 04:42:31 -08:00
Linux Build Service Account
b2179ceb0e Merge "msm_vidc: Disable DCVS in thumbnail mode" 2017-01-31 04:42:30 -08:00
Linux Build Service Account
c00bc44b4b Merge "msm: vidc: Disable port reconfig for thumbnail session" 2017-01-31 04:42:30 -08:00
Linux Build Service Account
f2ab5923b1 Merge "ASoC: wcd: Fix ADSP based SVA mode detection failures" 2017-01-31 04:42:29 -08:00
Linux Build Service Account
7949ac69d2 Merge "ASoC: wcd9xxx: check gpio pinctrl state in wcd9xxx_reset" 2017-01-31 04:42:28 -08:00
Linux Build Service Account
ac0b19ff2c Merge "ARM: dts: msm: modify sound node for sdm660 qrd skus" 2017-01-31 04:42:27 -08:00
Adinarayana Gupta Grandhi
7c57d5dd20 defconfig: Enable android-verity and FEC in sdm660
Enable the android verity device and support for
forward error correction.

Change-Id: I37c74d748f45bd5b5a0ac6b55c6709f662498433
Signed-off-by: Adinarayana Gupta Grandhi <agrandhi@codeaurora.org>
2017-01-31 04:37:34 -08:00
ansharma
5f99561e37 ARM: dts: msm: Configure WLED for SDM630
Specify the number of strings in WLED property to support
brightness for SDM630.

Signed-off-by: ansharma <ansharma@codeaurora.org>
Change-Id: I8a9cffc51520f58e63957e2b96f2e2fe598c00b1
2017-01-31 17:05:01 +05:30
Odelu Kukatla
f68f0e758f clk: qcom: Add support for cpu clock for sdm630
CPU clock frequencies are different for sdm630, so update
the bootup frequency for perf cluster for sdm630.

Change-Id: I9da19b0a09ec1c5c7960f9c2fadfe26a3b4c3015
Signed-off-by: Odelu Kukatla <okukatla@codeaurora.org>
2017-01-31 16:57:06 +05:30
Laxminath Kasam
9a4f615fca ASoC: msm: Remove i2s_pcm config settings in sdm660
I2S_PCM config as per SDM architecture is taken
care in LPAIF. It is not required to set any LPAIF
register to config I2s or PCM mode from Apps side.
Remove the code related to i2s_pcm config.

Change-Id: Ic8217b6dc178a7248979e7c2ca183286597112ad
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-01-31 15:36:55 +05:30
Raju P.L.S.S.S.N
67b984c116 ARM: dts: msm: Add PM support for sdm630
Add initial PM configuration necessary for SPM, LPM, MPM,
RPM stats to support SDM630.

Change-Id: I2e9ab91d8b0240a75198e489663ff794be3ee7ec
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2017-01-31 14:05:13 +05:30
Rama Krishna Phani A
3b900300ee thermal: tsens: Update sensor id for sdm660
Update sensor id flag for sdm660 such that thermal
client can obtain the HW ID for the available
temperature sensors (TSENS) with sensor ID details.

Change-Id: I6e217f734e8748c9ac5edf1c7a2b0dbf9deb9ac0
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2017-01-31 13:32:26 +05:30
Raviteja Tamatam
2d94891590 ARM: dts: msm: update recommended QOS vbif value for sdm660
Update the recommended QOS value for VBIF register
that programs maximum number of pending reads from
each AXI for display.

Change-Id: I0ca08f7e5d9c1ffa74abab987fc4382a7e5a9a4a
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
2017-01-31 13:29:56 +05:30
Chaithanya Krishna Bacharaju
a2e395cfb2 ASoC: msm: qdsp6v2: Add App type cfg support for Listen
LSM needs to connect to ADM in cases where processing of
captured data is required. App type config support is added
to configure ADM in such cases.

Change-Id: I2e429235e0486c958cacf18e5b704736791c2f7e
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
2017-01-30 23:40:36 -08:00
Chaithanya Krishna Bacharaju
f7b4f38b89 ASoC: msm: qdsp6v2: Extend LSM support to 48khz, 24bit and 4 channel
Enhance LSM code to support maximum configuration of 48khz, 24bit
and 4 channel.

Change-Id: I03895c983527d87389ca69e85235b1def5b4a2fa
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
2017-01-30 23:39:57 -08:00
Chaithanya Krishna Bacharaju
1f5681eec2 ASoC: msm: qdsp6v2: Add timestamp support for lsm detection event
Add support to parse LSM_SESSION_EVENT_DETECTION_STATUS_V3
in cases where event status requires timestamp corresponding
to detection.

Framework mode config is set to timestamp mode in cases where
LSM_SESSION_EVENT_DETECTION_STATUS_V3 is required.

Change-Id: Id0da3b24d55ac56ff6b61372ede9c63f50b2f4d4
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
2017-01-31 12:43:11 +05:30
Jayant Shekhar
cde14d9172 ARM: dts: msm: Change underflow color for truly/sharp wqxga panel
Change underflow color for truly/sharp wqxga panel based on 30 bit
color format.

Change-Id: I1e0d0869af6992f27a5428718019401f940ff4ea
Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
2017-01-31 12:18:56 +05:30
Yeleswarapu Nagaradhesh
9870f9f6da ASoc: wcd-mbhc: correct handling of electrical interrupts
When 5 pole headset is removed, electrical interrupts are
disabled but intr_status bit is not set properly. Due to
which interrupts are not enabled when extension cable is
connected. So, corrrect handling on electrical interrupts.

CRs-Fixed: 1111164
Change-Id: I6d1c667ae6c44e7f0767df3e5450e99614717cc6
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2017-01-31 12:11:33 +05:30
Ashish Garg
f36d9e9024 ARM: dts: msm: add power supplies for amoled panel on sdm660
Add LAB/IBB/OLEDB entries for supporting amoled panel on
sdm660.

Change-Id: I12b0f8d626d9c30a071b1877b9b9135a0ea83368
Signed-off-by: Ashish Garg <ashigarg@codeaurora.org>
Signed-off-by: Vishnuvardhan Prodduturi <vproddut@codeaurora.org>
2017-01-31 11:57:04 +05:30
Sandeep Panda
804463697a ARM: dts: msm: enable ESD feature for SDM660 target
Enable ESD check feature for SDM660 target by adding
the property flag to default panel node.

Change-Id: Icbd99fdbe4283407f94e60e3fe06b845a21846fd
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2017-01-31 11:46:41 +05:30
Kaushal Kumar
2f5ead45f5 soc: qcom: make debugfs support configurable for kryo l2 accessors driver
Add config option to enable/disable l2 indirect access debug capability.
The driver exposes l2 indirect access debugfs interface to get/set data,
address, and target cpus so keep it disabled by default.

Change-Id: I22f84d16a3bf12a78295f2d052bb50e90d6f2a8b
Signed-off-by: Kaushal Kumar <kaushalk@codeaurora.org>
2017-01-31 11:46:26 +05:30
Preetam Singh Ranawat
6fd9409fbd ALSA: pcm: fix blocking while loop in snd_pcm_update_hw_ptr0()
When period interrupts are disabled, while loop in snd_pcm_update_hw_ptr0()
results in the machine locking up if runtime->hw_ptr_buffer_jiffies is 0.

Validate runtime->hw_ptr_buffer_jiffies value before while loop to avoid
delta check.

CRs-Fixed: 1109229
Change-Id: Ib20b71c70aa4a8bee2837d1f3b5a91ad4ce083da
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-01-30 22:05:36 -08:00