Commit graph

576087 commits

Author SHA1 Message Date
Siena Richard
efb766e449 drivers: soc: add size checks and update log messages
Add size checks to validate minimum size is met. Update log messages
to include only relevant information to ensure logs are accurate and
useful.

Change-Id: Idf76a7d964ec6989a0474d49895e54103f17938b
CRs-fixed: 1073129
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-10-13 17:32:42 -07:00
Hemant Kumar
39f9f52879 usb: gadget: f_midi: Use 1024 bytes as MIDI buffer size
Some UDC driver doesn't allow or throw errors when USB request buffer
queued is unaligned i.e. buffer size is not equal to wMaxPacketSize or
multiple of wMaxPacketSize. Fix this issue by using 1024 bytes as MIDI
buffer size instead of 256 bytes.

Change-Id: I71d520a5a800a3e612dc4d57e7baffa93fad61b3
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-10-13 17:10:44 -07:00
Runmin Wang
90c2d5300e soc: qcom: core_hang: Separate sysfs entry for silver and gold cluster
Silver and gold cluster use different PMU_EVENT and may need to have
different threshold values.

This patch creates different sysfs entries for silver and gold cluster.

CRs-Fixed: 1004392
Change-Id: I88cdf5110cadb44a81c0c700d5188bf639bb2129
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-10-13 13:04:11 -07:00
Gaurav Kohli
e1c41fb41b ARM: dts: msm: Add support for Lpass PIL on msmfalcon
Add support for Lpass PIL which facilitates the loading of Lpass
firmware, authentication and bringing it out of reset.

Change-Id: I587b39bc302449591cc0c71ff15b740374a8af4d
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-13 12:47:33 -07:00
Linux Build Service Account
fac2c0da16 Merge "misc: qcom: qdsp6v2: Add missing initialization" 2016-10-13 12:29:08 -07:00
Linux Build Service Account
6f38194db1 Merge "clk: qcom: Add support for the turing vote clocks" 2016-10-13 12:29:07 -07:00
Linux Build Service Account
0ca3e09432 Merge "ARM: dts: msm: Add support for GDSCs for MSMFalcon/MSMtriton" 2016-10-13 12:29:06 -07:00
Linux Build Service Account
601676fcf3 Merge "ASoC: wcd9xxx: Disable external clock buffer when mclk is not in use" 2016-10-13 12:29:06 -07:00
Linux Build Service Account
858faf3e12 Merge "ASoC: wcd-spi: Initialize local variables before usage" 2016-10-13 12:29:05 -07:00
Linux Build Service Account
a6138ccde2 Merge "sched: bucketize CPU c-state levels" 2016-10-13 12:29:04 -07:00
Linux Build Service Account
daa54e82ab Merge "sched: use wakeup latency as c-state determinant" 2016-10-13 12:29:04 -07:00
Linux Build Service Account
ca43d0b19b Merge "net: core: Remove warning for cloned packets in ingress path" 2016-10-13 12:29:03 -07:00
Linux Build Service Account
7e92274f8b Merge "defconfig: msm: Turn on scheduler tuning configs" 2016-10-13 12:29:02 -07:00
Linux Build Service Account
201e421789 Merge "sched/tune: Remove redundant checks for NULL css" 2016-10-13 12:29:02 -07:00
Jack Pham
c447a1b652 usb: pd: Fix PR_SWAP handling
Fix several issues found with PR Swap robustness.
- Change Rd->Rp as part of PE_PRS_SNK_SRC_TRANSITION_TO_OFF
  instead of PE_PRS_SNK_SRC_SOURCE_ON since the latter state
  is entered once the connection is re-established post-swap.
  Make sure to also notify the charger to stop drawing power.
- Properly handle/ignore CC disconnect in psy_changed() which
  happens during the swap operation. Similarly, don't queue the
  state worker when detecting CC re-connect after becoming sink
  as the transition is already handled via PD message exchange.
- Restore DRP toggling as soon as the operation is completed
  in order to cycle properly after the next disconnection.
- Add tSwapSourceStart delay after becoming new source and
  before sending the source capabilities messages.
- Add extra time (< tNewSrc) after enabling VBUS to allow it
  to fully ramp up after becoming the new source.
- Unconditionally disable Vconn regulator during disconnect,
  since it's now possible to have it on even in sink mode.

