Commit graph

577981 commits

Author SHA1 Message Date
Nicholas Troast
04fe8da8a6 smb138x-charger: expose CHARGE_TYPE in parallel psy
CHARGE_TYPE provides information about what state the parallel charger is
in (pre, trickle, fast, full-on, taper). Expose it.

Change-Id: Ieee5a3acf5bbcd66ca1789a1011bd8c9461657ef
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-11-07 12:33:35 -08:00
Nicholas Troast
91345c328b smb-lib: add debug logging to parallel taper
Add debug logs to better debug issues regarding the parallel taper
algorithm.

Change-Id: I91805ebc2dcee6f2c5baa5c6d6a7856bd472c431
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-11-07 12:33:35 -08:00
Hemant Kumar
a9a60c58e0 usb: gadget: f_mtp: Increase default TX buffer size
Increasing buffer size from 16k to 1MB improves throughput
from 36MBps to 77MBps with 8 usb request buffers. Hence add
default TX buffer macro of 1MB size and try to allocate the
same.

Change-Id: Ifebf5cbe46e24ae019829db388550d47fd4a5ff4
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-07 12:30:05 -08:00
Harry Yang
da4cc80edb qcom-charger: Add batch register access support for CC2 removal
Provide a convient and compact way for a bunch of register
reads/saves and writes.

CRs-Fixed: 1079913
Change-Id: Ica6a60f3f5bd1fad624d01ea410e62dbed09dac8
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-11-07 12:09:12 -08:00
Harshdeep Dhatt
8a7ca4ded7 msm: kgsl: Ignore EAGAIN when programming perfcounter
When programming perfcounter via gpu commands, we may encounter
-EAGAIN because of cancelling rb events either due to soft reset
or when powering down the device. Ignore this error because we
have already set up the perfcounter in software and it will be
programmed in hardware by adreno_perfcounter_restore when gpu
comes back up.

CRs-Fixed: 1024199
Change-Id: I5dc3561d15fa50ac58646f96559cfd262020dda9
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-11-07 12:49:49 -07:00
Nicholas Troast
2dad6f26dc qpnp-smb2: fix reverse boost when input is removed
When any input is removed it is likely that reverse boost can happen.
Detect reverse boost by checking if the switcher-power-ok interrupt
triggers 3 times within 1 second. If detected then suspend all input.
Once VBUS falls the input can be resumed for the next insertion.

Change-Id: I3dbe4fe426111023b60eefd968c426be7d6057b9
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-11-07 11:37:08 -08:00
Bhalchandra Gajare
a26e74323e ASoC: wcd934x: fix MAD enable sequence for ADC2
Microphone Activity Detection (MAD) hardware block in codec needs to
be in micbias mode and bandgap must be enabled whenever the input
to the MAD block is from ADC2. Change updates the codec register
sequence for MAD Input mixer control accordingly.

CRs-Fixed: 1085214
Change-Id: Ic57b1db8688ff634ed7d62279baa7c042d126550
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-11-07 11:22:14 -08:00
Vidyakumar Athota
9a52c21164 ASoC: wcd934x: Fix AANC click and pop in voice call
Currently ANC output is connected to speaker path before PA
is enabled. This is causing click sound during voice call
when adaptive ANC is enabled. Fix this issue by connecting ANC
output to speaker path after PA is enabled.

Change-Id: I2103773a17e7d9ee5acb3f21dc955e2da493b3b4
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-11-07 11:11:37 -08:00
Sathish Ambley
2295550247 msm: ADSPRPC: Use secure session device while freeing memory
Make sure that the secure session device is used while freeing the
buffer that was allocated from secure memory.

Change-Id: I07802c21c661fe18fb2fda70980b04f646408d7d
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
2016-11-07 10:11:51 -08:00
Osvaldo Banuelos
120ff46702 ARM: dts: msm: Enable VDD_APC CPR aging for msmcobalt v2
Enable VDD_APC CPR aging for msmcobalt v2 and define a CPR
closed-loop and open-loop voltage margin reduction of 15 mV
for CPR local rev 3 parts and greater to account for this
feature being enabled.

CRs-Fixed: 1081084
Change-Id: I50a3ca4e09c6cd6edeb5c15478989e19926c6576
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-11-07 07:53:16 -08:00
Osvaldo Banuelos
da0db5ee22 ARM: dts: msm: update VDD_APC CPR settings for msmcobalt
Update the default CPR min/max step quotient,
count repeat, consecutive down, and aging RO scaling
factor values for VDD_APC0 and VDD_APC1 to match the latest
hardware guidelines.

