Commit graph

575464 commits

Author SHA1 Message Date
Linux Build Service Account
dee200e246 Merge "net: ipc_router: fix NULL pointer de-reference issue" 2016-09-29 11:20:14 -07:00
Linux Build Service Account
2ef6e7b165 Merge "soc: qcom: Listen to SUBSYS_AFTER_SHUTDOWN notification" 2016-09-29 11:20:13 -07:00
Linux Build Service Account
06b25aaee0 Merge "ASoC: wcd9335: add handset speaker gain mixer control" 2016-09-29 11:20:12 -07:00
Linux Build Service Account
e70bdf79d7 Merge "ARM: dts: msm: Add SMP2P entries for MSMTRITON" 2016-09-29 11:20:09 -07:00
Linux Build Service Account
b7a533836a Merge "arm64: process: Reduce the no. of bytes of data around registers" 2016-09-29 11:20:08 -07:00
Linux Build Service Account
54ff1c7439 Merge "msm: pil: Adding function name and buffer size information in logs" 2016-09-29 11:20:07 -07:00
Linux Build Service Account
8da5055a8d Merge "wil6210: extract firmware capabilities from FW file" 2016-09-29 11:20:01 -07:00
Linux Build Service Account
1e6c420f32 Merge "ARM: dts: msm: Remove 710Mhz frequency for A540v2 GPU." 2016-09-29 11:20:00 -07:00
Linux Build Service Account
c5de06bf5c Merge "ASoC: msm: qdsp6v2: Change device switch handling" 2016-09-29 11:20:00 -07:00
Linux Build Service Account
6f2eaf846d Merge "misc: qcom: qdsp6v2: SSR recovery support for NT decoder" 2016-09-29 11:19:58 -07:00
Linux Build Service Account
50edc528ba Merge "msm: pcie: configurable PERST propagation delay" 2016-09-29 11:19:57 -07:00
Linux Build Service Account
d099799530 Merge "msm: camera: Add a driver to control IR CUT device" 2016-09-29 11:19:56 -07:00
Linux Build Service Account
a04c752c85 Merge "msm: camera: Export IR CUT device to mm-qcamera-daemon" 2016-09-29 11:19:54 -07:00
Deepak Katragadda
c9d8452b7d clk: msm: clock: Add the non_local_control_timeout flag to ahb_clk_src
On MSMCOBALT, the ahb_clk_src needs its sources to be enabled for
it to configure to a new frequency. Hence, force enable the PLL
and XO sources everytime it is scaled.

CRs-Fixed: 1060894
Change-Id: Ib2f5277f14b1484838439a9bb756358421737bd4
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-29 10:53:40 -07:00
Taniya Das
496c9d2780 clk: qcom: Add support for GCC clock for MSMFalcon
Add support for the global clock controller found on MSMFalcon
based devices. This should allow most clocks for peripherals other than
multimedia clocks.

Change-Id: I1ec6309f32c658177580cc0601083d32bcdfad20
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-09-29 23:20:59 +05:30
Deepak Katragadda
737be68e21 clk: msm: clock-mmss-cobalt: Update the video core clock frequencies
Update the video core clock frequency tables on MSMCOBALT v2.

CRs-Fixed: 1071940
Change-Id: I2858da0e32dfa4ea5bc14395e884aabf832fa8f6
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-29 09:54:49 -07:00
Amit Nischal
7d88215503 clk: qcom: Add support to register rpm-smd clocks
Update the rpm-smd communication API to send across votes for clock
enable/disable to RPM. Use the clk_hw list for the RPM clocks and also
update the clock ids and clock names for RPM clocks.

Change-Id: I37ae97f22b1b39d040bb78c90b1ff231bc348fe6
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-09-29 20:40:47 +05:30
Pavankumar Kondeti
9d128dbca3 sched: don't assume higher capacity means higher power in lb
The load balancer restrictions are in place to control the tasks
migration from the lower capacity cluster to higher capacity
cluster to save power. The assumption here is that higher capacity
cluster will have higher power cost which may not be necessarily
true for all platforms. Use power cost based checks instead of
capacity based checks while applying the inter cluster migration
restrictions.