Change-Id: I9ee694d56dac11c315b45c8fc1e8be9426d06719
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-13 11:30:21 -07:00
Jack Pham
172cec3a2c usb: pd: Improve sink hard reset handling
During hard reset in sink mode, move the wait for VBUS to
reconnect to the PE_SNK_TRANSITION_TO_DEFAULT state. Use
the hrtimer to wait up to the maximum expected time for
VBUS to come back, which is triggered by the CC notification
from psy_changed(). This simplifies PE_SNK_STARTUP to only be
invoked when VBUS is already present and eliminates the
PE_SNK_DISCOVERY state.

When a non-PD source is connected, as the engine attempts to
wait for source capabilities this will result in hard reset
getting attempted 3 times with the hrtimer reaching full
timeout each time (for a total of ~6s) before settling.

Change-Id: Iee74c206b28fea9b75df2d234609a7939bc3d93c
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-13 11:30:21 -07:00
Dhoat Harpal
4a9524cbec soc: qcom: smem: Update CDSP processor ID
The local table of processor IDs maintained by SMEM must match the table
of processor IDs maintained by SMEM on remote processors, because the
IDs are global.

Update the local table of processor IDs to match the table on remote
processors.

CRs-Fixed: 1077384
Change-Id: I24d3809450bf63cbc6b930575c310cee116910f7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-10-13 17:10:19 +05:30
Saurabh Kothawade
1008ad689c msm: vidc: Update plane count in get-format
Currently, driver updates plane count only when client
requests buffer requirements. If it queries buffer
format before requesting buffer requirement, driver
returns incorrect plane count. With this change,
driver updates plane count in get-format as well.

CRs-Fixed: 1021026
Change-Id: Id829f07123963584f6c7fe0174e34006d2697aa9
Signed-off-by: Saurabh Kothawade <skothawa@codeaurora.org>
2016-10-13 03:20:24 -07:00
Taniya Das
b993440492 clk: qcom: Add support for the turing vote clocks
The turing hlos1 and hlos2 vote clocks is required to be enabled before
accessing the turing SMMUs, so add support for the same.

Change-Id: I9e4b0d7cc5f164b207a1a0e2c1ae24bdfd8fa063
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-13 09:13:31 +05:30
Taniya Das
b445741142 ARM: dts: msm: Add support for GDSCs for MSMFalcon/MSMtriton
Support for the GDSCs which are required to be enabled/disabled by clients
on msmfalcon and msmtriton.

Change-Id: I0bad9d7bbee060ef70f3e8e6274fccc86fe9df6e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-13 09:12:37 +05:30
Devesh Jhunjhunwala
b420097ef0 leds: qpnp-flash-v2: Fix possible NULL pointer dereference
Update the flash_led_brightness_set callback to gracefully handle
invalid led_class device, and being called before driver probe is
complete.

CRs-Fixed: 1060705
Change-Id: Ice714c1fad1d202d05de6ecaf6d1d1ec17a04c15
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-10-12 20:03:40 -07:00
Phani Kumar Uppalapati
7eb661ba7e ASoC: wcd934x: Update DSD register sequence for v1.1
Update DSD playback register sequence for wcd934x
codec version 1.1.

Change-Id: I993273bcf26f8f53f6d9c8cccec5c4b17c8a0e95
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-10-12 18:50:38 -07:00
Devesh Jhunjhunwala
169fd1f5f5 leds: qpnp-flash-v2: Add support for preemptive charger mitigation
Add support to configure and trigger preemptive charger
mitigation in flash driver.

Change-Id: Iec92d2037fcc60446760182c9eda53918e6e094c
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-10-12 18:40:32 -07:00
Devesh Jhunjhunwala
889d937b11 leds: qpnp-flash-v2: Add support for configuring hardware mitigation
Add support to program the ILED_GRT_THRESHOLD register, which
controls the led current threshold beyond which HW automatically
triggers preemptive mitigation.

Change-Id: I3ea14c8c76c4496eeeb11caf63c3ee62f031b157
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-10-12 18:38:54 -07:00
Sudheer Papothi
52f708c2a3 ASoC: wcd9xxx: Disable external clock buffer when mclk is not in use
External clock buffer being turned on even when mclk is gated results
in power leakage. Disable external clock buffer when mclk
is not in use.