CRs-Fixed: 1080409
Change-Id: Ibb35a3f475725af96276389f78abb790ea5b5b81
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-11-07 07:49:10 -08:00
Ashwanth Goli
94bdc46af7 defconfig: Enabling config INET_DIAG_DESTROY
Sockets that are opened before VPN is connected
are supposed to be destroyed once it is connected.
VPN related CTS testcases are failing without the
ability to destroy sockets. Enabling INET_DIAG_DESTROY
to fix these testcases.

Change-Id: Iad01cb10faa892897f180ad217b27a56c2da89b5
Signed-off-by: Ashwanth Goli <ashwanth@codeaurora.org>
2016-11-07 07:16:57 -08:00
Manoj Prabhu B
43cd01495d ARM: dts: msm: Enable memory allocation for diag on falcon
The new diag client requires additional memory from hlos.
This patch caters to diag memory requirement

CRs-Fixed: 1079523
Change-Id: Ie96470b93d879d2c175f18aef25f3e256cd0a322
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-11-07 19:50:20 +05:30
Manoj Prabhu B
670c302fbc ARM: dts: msm: Enable memory allocation for diag on cobalt
The new diag client requires additional memory from hlos. This
patch caters to diag memory requirement.

CRs-Fixed: 1079523
Change-Id: Ia291140cd815589caca0eec5ab280961891ba064
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-11-07 19:47:16 +05:30
Rohit Rangwani
efbf7c961b NFC: Detection of NQ chip set and firmware version
Changes made to detect NQ chipset and firmware
version

Change-Id: Ia9caa30b88eccb99dfebe9179bb61b8c2abb5de4
Signed-off-by: Rohit Rangwani <rrangwan@codeaurora.org>
2016-11-07 16:23:44 +05:30
Laxminath Kasam
6b3ed52a63 ASoC: msm: refactor machine driver for msmfalcon
Combine the common code of both external and internal
codec machine drivers. Provide config support for
independent compilation of internal and external
codecs.

CRs-Fixed: 1083537
Change-Id: Ia63f8baf02b0ceee0960e208b976d7b573c39d52
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-11-07 16:15:00 +05:30
Ashay Jaiswal
78bea34638 ARM: dts: msm: Add stub regulator devices for msmtriton
Add stub regulator devices for msmtriton because RPM regulator
support is not yet in place.

CRs-Fixed: 1086513
Change-Id: I40220bcf960a10d7d6271e09b9f85107ed0c24af
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-11-07 14:57:01 +05:30
Taniya Das
00a15f8275 defconfig: msm: Add support for GCC clocks
GCC clock controller is required to be enabled for all peripheral clocks
supported by global clock controller.

Change-Id: I11c6cc7f09b403a09bdf65a14f7b9d327c5d9613
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-07 14:54:00 +05:30
Wei Ding
f87c68c909 ARM: dts: msm: Add camera node for msmcobalt QVR board
Add rear, front and fish eye node for msmcobalt QVR board camera.
Add eeprom, actuator, flash node for msmcobalt QVR board camera.

Change-Id: Ie263acbb0dd9cab06b239e14526be13622bd282d
Signed-off-by: Wei Ding <weiding@codeaurora.org>
2016-11-07 01:09:26 -08:00
Taniya Das
cea92c6266 clk: qcom: gcc: Cleanup code for GCC clocks
The fmax & num_fmax have been updated to reflect the new variable names and
also fall back to branch clocks clock_ops for hardware branch clocks for
now until the new ops are available.

Change-Id: I8b86ebbabe37bb86bd20eafe9501c4677f21a553
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-11-07 14:37:42 +05:30
Hareesh Gundu
0f6ff69a01 msm: kgsl: Allow mempools to configure from the device tree
Add driver support to configure mempools from the device tree.
This will enable mempools to configure per device specific and
reduces the high kgsl memory usage based on configuration.

CRs-Fixed: 1064046
Change-Id: I0a7e36b7e1fef9d42a4c0fe33d69a4debf15af2f
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-11-07 13:04:21 +05:30
Gaurav Kohli
c56339c969 soc: qcom: pil: Using devm_ioremap for mapping restart reg of modem
GCC region has been mapped by regmap instead of devm_ioremap_resource.
So to map modem restart register which is part of gcc region requires
devm_ioremap otherwise mapping error occurs.

