Commit graph

575729 commits

Author SHA1 Message Date
Linux Build Service Account
4fbca7b158 Merge "usb: gadget: gsi: Set NUM_OF_TRB as 15 for IN and OUT GSI endpoints" 2016-09-23 20:19:08 -07:00
Linux Build Service Account
00193d2edf Merge "dwc3: core: clear DELAYP1TRANS with USB3PIPECTL register" 2016-09-23 20:19:07 -07:00
Linux Build Service Account
8da923f7e0 Merge "usb: phy: qusb: Reset clock mux to avoid leakage on vdd rail" 2016-09-23 20:19:06 -07:00
Linux Build Service Account
5038545dd9 Merge "soc: qcom: ssr: Return from acknowledgment wait if modem is crashed" 2016-09-23 20:19:06 -07:00
Linux Build Service Account
6ae0998ab6 Merge "usb: gadget: composite: fix dereference after null check coverify warning" 2016-09-23 20:19:04 -07:00
Linux Build Service Account
baa3d606ab Merge "msm: sde: Add pre/post power event handler in SDE rotator" 2016-09-23 20:19:03 -07:00
Linux Build Service Account
25d60ce52e Merge "usb: gadget: Enable L1 suspend by default" 2016-09-23 20:19:03 -07:00
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
Veera Sundaram Sankaran
65320067b4 msm: mdss: increase SMMU mapping range for all context banks
Currently, due to the optimizations made in SMMU with the use of
lazy map/unmap, mapped address would be totally released only when
the buffer is freed and not during the last unmap. So, if app buffers
ends up holding 1G memory due to any reason, it would result in
mapping issues in driver as SMMU still holds reference for all the
1G buffers though it was unmapped from MDP perspective. Increase the
SMMU mapping range to avoid such cases.

Change-Id: I6c28e0fe752fba3f4674b6b5ba454fce5b6e7665
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-09-23 18:14:06 -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
Saurabh Kothawade
a7cf384bd7 msm: vidc: Disable power collapse for HFR
Venus might not have enough time during batches to power
collapse. Hence, disable optimization that power
collapses venus after every EBD and FBD in batchmode.

CRs-Fixed: 1067014
Change-Id: I9461c81587496e230b04e1bbd5bcc306a222c03c
Signed-off-by: Saurabh Kothawade <skothawa@codeaurora.org>
2016-09-23 16:46:38 -07:00
Ingrid Gallardo
3829ba593d msm: mdss: add sysfs node to disable panel
For power measurements, it is needed to disable
the panel in order to determine the delta
between the consumption with and without
the panel and it's dependencies.
This change adds a sysfs note to disable
the panel and dependencies without disturbing
any of the dsi/mdp configurations.

CRs-Fixed: 878591
Change-Id: I57c1f49aa57f645cb96714edd2f297fa06187c03
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-09-23 16:43:21 -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
Mitchel Humpherys
baa432900b arm64: dma-mapping: Remove unused dma_map_ops
The iommu_coherent_ops variable is not needed and is never used.  Remove
it.

Change-Id: Ib026ec24520905cbcbb41b31b4bfa141cf87f37b
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-09-23 12:42:49 -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
Mayank Rana
40ea40878a usb: gadget: f_cdev: Remove func_name and port_num attributes
func_name and port_num attributes related information is already
available as part of created driver instance name itself. These
attributes don't give any valuable information. Hence remove both
attributes and related functionality. Add check against length of
func_name.

CRs-Fixed: 1069476
Change-Id: Ibfc050cda62cfc7e5838949ae833a9d7c0a59303
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-23 11:38:55 -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
Sriharsha Allenki
bbe3b195c9 ARM: dts: msm: Add Temperature sensor support for msmtriton
Temperature Sensor (TSENS) provides an interface to
clients to read the on die temperature from supported
sensors. Add Temperature sensor support for msmtriton.

Change-Id: I08506b8a2327a81609e5d4d8d586024d566864eb
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2016-09-23 15:32:56 +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
Sriharsha Allenki
cb0d99c23f thermal: tsens: Enable TSENS for msmtriton
Temperature sensor (TSENS) driver provides ability to
thermal clients to read from on-die temperature sensors.
msmtriton supports reading from 12 on-die temperature
sensors and clients can set temperature thresholds and
receive notification.

