Commit graph

573660 commits

Author SHA1 Message Date
Linux Build Service Account
4aed4b6662 Merge "ARM: dts: msm: Fix regulator name for pmicobalt flash" 2016-08-18 12:04:03 -07:00
Linux Build Service Account
b1f1685bb7 Merge "leds: qpnp-flash-v2: Add support for LMH mitigation" 2016-08-18 12:04:01 -07:00
Linux Build Service Account
ebbe5c8d48 Merge "input: touchscreen: remove PRESSURE event from ft5x06 driver" 2016-08-18 12:03:57 -07:00
Linux Build Service Account
c3afa9bef9 Merge "input: ft5x06_ts: Upgrade firmware based on version" 2016-08-18 12:03:56 -07:00
Linux Build Service Account
cfa9893e4a Merge "input: ft5x06_ts: Parse board specific parameters from pdata" 2016-08-18 12:03:55 -07:00
Linux Build Service Account
6e22b01c91 Merge "input: touchscreen: Goodix gt915 driver cleanup" 2016-08-18 12:03:54 -07:00
Linux Build Service Account
a18fa34ff2 Merge "input: msg21xx_ts: Mstar touch driver optimization" 2016-08-18 12:03:54 -07:00
Linux Build Service Account
86f3aea3e0 Merge "soc: qcom: smem: Renaming smem item SMEM_SMEM_SLOW_CLOCK_SYNC" 2016-08-18 12:03:53 -07:00
David Collins
41bf8c626f regulator: cpr3-mmss-regulator: add support for msmcobalt v2 fuses
MSMCOBALT v2 uses different open-loop fuse reference voltages
than MSMCOBALT v1.  Update the cpr3-mmss-regulator driver so that
it uses the proper set of reference voltages for v1 and v2.  Also
change the compatible string of existing MSMCOBALT
cpr3-mmss-regulator devices to be for v1 explicitly so that the
v2 reference voltages are not erroneously used on v1 boards.

Change-Id: I6afda07bb4f37fc753d11e0c142175b962069f0c
CRs-Fixed: 1054539
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-08-18 10:28:37 -07:00
Subhash Jadavani
64e8b93b0a scsi: ufs: kick start clock scaling only after device detection
UFS clock scaling might start kicking in even before the device
is running at the fastest interface speed which is undesirable.
This change moves the clock scaling kick start only after the
device is detected and running at the fastest interface speed.

Change-Id: Id9af7b31eab5b67f4cf2eb38c4e90a568e7968c5
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
2016-08-18 09:45:38 -07:00
Linux Build Service Account
fa0dc60444 Merge "ARM: dts: msm: add SSC to MDSS DSI PLL for msmcobalt" 2016-08-18 04:59:22 -07:00
Linux Build Service Account
6d2d0bbeba Merge "ASoC: msm: Enable use of noirq playback and capture" 2016-08-18 04:59:21 -07:00
Linux Build Service Account
a6adf04605 Merge "ARM: dts: msm: Add new pcm device node for msmcobalt" 2016-08-18 04:59:20 -07:00
Linux Build Service Account
e14fcb2cff Merge "soc: qcom: irq-helper: Change the sysfs print function" 2016-08-18 04:59:20 -07:00
Linux Build Service Account
b88ee6f933 Merge "spcom: avoid false error message on spcom_device_release()" 2016-08-18 04:59:15 -07:00
Linux Build Service Account
b2397d388f Merge "NFC: Fix unbalanced irq warning stack trace" 2016-08-18 04:59:14 -07:00
Linux Build Service Account
559e948c14 Merge "quick selinux support for tracefs" 2016-08-18 04:59:13 -07:00
Linux Build Service Account
48025d57b5 Merge "defconfig: msm: Create new defconfig for msmfalcon" 2016-08-18 04:59:12 -07:00
Amir Samuelov
8b156ca84f spcom: move some messages to debug
cleanup, avoid printing messages on normal behavior.

