Commit graph

575667 commits

Author SHA1 Message Date
Linux Build Service Account
627381d09a Merge "msm: sde: Adjust SDE rotator clock and BW calculation" 2016-09-30 18:23:47 -07:00
Linux Build Service Account
789809fbfc Merge "msm: camera: Add regulator enable and disable independent of CSID" 2016-09-30 18:23:46 -07:00
Linux Build Service Account
847de6a415 Merge "scsi: ufs-debugfs: Fix hba access" 2016-09-30 18:23:45 -07:00
Linux Build Service Account
e9ad6b6beb Merge "msm: ipa: unlock WLAN doorbell register access" 2016-09-30 18:23:45 -07:00
Linux Build Service Account
9aa659eeb2 Merge "ASoC: wcd934x: Add support for digital core power collapse" 2016-09-30 18:23:44 -07:00
Linux Build Service Account
3661c2fbd0 Merge "ARM: dts: msm: Add 2.3 GHz performance cluster support on MSMCOBALT v2" 2016-09-30 18:23:42 -07:00
Linux Build Service Account
1e2257a17f Merge "usb: pd: Clear requested_voltage/current values on disconnect" 2016-09-30 18:23:41 -07:00
Linux Build Service Account
74388a6568 Merge "clk: msm: Fix compilation for clock_debug_print_enabled" 2016-09-30 18:23:41 -07:00
Linux Build Service Account
d29edb4be4 Merge "ARM: dts: msm: Change L7A/L17A/L25A on msmcobalt" 2016-09-30 18:23:40 -07:00
Linux Build Service Account
e59d6b749b Merge "usb: pd: Add support to set the maximum speed via extcon" 2016-09-30 18:23:39 -07:00
Linux Build Service Account
abf71ed419 Merge "clk: qcom: Add support for regulator based GDSC control" 2016-09-30 18:23:36 -07:00
Linux Build Service Account
a19c18eb4e Merge "ASoC: msm: limit audiosphere driver logics to legacy soc" 2016-09-30 18:23:35 -07:00
Linux Build Service Account
131997f11f Merge "clk: msm: clock-mmss-cobalt: Update FMAXes for camera clocks on MSMCOBALT" 2016-09-30 18:23:35 -07:00
Linux Build Service Account
3c3421d8e0 Merge "ASoC: wsa881x: Avoid removing of already deleted timer object" 2016-09-30 18:23:34 -07:00
Linux Build Service Account
92654f0d1d Merge "PM / devfreq: bimc-bwmon: Fix rounding error" 2016-09-30 18:23:33 -07:00
Linux Build Service Account
9919a21fd9 Merge "arm64: Add back print of processor name and rev" 2016-09-30 18:23:33 -07:00
Linux Build Service Account
8c17676735 Merge "ecryptfs: forbid opening files without mmap handler" 2016-09-30 18:23:32 -07:00
Linux Build Service Account
4b2199d820 Merge "sched: panic on corrupted stack end" 2016-09-30 18:23:31 -07:00
Linux Build Service Account
d11cd1d072 Merge "netfilter: x_tables: validate e->target_offset early" 2016-09-30 18:23:30 -07:00
Linux Build Service Account
4bfa2a9dfa Merge "netfilter: x_tables: make sure e->next_offset covers remaining blob size" 2016-09-30 18:23:29 -07:00
Linux Build Service Account
61661c5756 Merge "cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind" 2016-09-30 18:23:28 -07:00
Linux Build Service Account
187b791db4 Merge "proc: prevent stacking filesystems on top" 2016-09-30 18:23:28 -07:00
Linux Build Service Account
4dd390af9c Merge "netfilter: x_tables: fix unconditional helper" 2016-09-30 18:23:27 -07:00
Linux Build Service Account
bc7b1189ea Merge "KEYS: potential uninitialized variable" 2016-09-30 18:23:26 -07:00
Syed Rameez Mustafa
84589336cd sched: Fix CPU selection when all online CPUs are isolated
After the introduction of "33c24b sched: add cpu isolation support"
select_fallback_rq() might sometimes be unable find any CPU to place
a task on. This happens when the all online CPUs are isolated and
the allow isolated flag is set to false. In such cases, we have
little choice but to use an isolated CPU and wait for core control
to eventually un-isolate one or more online CPUs.

Change-Id: Id8738bd8493c11731c5491efcc99eb90f051233e
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-09-30 17:25:51 -07:00
Walter Yang
872457b287 ASoC: wcd-mbhc: increase hs_vref to 1.6v for wcd9335 codec
Currently hs_vref is set to 1.5v and causes mic voltage
to go above 1.5v during audio playback at maximum volume.
Increase the threshold to 1.6v to avoid getting fake plug
removal.

CRs-Fixed: 1066750
Change-Id: I7e5788eda609821792718a276e6fe5fa97e68a4a
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-09-30 17:16:41 -07:00
Olav Haugan
62abf225df hrtimer: Ensure timer is not running before migrating
A timer might be running when we are trying to move the timer to another
CPU so ensure that we wait for the timer to finish before migrating.