Change-Id: Id9519eb8f7b183a2e9fca87a23cf95e951aa4005
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
2016-09-29 10:07:19 +05:30
Jack Pham
8b01cb751c usb: pd: Print out source/sink subtypes
Add additional verbiage to the info logs to help
determine the type of source cable connected: default,
medium or high current. Similarly, if a sink is attached,
indicate whether it is with a powered cable or not.

Change-Id: I0687365827cdbb8a1b7168a2b676b1afd2f576f6
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-09-28 18:40:14 -07:00
Sunil Paidimarri
0dfb2feb3e msm: ipa: Recycle wan buffer
Enable recycle wan buffer support in IPA driver
to support napi in rmnet ipa0 net device.

Change-Id: I54efe72b5cf4ecdf50c7c642a8b453c46d057e57
CRs-Fixed: 1072443
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-09-28 17:23:43 -07:00
Tony Truong
5278f47491 msm: pcie: verify EP is accessible before conf restore
When attempting to restore multiple endpoint's configuration
space over a switch or bridge, only restore for the ones
that are accessible and powered on.

Change-Id: Ie6234ae30ad47a063982e5cc50f4ecedf1f61de2
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-09-28 15:16:13 -07:00
Vamsi Krishna Samavedam
e43496ce13 usb: dwc3: fix overriding core clock rate to default max
Fix the bug introduced by commit 82d4ec9778
("usb: Add support for reset controller framework") which
overrides the core clock rate from device tree.

Change-Id: Ic3ef2229fa8552301e09dfb912e79e044a81324f
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
2016-09-28 10:56:12 -07:00
Benjamin Chan
6c700903fc msm: sde: Adjust SDE rotator clock and BW calculation
Optimize the initial rotator session opening time by moving the clock
and BW voting to the start of rotator. Also adjusting the clock
calcuation to include overhead and fudge factor. Create debugfs entry
for supporting override the clock and BW calculation

CRs-Fixed: 1071288
Change-Id: Ia6a84f160d0288ced98bf9f1818d9eabfc2e3963
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-09-28 13:34:05 -04:00
Yuanyuan Liu
e291415f88 icnss: update logs for QMI rejected messages
WLAN firmware can reject QMI message, improve the logs to
indicate the same.

CRs-Fixed: 1071938
Change-Id: I7ab180e06ececf8136903ee04565b8b4a2bf3524
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-09-28 09:36:13 -07:00
Shantanu Jain
4bfc4cac73 input: touchscreen: Change dev_pm_ops for Goodix driver
Convert the driver to dev_pm_ops from SIMPLE_DEV_PM_OPS
in Goodix TS driver to reduce suspend/resume latency.

Change-Id: I45690b239c73f636538b864f0c4a7e539a02eedb
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-28 13:22:05 +05:30
Amir Samuelov
82bf612671 soc: qcom: pil: add PBL spare error status
The PBL spare status registers provide more info
about the reason for PBL failure.

Change-Id: I1dddc7df26caa1556e57128603afd32b2613ebde
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-09-27 23:33:48 -07:00
Meng Wang
e8a912f601 ASoC: wcd934x: Add support for digital core power collapse
When no audio use-cases are active, codec digital core
can be put into power collapse to reduce the power consumption
during codec stand-by. Add support to put core into power
collapse and remove out of the collapse when audio use-cases
are triggered.

CRs-Fixed: 1063742
Change-Id: I0314b7319f2ef02d6125b77e68bf47d065521f6a
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-09-28 14:20:15 +08:00
Nicholas Troast
d2da5a62b4 ARM: dts: msm: enable more FG interrupts for PMICOBALT
Interrupts are useful for testing and debugging. Enable all fuel gauge
interrupts.

Change-Id: Ic6dd2d1e7f829630dc6eae5ff74fae04f7fc7f9b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-27 19:55:54 -07:00
Nicholas Troast
9d4164b5e8 qcom-charger: fg-util: add float decode function
Some SRAM registers are encoded using a floating point representation.
Add a function to decode these registers into signed micro-unit
integers.

The exponent and mantissa are signed integers represented by two's
complement, and the exponent value is offset by -9. This is a half
float representation stored as:

EEEEE MMMMMMMMMMM

