Commit graph

575378 commits

Author SHA1 Message Date
Linux Build Service Account
d225a2103b Merge "ARM: dts: msm: add sound support for msmcobalt skuk" 2016-09-23 20:19:02 -07:00
Linux Build Service Account
404a6deb48 Merge "msm: mdss: consider ib to commit the bw vote for mdp" 2016-09-23 20:19:01 -07:00
Linux Build Service Account
df02701d1f Merge "ARM: dts: msm: update PCIe reset clks for MSM8996 and msmcobalt" 2016-09-23 20:19:00 -07:00
Siddartha Mohanadoss
32efa3cf2b ARM: dts: msm: Update TSENS sensor ID for MSMCOBALT
Update total number of temperature sensors (TSENS)
supported on controller 0. Remove support to read from
TSENS sensor 5 and 6.

Change-Id: I63e2a0a29f6bbe787fa10170c28569cf692d2807
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-09-23 16:48:53 -07:00
Siddartha Mohanadoss
389d449ffe thermal: tsens: Update sensor ID index
tsens_get_hw_id_mapping() API is used by thermal
client to obtain the logical ID or HW ID mapping
for the available temperature sensors (TSENS)
controller with sensor ID details. Clients
currently query the driver on a per sensor basis.
The API update allows the clients to get the sensor
ID information at once for the available number
of sensors.

Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
Change-Id: Ibae066276b099ffb78c72a890a689f83e4df56a9
2016-09-23 16:48:53 -07:00
Girish Mahadevan
edcda53907 serial: msm_serial_hs: Change the wakeup interrupt enable sequence
The wakeup variable keeps track of the 2 edge interrupts needed to detect
wakeup from deep sleep, when the second edge interrupt is detected the
wake byte is injected into the tty buffer.
On some boards due to noisy GPIO pins an interrupt is detected as soon as
the wakeup irq is enabled and before the variable is reset leading to
bogus wakeup bytes being injected into the serial buffer.
To protect against this, make sure the wakeup interrupt is enabled after
all the state variables are reset to protect against spurious wakeups.

Change-Id: I8002a67d8d9cb41709049ff34f35717f3dd0acd0
Acked-by: Yijiang Yuan <yijiangy@qti.qualcomm.com>
Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
2016-09-23 16:42:38 -07:00
Kuirong Wang
6ec8311450 ASoC: msmcobalt: add support for MI2S and AUX PCM
Add support for audio over MI2S and AUX PCM interfaces
so that applications have flexibility to select MI2S/AUX
PCM interfaces in addition to Slimbus.

CRs-Fixed: 1047362 1047365
Change-Id: I48e6680b026391d8e77bbdcba4fb59ed90b13581
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-23 16:41:41 -07:00
Mayank Rana
1ed274d00a usb: gadget: f_cdev: Avoid potential NULL pointer dereference
Fix possible NULL pointer dereference issue as strrchr() API can
return NULL if there is no port_num found as part of passed string.

Change-Id: I410e58361282f175e46b68cbfaf4824e386454f8
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-23 11:40:37 -07:00
Sudheer Papothi
85a1f2a812 ASoC: wsa881x: Update device state during device probe
Device state is updated incorrectly during codec probe when
the wsa881x soundwire slave device is in suspend state, resulting
in register read/write failures. Update the device state during
device probe instead of codec probe.

Change-Id: I46afe2a08495c2ed06806b0568b1c44a6ffd947f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-09-23 11:11:25 -07:00
Nicholas Troast
654b1238ef qpnp-smb2: support batteryless platforms
Currently a device without a battery will shutdown soon after boot since
the SOC will be 0. Add a DT property called "qcom,batteryless-platform"
which indicates that the device does not have a battery. If this
property is set then charging will be disabled, and all of the necessary
battery parameters will be faked to ensure normal operation.

Change-Id: I6943b7f5565ad95eddb9e3d30de5efbc47106e3d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-23 09:10:09 -07:00
Harshdeep Dhatt
da71b33976 msm: kgsl: Disable rbbm countable on a540
The RBBM_ALWAYS_COUNT countable does not function properly
when top level clock gating is enabled. Return -EINVAL
when user requests this perfcounter.