Change-Id: Iea45a4e8ab4560a093c44800ddd7b1311471c646
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-12 18:33:28 -07:00
Skylar Chang
8b81dd7099 msm: ipa3: fix benign prints on ipa3_usb_init
On device bootup, ipa3_usb_init tried to access
IPA3's ipc_logbuf which is not initialized yet.
Therefore seeing those benign prints as "IPA HW
is not supported on this target". The fix is to
not access IPA3's ipc_logbuf on bootup and also
add debug print on ipa_api.c to see which entity
calling IPA3's API before ipa3-driver is probed.

Change-Id: I7aa23eabdf963146ae628eb159eee13a3e2bb935
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-12 18:10:21 -07:00
Bhalchandra Gajare
e92ad0d204 ASoC: wcd-spi: Initialize local variables before usage
Initliaze the local variables that are used in functions to return
success or error codes. This fixes possible cases where undefined
error codes are returned.

CRs-Fixed: 1070186
Change-Id: I74bed6cfd9753765b15d17d69ba30f61875e87c8
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-12 15:41:29 -07:00
Haynes Mathew George
c9579e0a6b misc: qcom: qdsp6v2: Add missing initialization
Use vars in driver context after proper initialization

Change-Id: I3e59e27534b8e1088d74b42c72e0075d2fe910e6
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
CRs-Fixed: 1049521, 1049615
2016-10-12 15:24:22 -07:00
Bhalchandra Gajare
476dae00da ASoC: wcd934x-dsp-cntl: add support for codec restart
During subsystem restart, the codec hardware goes through reset. Add
support in the wcd934x dsp controller driver to handle codec reset
and perform necessary reset of the codec dsp.

Change-Id: I9916354c04e24708aced5fc63bc12ddfe87b49f2
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-12 15:05:17 -07:00
Subbaraman Narayanamurthy
d352e8e9b5 qpnp-fg-gen3: add support to configure ki coefficients during discharge
During medium and high discharging scenario, voltage mode
correction needs to be applied so that the battery SOC can
follow closely with the battery voltage. Add support for this
by configuring the ki coefficients for medium and high discharge
current during discharging.

Change-Id: I0a76e9e2f74c40b55e01f9dc106d31a148edefdf
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-12 14:32:58 -07:00
Subbaraman Narayanamurthy
54b2b24dea qpnp-fg-gen3: Add support to hold soc at 100 when charge is full
There is a requirement to show battery SOC at 100 when charging
status reaches full as long as the charger is connected and SOC
doesn't drop below automatic recharge threshold. Add support for
this through a device tree property "qcom,hold-soc-while-full".

Also, when charging status reaches full, recharge SOC threshold
need to be adjusted depending on the SOC where termination
happens. This will be more prominent in jeita conditions. Add
support for it.

Change-Id: Icc9536f17eedc3559c9f70dc2a8b73127c78c98a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-12 14:31:39 -07:00
Joonwoo Park
825b7ef93a sched: bucketize CPU c-state levels
C-state aware scheduler takes note of wakeup latency of each c-state
level to determine whether to pack or wake up LPM CPU.  But it doesn't
distinguish small and large delta as it's inefficient for scheduler to
do so on its critical path.

Disregard wakeup latencies less than 64 us between different c-state
levels.  This reduces unnecessary task packing.

CRs-fixed: 1074879
Change-Id: Ib0cadbd390d1a0b6da3e39c98010cedb43e5bf60
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-10-12 14:14:16 -07:00
Joonwoo Park
15d2c97d2a sched: use wakeup latency as c-state determinant
C-state aware scheduler at present, uses a raw c-state index number as
its determinant and avoids task placement on deeper c-state CPUs at
cost of latency.  However there are CPUs offering comparable wake-up
latency at different c-state levels and the wake-up latency at each
c-state levels are already have being fed to scheduler.

Hence use the wakeup_latency as c-state determinant instead of raw
c-state index to avoid unnecessary task packing where it's doable.

CRs-fixed: 1074879
Change-Id: If927f84f6c8ba719716d99669e5d1f1b19aaacbe
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-10-12 14:14:06 -07:00
Syed Rameez Mustafa
1ae239434b defconfig: msm: Turn on scheduler tuning configs
These configs are required to enable new tunable functionality in
the scheduler.