Change-Id: Ia296ff112456f8959a2c769ab1e7afbccec23ba1
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2016-09-23 15:00:21 +05:30
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
Senthil Kumar Rajagopal
572d126c2d msm: camera: isp: Fix for sleeping function call inside spinlock
The request and release streams for VFE's are driven sequentially,
remove explicit synchronization using spinlock.

CRs-Fixed: 1065689
Change-Id: If040c86e7661b107f862caba1cd990e71de10b00
Signed-off-by: Senthil Kumar Rajagopal <skrajago@codeaurora.org>
2016-09-23 00:18:43 -07:00
Weiyin Jiang
3a1b20f595 ASoC: msm: limit audiosphere driver logics to legacy soc
Since GEF was introduced, effect control function is moved to user land
and driver related logics are not needed anymore. Adding a config to
limit audiosphere related functions to legacy platforms only.

CRs-Fixed: 1067706
Change-Id: I1d860a1ecf930e09988fa116add8518bfb3abc25
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
2016-09-22 23:27:19 -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
Shubhraprakash Das
cb4d23d637 msm: camera: isp: Vote ahb clock to nominal.
Vote for ahb clock to nominal if the vfe clock is nominal
or higher.

Change-Id: I3f154dffefb5b834a166e4dca520d5fc53ad7133
CRs-Fixed: 1066421
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-22 17:41:59 -07:00
Shubhraprakash Das
8401b47ce5 msm: camera: isp: Fix bandwidth voting
Add minimum vote to be added to the bandwidth vote for
cobalt. Also, use the vfe clock rate when deciding the
bandwidth for both rdi as well as pix stream.

CRs-Fixed: 1065389
Change-Id: Ic142026e8963830cda5c2d607e6e96f66c39d1bb
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-22 17:41:53 -07:00
Shubhraprakash Das
e1e955199d msm: camera: isp: Clock changes for isp and ispif
Add the mmssnoc_axi clock for isp and ispif nodes and
remove mnoc_maxi clock.

Change-Id: I01f3f726c484a929db3a1d8dff6f31806beb8dc3
CRs-Fixed: 1050172
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-22 17:41:48 -07:00
Shubhraprakash Das
e268f6315e msm: camera: isp: Print overflow information
When overflow interrupts is generated print the overflow mask
and the bus error to help debug.

CRs-Fixed: 1066392
Change-Id: If550b500f7f0b21b134b424c39ebb6bc4a5a40d5
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-09-22 17:41:42 -07:00
Kyle Yan
01ee295a4a lib: spinlock: Change MSM_WATCHDOG_V2 to QCOM_WATCHDOG_V2
Change DEBUG_SPINLOCK_BITE_ON_BUG to depend on QCOM_WATCHDOG_V2 instead
of MSM_WATCHDOG_V2 as MSM_WATCHDOG_V2 is no longer used.

CRs-Fixed: 1070295
Change-Id: I549abf9978a19da5bbd258d803287464cd73f23c
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
2016-09-22 17:32:41 -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
Deepak Katragadda
2c68907569 clk: msm: clock-mmss-cobalt: Update FMAXes for camera clocks on MSMCOBALT
Update the FMAXes for camera clocks on MSMCOBALT v2 to match
the SW frequency plan.

CRs-Fixed: 1070162
Change-Id: I72af0d68ce2f7b57300966206b5861916620a79c
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-22 13:33:20 -07:00
Mayank Rana
f1288259bf usb: gadget: f_cdev: Fix memory leak with func_name
func_name related memory is allocated on creating instance of driver with
cser_set_inst_name() API with usage of kstrndup(). If cser_set_inst_name()
returns non-zero value or driver instance is released, this func_name
related memory is not freed. Fix this memory leak by freeing func_name from
cser_free_inst() API.

CRs-Fixed: 1070060
Change-Id: I7ba4c5a65bb01d056b4d2690fe30f7cbe47ba311
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-09-22 11:59:14 -07:00
Venkat Gopalakrishnan
82242cc677 scsi: ufs-debugfs: Fix hba access
Don't access hba when its NULL.

CRs-Fixed: 1001231
Change-Id: I0a4f0606a7c582de436071f33e0b9e49c771c63d
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-09-22 11:36:17 -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