CRs-Fixed: 1038778
Change-Id: I48d560ab2caa6ea467ac56bf0d323937a475cdde
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-09-23 10:08:21 -06:00
Dhoat Harpal
3cc9716866 soc: qcom: glink: Fix uninitialzed return value.
Initialize the return value in the glink tx scheduler
function.

CRs-Fixed: 1067981
Change-Id: I3f78196927501f582c36d5815096581185d797b4
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-23 18:29:06 +05:30
Dhoat Harpal
d8bd6804d3 soc: qcom: glink_ssr: Fix uninitialized variable
Initialize ss_info_leaf variable in glink_ssr_probe.

CRs-Fixed: 1067981
Change-Id: I82b08ff548a9abb0538a0ba24f699a99547ec7b7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-23 17:00:37 +05:30
Charan Teja Reddy
1f4e80a7d2 ARM: dts: msm: add initial memory map for msmtriton
Add carve-outs, firmware regions and other cma areas as part of initial
memory map configuration for msmtriton.

Change-Id: If3f17a913aac8fb5959c919ae28973544e33444a
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2016-09-23 04:18:55 -07:00
ansharma
aba9ed2d3e leds: qpnp-flash-v2: Fix compilation issue for 32-bit kernel
Use div64_s64() instead of direct division required for 32-bit kernel
compilation.

CRs-Fixed: 1070141
Change-Id: I9f58a411c2a923c07fd27ab9dc5ac244e4b13a44
Signed-off-by: ansharma <ansharma@codeaurora.org>
2016-09-23 16:12:21 +05:30
Ashay Jaiswal
16d5da42a0 ARM: dts: msm: update regulator name for msmfalcon
Update regulator name and phandle for msmfalcon.
While at it, add buck-boost regulator.

CRs-Fixed: 1070486
Change-Id: Ia3c1beed20590e4135d58ad235ff861d47db5882
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-09-23 15:34:55 +05:30
Charan Teja Reddy
7d10527276 ARM: dts: msm: update the memory map details for msmfalcon
Update the initial memory map details for the carveout memory regions
for msmfalcon.

Change-Id: I81b7992aa1117590400050c2da7dc7c9e3903572
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2016-09-23 02:45:18 -07:00
Mahesh Sivasubramanian
95725d4dc6 drivers: cpuidle: lpm-levels: Fix wakeup time for suspend
During suspend, where there isn't a explicit timer requirement, suspend
driver adds a ~0ULL value to current timer value and passes it on to RPM as
the wakeup timer. However, RPM doesn't handle overflow of timer wakeups,
which could indicate that the master is requesting a wakeup in the past
and causes a crash.

Adding 1 to current wakeup times, sets the wakeup time to 0 for suspend
usecases. MPM maps a 0 wakeup time to ~0ULL which would be handled
correctly on the RPM side.

Change-Id: Ida24c83eb2f1ae94ad7168b6065db69da35c3ec9
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
Signed-off-by: Girish S Ghongdemath <girishsg@codeaurora.org>
2016-09-23 00:23:29 -07:00
Shantanu Jain
43d81f370d input: touchscreen: Convert Goodix driver to dev_pm_ops
Convert Goodix driver to dev_pm_ops.
Add return type and parameters for suspend/resume for
Goodix driver.

Change-Id: I5243d9ab801f6964e675ad37c2161beda3586dfe
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-22 22:25:05 -07:00
Shantanu Jain
18850432fd input: touchscreen: Change late_init call to module_init
Change late_initcall usage in goodix driver to module_init.

Change-Id: I59681138448584fc7a04c95dc8af3d4c3d395ff0
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-22 22:24:58 -07:00
Runmin Wang
08bc9d3d60 drivers: GICv3: remove the rtb logs of gic_poke_irq
gic_poke_irq creates lots of RTB logging. Update the API to call
the no log version of write_relax.