Change-Id: I4c9ee39c715baebfbdb8a50476a475e38b092f70
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-09-30 17:04:11 -07:00
Siddartha Mohanadoss
03a962620b hwmon: qpnp-adc-common: Clamp voltage value
On VADC_HC peripheral the ADC code can extend beyond
0-0x4000 range if the input is below 0V or if the
offset and gain error needs to be calibrated out.
Clamp the values for cases where the code represents
the value below 0V.

Change-Id: I2ede3d86d812fbdf757395d92e08e70636e9965a
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-09-30 16:45:28 -07:00
Josh Kirsch
c01ffb6f77 ARM: dts: msm: add support for TDM
Add support for TDM on msmcobalt.
Time-division multiplexing (TDM) is a method of
transmitting data in the time domain. This can
be used to support data rates that exceed that of
the transmitted signal or to have up to 8 channel
support on a bus that normally supports less in
the frequency domain.

CRs-fixed: 1070764
Change-Id: Id3cabe07ee92a7c3546eab304f650d397b94f7de
Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
2016-09-30 14:00:46 -07:00
Sreelakshmi Gownipalli
35fa3e5dce diag: Do not wait for the intent availability indefinetly
While sending data to WDSP do not wait for the intent to be available
for ever so that diag is not blocked to send data to other peripherals.

Change-Id: I5e410ebabf4e8066abedda147879444a38b8871b
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
2016-09-30 13:23:00 -07:00
Josh Kirsch
45c40de8cb ASoC: msm: qdsp6v2: Remove 48khz constraint
Remove 48khz constraint for TDM use cases. This
change is needed to support more sampling rates for
TDM use cases.

CRs-fixed: 1073307
Change-Id: Ic42b2f9e7441ffb4e1bfe8211f85aadb72c22ed3
Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
2016-09-30 12:31:27 -07:00
Nicholas Troast
d430da6679 qpnp-fg-gen3: smb-lib: notify userspace when SOC changes
Currently the SOC in userspace is not being updated with the latest SOC
from the fuel gauge. Add power supply changed events when the delta SOC
interrupt fires, empty SOC interrupt fires, or when the charging status
changes to full.

Change-Id: I4bbf404639a97dcc443c9ecc8391623e2fff13fd
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-30 12:27:33 -07:00
Nicholas Troast
7885b7b062 ARM: dts: msm: enable FG cycle counting for PMICOBALT
The fuel gauge can count the number of times the battery has charged
across a particular SOC range. Enable it.

Change-Id: I5adc7c2fca73aad765062360cf560eae2eee7d1e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-30 12:27:33 -07:00
Nicholas Troast
c10ab2638c qpnp-fg-gen3: add support for bucket cycle counter
The SOC range is divided into buckets. Whenever the battery is charged
across a bucket we increment the counter for that bucket. These cycle
counters are exposed through the "cycle_counter" property, and buckets
are selected by modifying the "cycle_counter_id" property.

Change-Id: I923c657132d071eff4b5bc61c00fb90de8dde62c
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-30 12:27:32 -07:00
Nicholas Troast
4dcc8dbd38 smb-lib: notify userspace upon usb plugin interrupt
Currently userspace will be notified whenever the Type-C changed
interrupt fires. The charging status reflects whether or not the charger
has a valid input power source. The valid input power source status
follows vbus and not the Type-C changed logic, so in some cases the
charging status may not yet be updated when the userpace is notified
that the USB power supply has changed.

Send a USB power supply changed event when both the Type-C changed
interrupt fires, and the USB plugin interrupt fires.

Change-Id: I50cdd8c706b10f08dc7f322ea02358f3dbce521e
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-30 12:27:31 -07:00
Subbaraman Narayanamurthy
4f7f110863 of_batterydata: add snapshot of DT bindings documentation for batterydata
This DT bindings documentation snapshot is taken as of msm-3.18
'commit b428af643156 ("power: qpnp-fg: configure thermal coefficients based on battery type")'

While at it, change the name used in the documentation from
Qualcomm to Qualcomm Technologies, Inc.

CRs-Fixed: 1068593
Change-Id: Ib359e41b7381149a270a5772540bbc80f920919f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-09-30 12:25:52 -07:00
Deepak Katragadda
1d6bb9392a ARM: dts: msm: Remove clocks listed under GPU, PCIE, USB & MDSS GDSC nodes
The core and peripheral memory retention bits no longer need to
be set and cleared by the GDSC driver on MSMCOBALT. Instead, the
individual client drivers will use the clk_set_flags API as needed
to toggle these bits.

CRs-Fixed: 1069091
Change-Id: I898f627ce90251166a5f4314daca61e5ba958e6b
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-30 11:51:43 -07:00
Kuirong Wang
cbd3e0cb06 ASoC: msm: Update the error handling when APR sends packet failed
Update the error handling when APR sends packet failed so that audio
driver can perform proper error recovery.

CRs-Fixed: 1050605
Change-Id: I6210e244e6299ec747836f40d03e92c15c6e53ee
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-30 10:56:00 -07:00
Hareesh Gundu
ed1836956c msm: kgsl: Change GPU clock gating sequence for A4XX and A5XX
Disable SP clock before programming the clock gating control
registers and enable back SP clock.