Change-Id: I1d97d8ef831e3a91df47eebf22e1156d0a3712ae
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-11-06 22:58:07 -08:00
Laxminath Kasam
adb1d031d0 ASoC: msm8x16-wcd: update mbhc config type
Update internal codec driver to use new
mbhc config structure.

CRs-Fixed: 1083537
Change-Id: I0ff5b7ba83f2fec89562337ec63e062b50abc589
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-11-07 11:55:54 +05:30
Laxminath Kasam
8452fff703 ASoC: msm: Add support for INTx ports and clocks
Add support for new DSP INTx MCLK, INTx IBIT CLK
and INTx MI2S ports. New internal codec and msm
based soundwire codec use these clocks and port_ids.

CRs-Fixed: 1083537
Change-Id: I72e0a15c8a283c68a3ed10cfd02a4e3d9526c312
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-11-07 11:54:50 +05:30
Neeraj Upadhyay
2d3f9b1ffd defconfig: msm: update msmfalcon defconfigs
Bring in updates from msmcortex defconfigs to msmfalcon's.

Change-Id: Iedbae0d4738c7badf3d4faf60f43e8c8bdab51e1
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-11-06 20:13:53 -08:00
Walter Yang
d0e976a886 ASoC: pcm: change capture_active to unsigned int
In combo usecase there are 2 front-end dai's with
same codec dai, for example, multi-phrase ADSP SVA detection.
Using a single bit as the counter causes the counter to roll
over to 0 during combo usecase.
To resolve this, change counter to unsigned int from single bit.

CRs-Fixed: 1086127
Change-Id: I2dd07bd967b7d4fb4878b6d65bd0f011c6b15bdd
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-11-07 11:32:05 +08:00
Linux Build Service Account
85d7e134cc Merge "msm: kgsl: Fix potential device NULL pointer dereferences" 2016-11-05 07:35:31 -07:00
Linux Build Service Account
2b28b1372c Merge "ARM: dts: msm: update ICNSS DT node for msmcobalt interposer" 2016-11-05 07:35:29 -07:00
Linux Build Service Account
ef1311a1e8 Merge "ARM: dts: msm: update bus bandwidth vote for msmcobalt ufs" 2016-11-04 22:22:10 -07:00
Linux Build Service Account
6d25dab1ba Merge "sched: prevent race between disable window statistics and task grouping" 2016-11-04 22:22:09 -07:00
Linux Build Service Account
3bc988427d Merge "regulator: cprh-kbss-regulator: update temp sensor ID for msmcobalt" 2016-11-04 22:22:08 -07:00
Linux Build Service Account
9d601a126f Merge "ARM: dts: msm: Add ADC nodes for pmfalcon" 2016-11-04 22:22:08 -07:00
Linux Build Service Account
f2fedb98bd Merge "diag: Fix race condition while closing SMD" 2016-11-04 22:22:06 -07:00
Linux Build Service Account
115a8ef46d Merge "diag: Add mutex protection while closing SMD" 2016-11-04 22:22:06 -07:00
Linux Build Service Account
9454b9f32d Merge "msm: ext_display: update hpd and notify logic" 2016-11-04 22:22:02 -07:00
Linux Build Service Account
68afff6f34 Merge "ASoC: msmcobalt: Update ignore suspend for MAD_CPE out widgets" 2016-11-04 22:22:01 -07:00
Linux Build Service Account
8e9e0fd780 Merge "Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4" 2016-11-04 22:22:00 -07:00
Hareesh Gundu
71963395a5 msm: kgsl: Fix potential device NULL pointer dereferences
Ensure that device pointer isn't NULL before using it in
kgsl_snapshot_save_frozen_objs().

Change-Id: I676dfa5567b1d09427e3e7691045fabc71b53d43
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-11-04 21:46:22 -07:00
Karthikeyan Periasamy
0e5ae23063 Revert "defconfig: msm64: msm: Compile vidc driver as LKM"
Video kernel modules as LKM make the T32 debugging difficult.
So, We revert the change and make video drivers as part of boot image.

CRs-Fixed: 1086328
Change-Id: Icd8aa9f935eb0096d1e13934ea556c74d7341093
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
2016-11-04 18:29:05 -07:00
Zhen Kong
420d51e073 qseecom: remove entry from qseecom_registered_app_list
In an error handling case, the QSEECOM_IOCTL_LOAD_APP_REQ ioctl
freed the entry for new TA, but didn't removed it from
qseecom_registered_app_list. Make change to remove it.