CRs-Fixed: 1070282
Change-Id: I6924bc24fafb1685a2a157656281e7d36223257e
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-09-22 17:00:50 -07:00
Patrick Fay
54f6e4ae87 perf: Enable updating exclude_idle events at idle
Commit 573979dee2 ("perf: Add support for exclude_idle attribute")
does a register_idle_notifier call so that exclude_idle events
are updated when a CPU goes idle. This commit fixes a bug which
causes unregister_idle_notifier to be erroneously called.

Change-Id: I13dbd369c0ce137e884c156360c514df92746e39
Signed-off-by: Patrick Fay <pfay@codeaurora.org>
2016-09-22 16:48:21 -07:00
Siddhartha Agrawal
cdf62c6db2 Revert "ARM: dts: msm: configure CX voltage levels from MDSS for msmcobalt"
This reverts 'commit 0754aea0fd ("ARM: dts: msm: configure CX voltage
levels from MDSS for msmcobalt")'.

Correctly indicating to the RPM driver when to turn off the MMSS
GDSC. 'commit f1b5dbb743b3 ("msm: mdss: control when MMSS
GDSC gets turned off")' is the correct fix for this issue.

Crs-Fixed: 1068650
Change-Id: I7eae1fbad8467e36c1a216d1ea719c6e3ed9e586
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
2016-09-22 16:29:10 -07:00
Siddhartha Agrawal
6883756a33 msm: mdss: control when MMSS GDSC gets turned off
RPM has no way to know if they have to disable the MMSS gdsc
during idle power collapse or if its a full suspend.
Setting up the RPM RAM msg to 1 going into idle power collapse
and setting it to 0 while going to full suspend.
All these states mentioned are from a display point of
view.

Crs-Fixed: 1068650
Change-Id: I0ed47e89f6a4dd332ff28e8a1203ae3bfe44e7fa
Signed-off-by: Siddhartha Agrawal <agrawals@codeaurora.org>
2016-09-22 16:20:39 -07:00
Siddartha Mohanadoss
e1424860a5 thermal: adc_tm: Initialize ADC parameters
Initialize ADC parameters for decimation rate and
LDO enable. Common ADC decimation settings is
used across the battery thermistor threshold
channels.

Change-Id: I99ce1e5940506a5e65debfe822460c210a276b00
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-09-22 11:30:54 -07:00
Xiaojun Sang
17d98dbde1 ASoC: wcd: add null check before pointer dereference
Slimbus device pointer may be null, which may lead to
null pointer dereference.

CRs-Fixed: 1054973
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Change-Id: Ica22ee19f281fa0cff7d629f396c41c935692c59
2016-09-23 00:06:45 +08:00
Oleg Perelet
1585c95aef msm: kgsl: Add memory and periphery clock control for A540
Call clk_set_flag() to turn off both memory core and periphery for
bimc_gfx_clk clock and memory for gfx_3d.

CRs-Fixed: 1046649
Change-Id: I941f91eeba01f4e7aa5427056bc57875e7edf197
Signed-off-by: Oleg Perelet <operelet@codeaurora.org>
2016-09-22 08:56:45 -07:00
Dhoat Harpal
2d5ea418dc ARM: dts: msm: Fix smem rpm xprt entry for msmfalcon
Smem rpm entry's node address doesn't match reg value inside that node.

Updated address of smem rpm entry.

CRs-Fixed: 1069380
Change-Id: Ic332f87666e405edbf3511671828ba824af1f3a2
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-22 18:36:38 +05:30
Shantanu Jain
3f4d270af7 input: touchscreen: Replace kernel thread with a workqueue
Replace the firmware update kernel thread with a workqueue.
Now the firmware upgrade procedure can be called later in
future time without blocking the registration of the
touchscreen driver. Using a kernel thread is an overhead in
the current driver as it is a one shot thread.

Change-Id: I0d4731148351652092fe7feede0b44828939d98b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-22 16:38:00 +05:30
Manu Gautam
d0bdc926c4 USB: gadget: f_fs: Use %zu when printing size_t
Using %lu for size_t gives compilation error on 32bit system.
Replace this with %zu which should be used to print size_t on
both 32bit and 64bit machines.