CRs-Fixed: 1061048
Change-Id: Ic19a8a67fe0e192c9c7c3f855c7eb33901ca2adc
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-09-30 10:52:19 -07:00
Siddartha Mohanadoss
69bf754535 iio: rradc: Remove scaled support for battery thermistor
The battery thermistor values are not scaled to the
appropriate units from the ADC code on the round robin
ADC (RRADC) channel data registers. Remove support to
read the scaled results for this channel and expose
only reading the raw ADC code.

Change-Id: I6ff45d25f18063cbed70181b22ab0b07b4da4dc1
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-09-30 10:46:43 -07:00
Subbaraman Narayanamurthy
ff753ada17 power: qpnp-fg-gen3: fix SRAM encodings
There are some encoding changes to the following configurations
in pmi8998 SRAM. Update them.

For both v1.1 and v2.0,
- No sign bit for charge termination current

For v2.0,
- 6 bit encoding for empty voltage and vbatt_low

While at it, fix the SRAM byte location from byte 2 to byte 3 for
configuring empty voltage threshold in pmi8998v2.0.

CRs-Fixed: 1068592
Change-Id: I3a301aed1b23ab78aa86b24c11eb750502adab2f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-09-30 10:41:55 -07:00
Liam Mark
c156aa8e2a msm: secure_buffer: Add VMID_CP_CAMERA_PREVIEW
Add support for VMID_CP_CAMERA_PREVIEW

Change-Id: Ifacc1ff95262c6240283d19cf02dcac37933c141
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2016-09-30 10:25:26 -07:00
Lior David
14a5790885 wil6210: extract firmware version from file header
Currently the FW version is taken from the sw_version field
of the FW ready event. This version is based on internal
version control revision and it is difficult to map to actual
FW version.
Fix this by using the actual FW version stored in the FW file
header record.

Change-Id: I37ac0cf1845c96e6d9e0f8fffd6481e8c32efa50
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 13cd9f758a555d1ab547b0dbed3f9d1e529230c3
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1063261
Signed-off-by: Maya Erez <merez@codeaurora.org>
2016-09-30 08:07:57 -07:00
Hareesh Gundu
df7dd145f0 msm: kgsl: Fix dispatch_q NULL dereference
Add a NULL check for dispatch_q which will avoid
NULL pointer dereference in dispatcher_do_fault().

Change-Id: I429aa91f9c5fa92ce2e8b23cc4911454744f75c9
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-09-30 02:51:28 -07:00
Pavankumar Kondeti
e91d6ecf73 arm: topology: Allow specifying the CPU efficiency from device tree
The efficiency of a CPU can vary across SoCs depending on the cache size,
bus interconnect frequencies etc. Allow specifying this from the device
tree. This value overrides the default values hardcoded in the efficiency
table.

Change-Id: If2885675ce3d7b43c3b2568fe1e29a76f48a5c3d
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2016-09-30 12:29:19 +05:30
Srivatsa Vaddagiri
4ac03df1e1 arm: topology: Define arch_get_cpu_efficiency() API for scheduler
On a HMP system, scheduler needs to know efficiency factor
(instructions-per-cycle) for various cpus. This is so that scheduler
can estimate bandwidth consumption of tasks on each cpu, based on
their efficiency factor.

This patch defines arch_get_cpu_efficiency() API in ARM32 architecture.
It depends on hard-coded "efficiency" factor for various cpu types
(available in 'table_efficiency' data structure) and device-tree
providing information on cpu-type for every cpu.

Change-Id: I561bace8a813a35a9fc624fca4861c5b1109b69b
Signed-off-by: Srivatsa Vaddagiri <vatsa@codeaurora.org>
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2016-09-30 12:29:08 +05:30
Xiaojun Sang
20a18f9828 ASoC: soc: change audio cpe drivers to use %pK
Change cpe 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: I741d9e5c5b415011348e862c3f1ee4fe28c3969f
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2016-09-29 23:02:33 -07:00
Walter Yang
3653c5fdb5 ASoC: wcd934x: send TX/RX PGD register CFG to AFE
AFE requires TX/RX PGD register CFG info based on different wcd
codecs. Send this info when AFE configs are set at initialization.

Change-Id: I0da3d41fe8c1d03baacf2f2a9d2e141c9721981b
CRs-Fixed: 877188
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-09-29 22:16:30 -07:00
Nicholas Troast
3603cc87ba qpnp-smb2: add missing battery psy properties for healthd
healthd expects battery voltage, current, temperature, and technology from
the battery power supply. Add them.

Change-Id: I85f589030903ead938af2712875eb5daa81710d9
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-29 21:08:05 -07:00
Nicholas Troast
a3946ad93e qpnp-fg-gen3: add algorithm flags debugfs file
The fuel gauge has several algorithm flags which are useful for
debugging. Add a debugfs file called alg_flags to expose them.

Change-Id: Ibeeea88e2e0745e98e8bfdfa3e086263d82e7bac
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-29 21:08:05 -07:00