Change-Id: Id681fbf3c923027d3db875d506cbe3f971919a8d
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-11-04 17:45:05 -07:00
Joonwoo Park
dfb9634d03 sched: prevent race between disable window statistics and task grouping
Change of colocation group requires to finish CPU busy time accounting
prior to its operation by calling update_task_ravg().  However when
window statistics accounting is disabled, update_task_ravg() acts as
nop and results in incorrect CPU time accounting.

Disallow colocation group change while window statistics accounting is
disabled in order to prevent race between reset_all_window_stats() and
colocation grouping functions.

Change-Id: I6dfa20b8d8b0ae7ccc94119bf9cf14c5e11a1cf7
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-11-04 17:25:30 -07:00
Venkat Gopalakrishnan
359e6bb764 ARM: dts: msm: update bus bandwidth vote for msmcobalt ufs
The bandwidth vote determines the bus throughput needed for a
given running UFS gear frequency. For high throughput use cases
the current interface speed based votes may not be sufficient to
achieve peak user level throughput, as it doesn't count for other
system level latencies in the data path. Hence vote higher but
making sure the system stays in nominal voltage corner.

Change-Id: I95cda7e33288df7099826b37c2f436c5a33792e8
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-04 15:13:10 -07:00
Siena Richard
633c754750 ASoC: wcd9xxx: clean up bootup errors
Fix errors shown during bootup to ensure robustness and enable
cleaner bootup process.

Change-Id: Ic6671aede0742f46e8573340a497e9f19773e5d8
CRs-fixed: 1073250
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-11-04 13:58:31 -07:00
Siena Richard
94c9d333eb ASoC: Change info logs to debug
Change ASoC info logs to debug to reduce excessive logging during
bootup.

Change-Id: I142b35901e8ba7724d3ba74ae8c58be3bc8dc44a
CRs-fixed: 1073250
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-11-04 13:40:34 -07:00
Skylar Chang
388eea86fe msm: ipa: fix division by 0 for DMA pipes
For DMA pipes, bufer size is 0. This commit fixes a
division by 0 in kernel when connecting DMA pipes.

Change-Id: I11551594e5115e71aa116cc7238953205a4118c3
CRs-Fixed: 1085266
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-11-04 13:27:42 -07:00
Phani Kumar Uppalapati
492e06c8a0 ASoC: wcd934x: Change SIDO reference to internal
Add support to change SIDO reference to internal mode
during rock bottom sleep mode.

CRs-Fixed: 1080507
Change-Id: I8d70ad663f3476e1c81cc2126b1229a3c7c80265
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-11-04 12:42:19 -07:00
Venkat Gopalakrishnan
70399030d0 scsi: ufs: enable auto hibern8 only after device initialization
Make sure auto hibern8 is enabled only after both host controller
and device initialization is complete. Enabling it before device
initialization could cause issues as the device might not be ready
to handle hibern8 enter/exit before initialization.

Change-Id: Ia3fb69dca00654dacd8d1faae34715e40e097480
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-04 12:36:55 -07:00
Venkat Gopalakrishnan
b1af46cf1a scsi: ufs: fix sleep in atomic context
Make sure spin lock is released before calling print host regs,
as that call sleeps while dumping lots of registers.

Change-Id: I171c91e700c24ecc213ccda705bbe6188d22a43a
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-04 12:27:07 -07:00
Osvaldo Banuelos
8d3c29c07c ARM: dts: msm: update VDD_GFX CPR settings for msmcobalt v2
Update VDD_GFX CPR voltage ceiling, open-loop and closed-loop
adjustments, and the CPR fused closed-loop adjustment voltage map
for msmcobalt v2 to match the latest hardware characterization.

CRs-Fixed: 1080409
Change-Id: I0c9a921b684109f5c6e719eb1fb58667377f2c89
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-11-04 10:51:44 -07:00
Venkat Gopalakrishnan
cd88f39695 phy: qcom-ufs: update ufs phy 1-lane settings
The post silicon validated settings for phy-qcom-ufs-qmp-v3
applies only to the latest 2-lane phy version, revert the changes
and keep the original settings for 1-lane phy version.

Change-Id: Icb04f6175b66fa46405e77d10fddf06b0051ee5f
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-11-04 10:48:45 -07:00