Change-Id: Id8a42dec3e081187054cb2353ba3473bae9dd547
CRs-fixed: 1069970
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2016-09-22 16:34:27 +05:30
Dhoat Harpal
8fd9a2e055 ARM: dts: msm: Add SMP2P entries for MSMTRITON
Add the SMP2P entries to facilitate SMP2P interprocessor communication.

CRs-Fixed: 1066695
Change-Id: I11e71639291479d544849d0f8672b9384fa34d0a
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-22 12:13:16 +05:30
Dhoat Harpal
d8db7e7b30 ARM: dts: msm: Add IPC Router devices for MSMTRITON
The IPC router devices define the topology for high-level interprocessor
communication within the SoC.

CRs-Fixed: 1066695
Change-Id: I276db2a07870864fca046627a615a30bc4e3936e
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-22 11:34:20 +05:30
Dhoat Harpal
926c61a6db ARM: dts: msm: Add G-Link SSR entries for MSMTRITON
SSR entries contain the list of subsystems to notify when a SSR for a
given subsystem occurs. This information enables G-Link to handle
closing and re-opening channels in the case of SSR.

CRs-Fixed: 1066695
Change-Id: I53657de1a41e727b29793f02c7f2c1a43db1c96c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-22 11:31:59 +05:30
Dhoat Harpal
2940e9ef92 ARM: dts: msm: Add glink_pkt devices for MSMTRITON
Add the Glink_pkt devices to expose access to certain SMD resources to
userspace clients.

CRs-Fixed: 1066695
Change-Id: I82e992df1bfa1113843a0772ca8b88e48050dd8d
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-22 11:30:24 +05:30
Dhoat Harpal
dff53e0ba3 ARM: dts: msm: Add G-Link SMEM Transport entries for MSMTRITON
These entries allow the G-Link SMEM Transport to function, which allows
G-Link to use shared memory as an underlying physical transport.

CRs-Fixed: 1066695
Change-Id: I1e59ec8028e128a764d3a79d446b5e8d650937b1
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-22 11:27:07 +05:30
Dhoat Harpal
f5afa81169 ARM: dts: msm: Add SMEM entry for MSMTRITON
Add the SMEM entry to enable the use of the shared memory by
different processors in the SoC.

CRs-Fixed: 1066695
Change-Id: I6ee171881943d8ab77445ede1c6ee714ed171d4d
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-22 11:20:15 +05:30
David Collins
6a53448a24 ARM: dts: msm: modify VDD_GFX CPR voltage adjustments for msmcobalt v2
Update the VDD_GFX CPR open-loop and closed-loop voltage
adjustments for MSMCOBALT v2 parts in order to match the
most recent guidelines from hardware characterizations.

Change-Id: I2b0a8e5353c9bce25c965a8b6ead7494454466c9
CRs-Fixed: 1068464
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-09-21 17:42:44 -07:00
Kuirong Wang
e079354544 ASoC: msm: add tertiary and quaternary audio PCM support
Add support for tertiary and quaternary audio PCM interface
to msm platform.

Change-Id: I985200bbff55583ac09bf7444ecbc5cf6ab7eb41
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-21 17:29:16 -07:00
Dinesh K Garg
9f18e779e6 msm: mink: Accept zero args for invoke command
Currently, INVOKE IOCTL assumes presence of atleast one arg. This
assumption is not correct. Hence, adding support for zero args in
INVOKE IOCTL.

Change-Id: Ib44789559c69e5808ed362cf9191486c93b2b66e
Signed-off-by: Dinesh K Garg <dineshg@codeaurora.org>
2016-09-21 16:57:17 -07:00
Joonwoo Park
cc60f0790f sched: constrain HMP scheduler tunable range with in better way
HMP scheduler tunables can be constrained via extra1 and extra2 of
ctl_table.  Having valid range in the sysctl table gives clearer
view of tunable's range.

Also add range for sched_select_prev_cpu_us so we can avoid invalid
value configuration of that tunable.

CRs-fixed: 1056910
Change-Id: I09fcc019133f4d37b7be3287da8e0733e40fc0ac
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
2016-09-21 16:50:42 -07:00
Ingrid Gallardo
6863de8622 msm: mdss: fix truncation of 64 bit for clk rate
Pixel clock can have a 64 bits value; this
value is truncated in some parts of the
driver where it is handled as a 32 bits value.
This change corrects the driver to make sure we
always handle the pixel clock as a 64 bits.