Where E are the exponent bits, and M are the mantissa bits.

To decode this representation the following formula is applied:
2^(exponent - 9) * mantissa

Change-Id: Id9f28a0eeb2a904aca41eb46d0215d80287e0b88
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-09-27 19:55:54 -07:00
Vidyakumar Athota
d07060d4f1 ASoC: wcd934x: enable rate converter clock for AANC
Rate converter clock needs to enable for adaptive ANC
(Active Noise Cancellation)to work otherwise noise mic
data will not go to Rx path. Add change to enable rate
converter clock.

Change-Id: I8c83f6305dbc0a40b67bf2ffd53d37a0abdcf953
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-09-27 17:57:49 -07:00
Deepak Katragadda
96cf678eca ARM: dts: msm: Add 2.3 GHz performance cluster support on MSMCOBALT v2
Allow scaling the performance cluster clock to 2.3 GHz using
single core frequency boost on MSMCOBALT v2 speed bin 1 parts.

CRs-Fixed: 1070684
Change-Id: I473a1965989ac652c630b69c6086b74d0bdabfa3
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-27 14:47:16 -07:00
Deepak Katragadda
7c7db2d4d9 clk: msm: clock-osm: Support many-to-one OSM freq to CPR corner mapping
The current OSM framework does not support mapping multiple OSM
clock frequencies to the same CPR virtual corner. Enable this
support and update the current clock DT entries accordingly.

CRs-Fixed: 1070684
Change-Id: I3422848cabf221f497eb91f9aae5905e34ebdc84
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-09-27 14:41:04 -07:00
Skylar Chang
9ba1638c4b msm: ipa3: change FnR prints to low
Change FnR rule creation prints to low in order to avoid IPC
logging flood.

Change-Id: Ie1f0f48ffc1fd67fc8a2074d3d334fb8cd29c99f
CRs-Fixed: 1064336
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-27 14:03:21 -07:00
Viswanadha Raju Thotakura
fd39134867 msm: camera: Add regulator enable and disable independent of CSID
Regulator enable and disable of CSIPHY depends on the CSID module.
Make the enable and disable of clk regulator independent of CSIPHY.

CRs-Fixed: 1050172
Change-Id: Iefd57ae1c3fb5774b8043ef2e824acbacc8d16d2
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-09-27 13:40:33 -07:00
Phani Kumar Uppalapati
15c8a1727b drivers: mfd: Update wcd934x codec volatile register table
Add top-level wcd934x codec registers as volatile because
those registers get updated even before register map cache
initialization.

Change-Id: Ibdf5f695e5464b9597d153f725ff461f89b62ae4
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-09-27 11:02:14 -07:00
Himanshu Aggarwal
80fa7e9893 input: touchscreen: Fix issues in suspend path
Fix issues in suspend path in Goodix driver.

Change-Id: I280f2201c69838ad4da8eb94e9f10768f54ed457
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>4
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-27 16:33:03 +05:30
Himanshu Aggarwal
12e637fc79 input: touchscreen: Remove redundant code from Goodix driver
Remove code that reads firmware from the header file,
this feature is not supported.

Change-Id: I6c18e153ddf18667ca83d47df20c71bce6dbfa21
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
2016-09-27 15:55:44 +05:30
Shantanu Jain
e172c0da0e input: touchscreen: Remove irq polling from Goodix driver
Remove irq polling from Goodix driver. Use interrupt based
mechanism to process interrupts from touch controller.

Change-Id: I0a9037eac6e30a6319919043dd2ef1c226663af9
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-09-27 15:31:07 +05:30
Amit Nischal
5195746050 clk: msm: Fix compilation for clock_debug_print_enabled
In cases where we do not use the CONFIG_COMMON_CLK_MSM
and clients who use clock_debug_print_enabled would fail
compilation. Fix the same by adding the config check.

Change-Id: Iaa878754e1d769056a621066eb8a73e1bc55d3a0
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-09-27 14:25:10 +05:30
Govind Singh
aebb9befc6 net: cnss: Add support to get fw files for QCA SDIO target
Current implementation for getting fw files for a target is
supported only in PCIE based QCA chipsets. Add support to
get FW files for QCA SDIO targets.