Change-Id: I9258ae9a0db8028f8bec88c1d56a59c86377f366
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-08-18 02:58:36 -07:00
Lijuan Gao
cb761170c7 drivers: power: reset: Do warm reset when device reboot to edl
Device reboot to edl, it's for switching device to emergency dload mode.
So it's need to keep device to do warm reset.

Change-Id: I8f5d0845c6f2d37ea740949ce56e02c4cc7412be
Signed-off-by: Lijuan Gao <lijuang@codeaurora.org>
2016-08-18 00:11:45 -07:00
Walter Yang
6f89b8c5ed ARM: dts: msm: add node for msmcobalt hardware switches
Add gpio controller node for msmcolbalt, so that we can initialize
and control us_euro/hifi_hph_en switches on board.

Change-Id: I5e39d88ab2e814d7bfb386b0355a65ee166cfbb0
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-08-17 22:18:56 -07:00
Walter Yang
669c51e0d9 ASoC: msm: add pinctrl support for wcd934x hifi hph switches
Add pinctrl support in machine driver to control hph_en0/hph_en1
gpios owned by wcd934x.

Change-Id: I99a7746259c563379d060c10bbd602d3e6a65746
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-08-17 22:18:41 -07:00
Linux Build Service Account
947004a614 Merge "ASoC: wcd_cpe_services: Process detection events in SEND state" 2016-08-17 20:28:44 -07:00
Linux Build Service Account
22ca7c4d13 Merge "mfd: wcd9xxx-slimslave: Add playback support for 44.1KHz multiples" 2016-08-17 20:28:43 -07:00
Linux Build Service Account
c07b149eee Merge "usb: pd: Fix ERROR_RECOVERY handling" 2016-08-17 20:28:42 -07:00
Linux Build Service Account
bd641c5b2b Merge "usb: pd: Improve timing accuracy" 2016-08-17 20:28:41 -07:00
Linux Build Service Account
f4bdb94431 Merge "usb: qmp: phy: Make sure QMP PHY write completed" 2016-08-17 20:28:41 -07:00
Linux Build Service Account
893c3bc29f Merge "regulator: cpr3-regulator: support disabling CPRh hardware closed-loop" 2016-08-17 20:28:40 -07:00
Linux Build Service Account
53b57a765f Merge "scsi: ufs: disable ah8 during suspend and enable it on resume" 2016-08-17 20:28:39 -07:00
Linux Build Service Account
7232046f64 Merge "scsi: ufs: optimize clock gate work" 2016-08-17 20:28:38 -07:00
Linux Build Service Account
3c240cf2be Merge "slim-msm: Handling resources during port de-allocation" 2016-08-17 20:28:38 -07:00
Linux Build Service Account
d5456c5703 Merge "ARM: dts: msm: Remove clocks listed under video and camera GDSC nodes" 2016-08-17 20:28:37 -07:00
Linux Build Service Account
2165532d6e Merge "msm: sde: shutoff memory and periphery when clock is off" 2016-08-17 20:28:36 -07:00
Amir Vajid
137bab8eec ARM: dts: msm: add initial cpu mapping table for memlat
Add an initial core-dev mapping table for memlat to
improve power and performance.

Change-Id: I90b400adb7607aa9833a39e0d58e978336b6c1bc
Signed-off-by: Amir Vajid <avajid@codeaurora.org>
2016-08-17 16:57:03 -07:00
Satya Durga Srinivasu Prabhala
1ebe55efef ARM: dts: msm: Add support for msmcobalt v2 on qrd platform
This commit adds support for msmcobalt v2 chip on qrd platform.

CRs-Fixed: 1053410
Change-Id: I8aa775e15105d1508e387076d7ca127b7204d755
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2016-08-17 16:49:32 -07:00
Rohit Gupta
3087c5f20d PM / devfreq: memlat: Add a core to memory frequency mapping table
Add a core to memory frequency mapping table, which establishes
a relationship between the core frequency and its corresponding
bandwidth vote.