Change-Id: Ia97cb849ac7ce08a5c387eb11b1b01aad36244a0
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-09-21 16:25:45 -07:00
Peter Chen
19e19a1710 usb: gadget: composite: fix dereference after null check coverify warning
cdev->config is checked for null pointer at above code, so cdev->config
might be null, fix it by adding null pointer check.

Change-Id: Ie919a2a886924f1b1e01415bfdaa53f74046f5b0
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Git-commit: c526c62d565ea5a5bba9433f28756079734f430d
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-09-21 14:51:35 -07:00
Raju P.L.S.S.S.N
c263667eb7 ARM: dts: msm: Add rpm-smd node for msmfalcon
Add rpm-smd node for communication with RPM subsystem over glink.

Change-Id: I95fb375500c649f3e986f0cde5a3ce6fa8ad27ad
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2016-09-21 23:04:02 +05:30
Siddartha Mohanadoss
42d4a124b2 thermal: tsens: Update readl call in msm_tsens_get_temp()
Update TSENS register read API call in msm_tsens_get_temp()
to no log variant to reduce the log for reads in MSM
register trace buffer (RTB). Clients can access the driver
log to check the TSENS temperature read in a circular buffer
along with associated timestamp.

Change-Id: I0e21c5966e0072eab826c92fc332c54e11cb0b23
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-09-21 10:20:02 -07:00
Kuirong Wang
b105c4f9de ASoC: msm: update to align afe memory mapping as multiple of 4KB
It is required the buffer size to ADSP are multiple of 4kB. Update
the buffer size to be 4kB alignment before passing to ADSP.

CRs-Fixed: 1040066

Change-Id: I34f1b611000f5d9e4ae4c13a89b8571faa0f3393
Signed-off-by: Kuirong Wang <kuirongw@codeaurora.org>
2016-09-21 10:13:21 -07:00
Mayank Rana
1fdef7ce53 dwc3: core: clear DELAYP1TRANS with USB3PIPECTL register
Commit fd115e68971b ("dwc3: core: Don't perform controller and PHYs
soft reset") removed clearing DELAYP1TRANS. It is recommended to clear
DELAYP1TRANS bit with USB3PIPECTL register which controls USB
controller allowing USB QMP PHY low power transitions.

Change-Id: I54ba694f4c997bf5ecc540cee274e2cb07b77446
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-21 09:12:06 -07:00
Arun Kumar Neelakantam
e7430944b9 net: ipc_router: fix NULL pointer de-reference issue
Fail cases of accept() system call on AF_MSM_IPC socket family causes
NULL pointer de-reference of sock structure variable in release operation.

Validate the sock structure pointer before using it in release operation.

CRs-Fixed: 1068888
Change-Id: I5637e52be59ea9504ea6ae317394bef0c28c7865
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2016-09-21 19:06:28 +05:30
Dhoat Harpal
9b0e643837 ARM: dts: msm: Add ipc-spinlock entry for MSMTRITON
Add the ipc-spinlock entry to facilitate locking between apps and
non-apps processors.

CRs-Fixed: 1066695
Change-Id: I1aaeec4eea40fedbadf8b6008233dbd6ce5b3312
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-09-21 17:19:14 +05:30
Laxminath Kasam
180be8b7db soundwire: Add support for usecases without compander
Some of the usecases without compander and with
smart boost, VI sense are added in soundwire controller
driver.

Change-Id: Ia380ee6ad4584c29feb80fdc3b9247dd11e64a3e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-09-21 02:49:13 -07:00
Sarada Prasanna Garnayak
4d16293739 cnss: Add new case in cnss runtime PM request feature
The cnss platform driver provides wrapper API to
use the kernel runtime PM APIs in wlan host driver
for runtime power management operation.

Add flag for pm_runtime_get_noresume() API.

CRs-Fixed: 1068920
Change-Id: I36d278bf1837b2a18f74ff52b9be9b7e5a165857
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-09-21 02:37:02 -07:00