CRs-Fixed: 1036232
Change-Id: If6c273d9a86f9fc4bc841388b11b96c385dc64f4
Signed-off-by: Govind Singh <govinds@codeaurora.org>
2016-09-27 00:13:45 -07:00
Shantanu Jain
1758da06e7 input: touchscreen: Add threaded irq support to Goodix driver
Add threaded irq support to Goodix touchscreen driver to reduce
the time spent with interrupts diabled to a bare minimum by
pushing the processing out into the kernel thread.

Change-Id: I3ade13181957d327ad9d0266b1999a4b0f2d8d1a
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-09-26 21:30:43 -07:00
Skylar Chang
b0756920f3 msm: ipa: unlock WLAN doorbell register access
Request TZ to unlock WLAN doorbell register for ipa
uC access for offload data path.

Change-Id: Ia79b1d8a9a0213c2f5296140bff7a36d3f035e21
Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-26 17:57:12 -07:00
Hemant Kumar
85cc38fca2 usb: pd: Add support to set the maximum speed via extcon
Driver sets the speed using extcon cable state flag. This
allows to start host or peripheral in selected speed.
By default start peripheral in super speed mode. However,
starting host in super speed consumes more power so to
achieve lower consumption default it to high speed only.

Add module params to override the default behavior as follows:

 # echo Y|N > /sys/module/policy_engine/parameters/ss_dev
 # echo Y|N > /sys/module/policy_engine/parameters/ss_host

Change-Id: I2a45a4149f593a129b4dd123df730405169404f9
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-09-26 17:47:44 -07:00
Skylar Chang
15dc347f52 msm: ipa3: hal: change FnR prints to low
Change FnR rule creation prints to low in order to avoid IPC logging
flood.

Change-Id: I18a27267eebdca2c87bf4bffc11a120822cdc7c2
CRs-Fixed: 1064336
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-26 15:38:16 -07:00
Sungjun Park
05f1f98cd1 ARM: dts: msm: Change L7A/L17A/L25A on msmcobalt
To prevent sleep current leakage, leave L7A/L17A/L25A
turn on during sleep and set LPM/NPM by pin control.

Change-Id: I787d3b4300fae8fb04ac1aa8d3b27b71e8bd7797
Signed-off-by: Sungjun Park <sjpark@codeaurora.org>
2016-09-26 15:28:02 -07:00
Skylar Chang
b544de499e msm: ipa3: increase SSR tag timeout
Increase the timeout in SSR case for TAG completion
as IPA might be slow in processing this command.

Change-Id: I5cfadb3ee7cb339b89b0c428bae46d3802476eb9
CRs-Fixed: 1064336
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-09-26 15:27:31 -07:00
Phani Kumar Uppalapati
74c432dc9a ASoC: wcd934x: Avoid pop during dsd path tear down
Avoid pop during dsd audio path tear down by enabling
mute before the slim ports are disconnected.

Change-Id: I542fab59eadbea404c0001d25315172cc993488b
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-09-26 15:06:13 -07:00
Phani Kumar Uppalapati
33dbb2a735 ASoC: wcd934x: Check for null pointer before access
Check dsd config structure pointer for null before
access to prevent kernel panic.

CRs-fixed: 1070189
Change-Id: I791941fbede4b136c3f24d15b7fb0b60dd5477e6
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-09-26 14:59:51 -07:00
Ben Romberger
dec2bc73ee ASoC: msmcobalt: Enable msmcobalt to use audio notifier
Enable msmcobalt to use the audio notifier framework.
Audio notifier framework connects to the best available
framework for remote subsystem notifications such as
subsystem up or down.

Change-Id: Ib88a71e2fdb2b58fd5f87a65cb7d3253884f2d97
CRs-Fixed: 1054000
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-09-26 14:51:07 -07:00
Ben Romberger
03ef2316fd drivers: soc: Enable APR driver to use audio notifier
Modify APR driver to use audio notifier framework.
Audio notifier framework connects to best available
subsystem for remote notifications.

Change-Id: I783b7df9c7e0253e5dc88bd60e0b5300e26fba56
CRs-Fixed: 1054000
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-09-26 14:50:54 -07:00