Change-Id: I94ef9c913e1d5be2801d553fdc859b80b62e8aa5
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-10-12 13:28:17 -07:00
Syed Rameez Mustafa
2a5b04bf9b sched/tune: Remove redundant checks for NULL css
The check for NULL css is redundant as upper layers are already
making sure that css cannot be NULL. Remove this check. It helps
to silence static analysis errors as well.

Change-Id: I64585ff8cceb307904e20ff788e52eb05c000e1f
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-10-12 13:28:03 -07:00
Liam Mark
9e6b178ebc iommu/io-pgtable-arm: Use outer shareable for all configurations
Change over to using outer shareable for both coherent and
non-coherent page tables and for both coherent and non-coherent
data buffers.
This is done to be more in line with the ARM spec.

Change-Id: Icebf88641a5ebb82bb4b7577d1ab402580b1460c
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2016-10-12 13:11:59 -07:00
Subash Abhinov Kasiviswanathan
180c3d2759 net: core: Remove warning for cloned packets in ingress path
This reverts commit b97da4469b ("net: Warn for cloned packets in
ingress path on SMP systems only") and commit e1f88edd76 ("net:
Warn for cloned packets in ingress path"). The path for GRO is well
tested now and cannot receive cloned packets. Loopback packets are
triggering this warning leading to a false positive.

CRs-Fixed: 1077079
Change-Id: I8f36906f508998c6369f30e0eadc1703c70533b9
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-10-12 14:03:34 -06:00
Phani Kumar Uppalapati
ef04ecd592 ASoC: wcd934x: update keeper enable for soundwire functionality
Keeper enable bit is used to reduce the current leakage
from soundwire master. Enable this bit before starting
audio use-case through soundwire and disable once
use-case is completed.

Change-Id: If2dc9e7fd9a2710391d02c0e52a291b3cffc63b6
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-10-12 12:08:33 -07:00
Yuanyuan Liu
dad5a2e976 icnss: Remove msm_bus bandwidth vote
Remove msm_bus bandwidth vote as WLAN FW will take care of it.

CRs-Fixed: 1075319
Change-Id: I618cc3603df6af18409613209e0373d7e36202fd
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-10-12 10:05:38 -07:00
Linux Build Service Account
773f15cdab Merge "ARM: dts: msm: Enable System sleep stats for MSM8998" 2016-10-12 07:02:02 -07:00
Linux Build Service Account
de9bfef0d1 Merge "ASoC: wcd-dsp-mgr: handle codec down and up events" 2016-10-12 07:02:01 -07:00
Linux Build Service Account
3e806839fc Merge "ASoC: wcd-spi: Move one time initializations to component bind" 2016-10-12 07:02:00 -07:00
Linux Build Service Account
8f873ba767 Merge "input: misc: add Kconfig and Makefile for pat9125" 2016-10-12 07:01:59 -07:00
Linux Build Service Account
d3961332c7 Merge "diag: Add MSG SSID for DPM" 2016-10-12 07:01:59 -07:00
Linux Build Service Account
f024a86a4d Merge "qpnp-smb2: smb-lib: update reading charge_done property" 2016-10-12 07:01:58 -07:00
Linux Build Service Account
910340555a Merge "rpm-smd: Fix memory leak when rpm create request fails" 2016-10-12 07:01:57 -07:00
Vevek Venkatesan
3ef7b5c53e input: pat9125: add support of sending rotating switch events
Add support of reading the status of the device, parsing it and
sending it to the Input framework using the input APIs.

Change-Id: Iebc3767e9dbcf10a541b8b02f8696da84312447a
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-12 14:22:55 +05:30
Vevek Venkatesan
f3f610836f input: misc: add Kconfig and Makefile for pat9125
Add Makefile and Kconfig to build Pixart PAT9125
rotating switch driver.

Change-Id: I5e7bc2ed8dce0b1dde4931e653db4233e90ed1cd
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
2016-10-11 22:42:19 -07:00
Linux Build Service Account
52912bb76b Merge "msm: vidc: Don't print message queues in error cases" 2016-10-11 22:33:04 -07:00
Linux Build Service Account
f5724ba17b Merge "msm: vidc: Fix the condition to check dcvs support" 2016-10-11 22:33:03 -07:00