The governor expects a "qcom,core-dev-table" table as part of a given
memlat hardware monitor's device tree node.

This table is read upon registration of the memlat governor. The table
is then used to determine the memory bandwidth vote corresponding to the
maximum of the core frequencies.

CRs-Fixed: 1054146
Change-Id: I9df118da1433125b02c937bf1799a0944b110fac
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Suggested-by: Saravana Kannan <skannan@codeaurora.org>
2016-08-17 16:37:23 -07:00
Shashank Mittal
311355d2d1 defconfig: msm: disable CoreSight ETM support for msmcobalt
Disable CoreSight ETM and remote ETM configuration for perf defconfig.
ETM configuration requires jtag save and restore configuration to be
enabled which requires QDSS core clock to be on all the time.

Change-Id: I57019e9b6be7f9020eed3cf730bf5b37ea4a1f98
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-08-17 16:20:50 -07:00
Shiv Maliyappanahalli
e41138f310 ASoC: codecs: fix edid error when hdmi ops is null
When edid mixer control is executed, if the hdmi ops is
not set, the mixer control get_info() returns error.
This error is treated as fatal by the caller.

Fix by returning valid mixer control info when hdmi ops
is null.

Change-Id: I0097a75d94690b199fab1adc7f2ff3faa2d82e7b
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-08-17 16:12:58 -07:00
Phani Kumar Uppalapati
bb017be51a ASoC: msm: Add Slimbus6 playback dai-link
Add slimbus6 playback back-end dai-link on msmcobalt
platform with wcd934x audio codec. This dai-link enables
audio playback over headphones.

Change-Id: I83c2291909bda2473d7d0b3147b4a0244f7450b0
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-08-17 16:08:59 -07:00
Phani Kumar Uppalapati
08970c53c2 ARM: dts: msm: Add sb_6_rx phandle reference for sound DT node
Add slimbus_6_rx phandle reference for asoc-cpu property in
sound node for wcd934x codec. This enables audio playback
support over headphones for msmcobalt platform.

Change-Id: I36050f122e67f95cc7f2dbdd3c73b4de5baea785
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-08-17 15:48:13 -07:00
Liam Mark
7b694199dd defconfig: msmcortex: Enable CONFIG_CMA_DEBUGFS
Set CONFIG_CMA_DEBUGFS item to enable CMA performance testing.

CRs-Fixed: 1055896
Change-Id: I1ff225d5cf5bc4286173942b3cb7caaa4867b6da
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2016-08-17 15:47:37 -07:00
David Dai
b3f54ff633 msm: msm_bus: allow QoS clocks to be specified at mas nodes
Allow for greater granularity of QoS clocks enabled when
enabling clocks for QoS configuration for each node. Current
implementation requires all QoS clocks related to the parent
fab to enabled, which works well for mass QoS programming at
probe time, but turns on unnecessary clocks when QoS programming
defers at initial client request. This fixes an issue where
Camera's initial client vote also caused the toggling of mdss
gdscs which created a deadlock situation where the notifier
callback from MDSS GDSC tries to obtain the same lock held by
Camera's call in the same thread.

Change-Id: Iff1d086fcfc92a709d198f84227cad9bd6f57646
Signed-off-by: David Dai <daidavid1@codeaurora.org>
2016-08-17 15:09:48 -07:00
Benjamin Chan
5658702aa3 msm: sde: Add support for 1.5x downscale in rotator
msmcobalt v2 supports 1.5x downscaling in the rotator.

CRs-Fixed: 1055035
Change-Id: Icd71fd6d53783a7972305d1256acb209698e575d
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-08-17 14:55:15 -07:00
Skylar Chang
e0567604b7 ARM: dts: msm: Disable IPA3 on apqcobalt
Disable ipa-hw on cobalt APQ revisions due
to APQ doesn't have any modem use-cases.

Change-Id: I3251ffcac5cc1257befc5f57d1984a33bf530c23
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-08-17 14:13:26 -07:00
Bhalchandra Gajare
4087c68e23 mfd: wcd934x: Mark CPE registers as volatile
Some of the CPE (Codec Processing Engine) registers in wcd934x audio
codec are read-write registers with only few bits that are read-only.
Add change to mark such registers as volatile to avoid reading stale
value from cache for the read-only bits.

CRs-Fixed: 1049012
Change-Id: I6d77cf57e940c9efa6be64565d9ea7d328f0cd9b
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-08-17 13:43:35 -07:00
Shashank Mittal
2cfb211c83 coresight-etm4x: separate cpu dying notifier
Use separate notifier for cpu dying callback. This way we can give
higher priority to this notifier. That will make sure that etm disable
code gets executed before etm save register code during cpu power
collapse and etm's registers restore code gets executed before etm
enable code while cpu is coming back online.

Change-Id: Ibebda314eebd71945e9eae8aa2339fc79c475556
Signed-off-by: Shashank Mittal <mittals@codeaurora.org>
2016-08-17 12:55:17 -07:00
Karthikeyan Ramasubramanian
ea637de7e4 soc: qcom: glink_spi_xprt: Fix the suspend and resume sequence
If the WDSP component framework does not detect the concerned subsystem,
then the G-Link SPI Transport returns error. This prevents the system
from suspending.

If the concerned subsystem is not found, then let the system to suspend.

CRs-Fixed: 1055800
Change-Id: Id17993dbf28b45308464a7e0d1e5404747fefee1
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
2016-08-17 13:51:35 -06:00
Patrick Daly
860afad94d ion: system_secure_heap: Change IOC_DRAIN work_struct to delayed_work
The video client signals to ion that it is done using an amount of memory
using the ioctl ION_IOC_DRAIN. However, the video client may have
previously shared this memory with other clients, such that the reference
count on existing ion_buffers is greater than one. Work around this issue
for now by assuming that the ion_buffers will be freed by the other users
within a short duration after the video client makes the ION_IOC_DRAIN
call.

Change-Id: I113ca1ff26e4949b27879ccf67af6d5f04a67b06
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-08-17 12:47:22 -07:00
Patrick Daly
641a99ef2f msm: secure_buffer: Limit continuous time spent in hypervisor
hyp_assign_table() is a costly operation during which nonsecure interrupts
are disabled. Split this operation into multiple parts for better
real-time behavior.

Splitting is done by the following criteria:
maximum number of physically contiguous memory regions
maximum total memory size.

Here is a chart showing the average performance of hyp_assign_table() with
N physically contiguous chunks each with size X.

 #chunks    chunk_size(pages) total_memory(pages)    time(ms)
       2                   1                   2       3.354
       2                   4                   8      12.979
       2                 512                1024       4.349
       8                   1                   8       4.714
       8                   4                  32      26.781
       8                 512                4096       8.724
      32                   1                  32      17.093
      32                   4                 128      50.700
      32                 512               16384      26.717
     128                   1                 128      71.076
     128                   4                 512     126.305

Based on the above, select a maximum of 32 chunks or 512 total pages
as the limits.

Change-Id: I530cfdce76c8a2c38f60d6118647eaefd269e693
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-08-17 12:47:21 -07:00
Patrick Daly
ff15045bed secure_buffer: Remove all-in-one buffer usage
Allocate objects via kzalloc() when possible. For the case where a large
chunk (512 Kb) of physically contiguous memory is required, continue to use
a special purpose buffer reserved at boot. Since this special purpose
buffer is no longer used for random metadata, the associated code is
simpler to understand.

Change-Id: I85078f351293b556a501e9aca075ef87e2e86afd
Signed-off-by: Patrick Daly <pdaly@codeaurora.org>
2016-08-17 12:47:21 -07:00