Commit graph

576490 commits

Author SHA1 Message Date
Purushottam Kushwaha
0d7846f7e6 cfg80211: Add support to configure a beacon data rate
This allows an option to configure a single beacon tx rate for an AP.

Signed-off-by: Purushottam Kushwaha <pkushwah@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-repo: git://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211.git
Git-commit: a7c7fbff6a408d00431c705bbe3dfc5f51e3f1c4
CRs-fixed: 1025311
Change-Id: I5f9627964d86c51cb8fb0c5c5f7c9f5f2e19b3e7
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
2016-10-25 15:05:04 +05:30
Gaurav Kohli
6d1dd1c4db ARM: dts: msm: Add support for Modem PIL on msmtriton
Add support for Modem PIL which facilitates the loading of Modem
firmware, authentication and bringing it out of reset.

Change-Id: I42a47e4386ca7a1bbbec428c8d2cbe307634cd1e
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-25 02:07:09 -07:00
Gaurav Kohli
8800c8568a ARM: dts: msm: Add support for Modem PIL on msmfalcon
Add support for Modem PIL which facilitates the loading of Modem
firmware, authentication and bringing it out of reset.

Change-Id: I3e700bdae21b6e18b28cf5982e42e73d7ae953a5
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-25 02:00:53 -07:00
Gaurav Kohli
3ff1fcbead soc: qcom: pil-q6v5: Add support for qdspv62.1.5 reset
Update the reset sequence to support qdspv62-1-5 for MSMFALCON.
Also Enable one more memory bank during reset sequence for MSMFALCON.

Change-Id: Ib0d27c13c0ebdfac629c1469c9a91a0b84d03640
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-25 02:00:36 -07:00
Syed Rameez Mustafa
5c647926d0 sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()
trace_sched_update_task_ravg relies on NULL pointers to ensure that
it doesn't access them. Make sure that when a task exits, these
pointers are set to NULL. Otherwise any call to update_task_ravg()
between sched_exit() and releasing the task structure will access
bogus pointers. In some cases those memory locations are unmapped
and cause a kernel panic.

Change-Id: I9eebb4fb35aca2c8424bfb29ae9d833650dc5ad4
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
2016-10-24 18:44:02 -07:00
Osvaldo Banuelos
3dabb862f0 clk: osm: msm: allow WDOG status register to be enabled via debugfs
Enabling WDOG status register by default has power penalty.
Add support to allow the register to be configured via debugfs
instead.

CRs-Fixed: 1081757
Change-Id: I13156d82f544cd28a1579c23b18182c879c85767
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-10-24 17:39:33 -07:00
Vidyakumar Athota
b51f826e9f soc: qcom: use interruptible wait_for_completion API
Device suspend fails because of un-interruptible blocking read
function. Use wait_for_completion_interruptible API instead of
wait_for_completion to allow device suspend.

Change-Id: Ia537e776d0b322d56cd6003f95cdded5e695ceeb
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-10-24 17:03:40 -07:00
Yuanyuan Liu
0b2474a9bf icnss: Do top level reset when timeout to pull register state
When system timeouts to pull register state, we do wsi error
recovery, which causes an AHB bus hang. Fix this by doing top
level reset instead of wsi error recovery.

CRs-Fixed: 1080014
Change-Id: Ic5dbac9c2cd31f3193ede7cdc64249f7514e3e98
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-10-24 16:42:57 -07:00
Sudheer Papothi
d6a2581efd ASoC: wcd934x: Trigger codec DSP subsystem restart
When there is a fatal error on ADSP, audio subsystem restart(SSR)
gets triggered. As a part of audio SSR, trigger codec DSP
SSR to reset the codec DSP state.

Change-Id: Id9cbda04a4c36070e52919d3a34ebc871ac22a8e
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-24 15:22:02 -07:00
David Collins
bb57d8b8e1 ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2
Enable VDD_GFX CPR aging adjustments for MSMCOBALTv2 parts with
CPR fusing revision greater than or equal to 2.  At most 15 mV
can be added onto the open-loop and closed-loop voltage as a
result of an aging measurement at runtime.  This maximum 15 mV
adjustment was previously accounted for in the fixed open-loop
and closed-loop voltage adjustments.  Therefore, remove 15 mV
from both the open-loop and closed-loop voltage adjustments for
all corners.

Change-Id: I44487bfcb4e21d76948cd836ad2dae18bc3d22f4
CRs-Fixed: 1081084
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-10-24 15:21:45 -07:00
Sudheer Papothi
80e0e34f04 ASoC: msmcobalt: Add independent clock support on codec
WCD9335 codec has single master clock supply widget for both
playback and recording paths. Adding separate clock supply
for playback and recording paths will help handle low power
audio recording usecases without affecting playback usecases.
Change is to enable separate clock supply widgets for playback
and recording paths.

CRs-Fixed: 1022917
Change-Id: Ia02a1ffed911498dd6eb5df246e6da68a7802a92
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-24 15:21:19 -07:00
Phani Kumar Uppalapati
66d2648b11 ASoC: wcd934x: Update CPR register defaults
Update wcd934x codec register defaults to enable
CPR hardware block for reducing the power consumption
in rock bottom sleep mode.

CRs-Fixed: 1081673
Change-Id: Ib75655d52e5d85d649ebfcb971caf3f5b0b6dc80
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-10-24 14:59:38 -07:00
Phani Kumar Uppalapati
9d9b34eb90 drivers: mfd: Mark CPR bank registers as volatile
Mark CPR bank registers as volatile so that
writes to these registers get updated correctly
in hardware.

CRs-Fixed: 1081673
Change-Id: I92d0511b4e9912dfa346378784d811f6606df205
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-10-24 14:54:06 -07:00
Subbaraman Narayanamurthy
01109ac391 qpnp-fg-gen3: Fix storing nominal capacity to actual capacity
Currently, nominal capacity is stored back to the actual capacity
only when the actual capacity is non-zero. However, that can be
true when the battery is inserted for the first time. This makes
the actual capacity to be stored only when a capacity learning
cycle completes. Other algorithms like to use actual capacity
before that. Fix it.

Change-Id: I346085ec722f491f96181ef1beb383710b441f4b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-24 14:05:44 -07:00
Sudheer Papothi
8bfdc09623 ASoC: wcd934x: Add support for audio subsystem restart
When there is a fatal error on ADSP, audio subsystem becomes
unresponsive. Add support for audio subsystem restart that
helps to recover ADSP and codec from the crash without
rebooting the entire system.

CRs-Fixed: 1069188
Change-Id: I2939e9fd37e96f37101b93dabd86cfdaaf06907f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-25 02:17:26 +05:30
Vikram Mulukutla
1d60d26f96 soc: qcom: Use a deferrable timer base for the msm watchdog
It is possible that normal CFS latencies in the presence of
very heavy task load causes timer migration to be delayed
in hotplug paths. This may in turn prevent the watchdog kthread
from waking up, resulting in a bark.

Technically the watchdog is supposed to be a last-resort
failure recovery; even in this stressful hotplug scenario
the device is *usable*, just incredibly slow. It is arguable
that the watchdog should not have fired in this case, and
the petting mechanism should handle this scenario.

Move the timer to a deferrable timer base. We are really not
using the "deferrable" aspect of the timer, but the fact that
we (msm) also changed deferrable timers to run on any CPU.
This underlying change will allow the watchdog timer to be
handled on any CPU.

This completely depends on the fact that we don't have to
pet the watchdog when *all* CPUs go idle, which would
make sense from a power perspective anyway.

Change-Id: Ie389e28ff890a805854f921e4cd491a296a32925
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2016-10-24 12:33:46 -07:00
Sudheer Papothi
8e77be66f9 drivers: mfd: wcd934x: Set MBHC registers to volatile
MBHC mechanical detection, electrical detection and micbias
registers are not getting updated in hardware after subsystem
restart results in no IRQ during headset plug insertion.
Set these MBHC registers to volatile for headset plug
detection to work properly.

Change-Id: Iaec3a17e5eed952ba0abdcffbf321ad942486769
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-24 12:15:48 -07:00
Hemant Kumar
61efc17ecf usb: dwc3: gadget: Remove dev_WARN_ONCE in dwc3_gadget_ep_disable
In case of usb bus suspend at the time of disconnect, rmnet function
suspend disables the endpoint. Same endpoint gets disabled again as
result of handling gadget driver disconnect. This generates warning
message and dumps the call stack. This may cause message flooding
as a result of multiple usb plug in/plug out. Hence replace
dev_WARN_ONCE with dev_dbg and log this event in debug buffer.

CRs-Fixed: 1081547
Change-Id: I64f0f5b15cc5d9185e415f0b26e276e111c885ec
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-10-24 11:05:25 -07:00
Satyajit Desai
2b5e9d5cb6 coresight: tmc: skip tmc read if mem allocaiton failed
Add NULL pointer check to ensure that we do copy to user only
when we were able to allocate memory for ETR.

Change-Id: I09b4bc37617811fd4acd86a7e4f5ef91630675df
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
2016-10-24 10:57:41 -07:00
Subbaraman Narayanamurthy
f410c92004 smb-lib: update displaying battery overvoltage in health property
Currently, smb2 charger is configured to not end the charging
cycle when battery overvoltage occurs. However, when the battery
overvoltage status is read, it will be displayed through health
property. Improve this by reading the battery voltage and check
whether it is within 40mV headroom above float voltage. If it is
above that threshold then continue with displaying overvoltage
status.

CRs-Fixed: 1079363
Change-Id: I45847f446c91c80a5110d80b59a0ae4b8e2c40e5
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-24 10:35:08 -07:00
Benjamin Chan
c6f19b4fa5 msm: sde: Fix SDE rotator clock disable sequence
It is necessary to follow a certain order when disabling the rotator
clock. Not doing so might lead to clock actually not turning off and
cause power leakage.

CRs-Fixed: 1081010
Change-Id: I16e500aa87813cd3a1e18f134ea1ed145b9e1ef8
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-10-24 08:25:53 -07:00
Vijayavardhan Vennapusa
99d25c7fcd USB: pd: Fix compilation issues for 32 bit support
Compilation errors are seen from qpnp-pdphy.c and policy_engine.c
drivers, when try to compile for 32 bit support. Hence fix those
errors for 32 bit support getting compiled successfully.

Change-Id: I0c496a73feb83c640f9a135f98ec393d1096b205
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-10-24 17:15:29 +05:30
Shantanu Jain
6d44e59f44 input: touchscreen: replace macros used inside the functions
Define new device tree properties to replace the macros used
in the driver functions.
Remove hrtimer calls which is not being used in the current
driver code.

Change-Id: I29b9ea41df467d0092be8005733016843dc26f60
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-24 17:02:58 +05:30
Ashish Jain
9c4a39fcd6 ASoC: msm: Enable Media Format converter for all resampling usecases
With support of playback for native 384kHz, it is recommended to avoid
resampling in afe even for non fractional rates, hence enable media
format converter in all usecases whenever resampling is needed.

Change-Id: I94b9091b8349d6388fbe5c29eabe3666c86e5cce
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2016-10-24 03:27:13 -07:00
Praneeth Paladugu
9bdfb919ed msm: vidc: Update log level for power collpase
Update Power collapse log messages to VIDC_PROF to be in
sync with other clock related logs. Today these logs are
at VIDC_DBG and VIDC_INFO which also has lot of other logs.

Change-Id: Id69802df24c4eaf4d8e9bc0c438d250090f9a38f
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
2016-10-23 22:00:47 -07:00
Raju P.L.S.S.S.N
46112a9d4a lpm-levels: Change _WARN_printf to pr_err when residency < 0
Change _WARN_printf to pr_err as former prints stack and
register dump in logs which is not necessary.

Change-Id: Ib0323014017818668a4a634e463f751fd5e9d24a
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2016-10-22 22:40:42 -07:00
Tatenda Chipeperekwa
f8a5f3e06f msm: mdss: dp: remove programming of maud/naud for audio
Remove the programming of the maud/naud values, and rely
entirely of the hardware selection logic to calculate
the maud/naud and the resultant audio clock frequency.
This is the recommended pratice as it leverages existing
hardware logic and avoids errors due to over/under
compensating the audio clock frequency.

Change-Id: Ic756deeabeb0eaaf95e5354b565cf20a85fd7cca
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-22 15:17:05 -07:00
Tatenda Chipeperekwa
0f9531e3a2 msm: mdss: dp: trigger link retraining on link status update
Add support for link retraining in the event of a link status
update. The link status can be updated to show the current state
of clock recovery or channel equalization, and link retraining
needs to be initiated in the case of a failure.

CRs-Fixed: 1076516
Change-Id: If68d029c87db2370f07f279aacbc51d139f00aae
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-22 15:17:05 -07:00
Ajay Singh Parmar
5068a5df4b mdss: display-port: add support for hdcp 2.2
Add support for HDCP (High-Bandwidth Digital Content Protect)
version 2.2 for DisplayPort. Define interfaces to interact with
Trust Zone and DisplayPort drivers. Hookup with TZ's kernel
module and send-receive HDCP 2.2 messages to-from sink using
DP's aux channel.

Change-Id: Id77e77ee628667dacc7a714c553b5ce5beafa9bb
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-10-22 15:17:04 -07:00
Tatenda Chipeperekwa
7d2ad0bd3b msm: mdss: dp: parse all sink/link status fields on HPD IRQ
Parse all the sink/link status fields on HPD IRQ. These
fields contain update sink/link status and are needed in
order to determine whether link re-training will be
required. Furthermore, this action is mandatory as per
CTS compliance specification 1.2a.

CRs-Fixed: 1076516
Change-Id: I8c8fef768fa22c1a52f42596e3707e9b0e2c8e4d
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-22 15:17:03 -07:00
Tatenda Chipeperekwa
40135e1fa5 ARM: dts: msm: add display device to framebuffer on msmcobalt
Add the display interface device to the framebuffer device to
enable clients that use the sysfs mechanism access to APIs
exposed by the display interface.

CRs-Fixed: 1077559
Change-Id: Ia14939b035a2fb3d964f6f78899dfa2e21b275e8
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-22 15:17:03 -07:00
Tatenda Chipeperekwa
f6dd258085 msm: mdss: fix parsing of external display platform device
Fix the parsing of the external display platform device by making
use of the framebuffer and display interface platform devices to
find the correct handle.

CRs-Fixed: 1077559
Change-Id: Ifde6d8e042eb651893a1760bdc942a349bf190b7
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-22 15:17:02 -07:00
Tatenda Chipeperekwa
e0986b0e03 msm: mdss: dp: restrict Vx and Px to within allowable range
Restrict the combinations of voltage swing levels and
pre-emaphasis levels to within the allowable range as per
DP v1.3 specification. Furthermore, set the bits to indicate
the sink when the maximum voltage or pre-emaphasis level
supported has been reached.

CRs-Fixed: 1076516
Change-Id: Ibd5ccc5e24248780df70b5ac7ec7a82511abf688
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-22 15:17:01 -07:00
Tatenda Chipeperekwa
596cb31bd2 msm: mdss: dp: add support for link re-training
Add support for link re-training after the main link is already
trained and active. Parse the requested lane count and link
bandwidth from the DPCD when hpd_irq is high, and re-train
the main link once the display, and therefore timing generator,
has been turned off.

CRs-Fixed: 1076516
Change-Id: Ifa1b609c532aa601f30e334e87a768bdda78958d
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-22 15:17:01 -07:00
Prashanth Bhatta
ff15b01d9c icnss: Stay awake during recovery
During recovery, there is a chance of suspending if WLAN FW takes a
while to come-up. Stay awake during recovery.

CRs-fixed: 1081218
Change-Id: I57c54da77500e38fcace367f70befed741e0e70d
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-10-22 11:48:10 -07:00
Linux Build Service Account
46aa49c118 Merge "icnss: Unregister the driver operations when probe fails" 2016-10-22 11:26:59 -07:00
Linux Build Service Account
915edd9d97 Merge "smb1351-charger: Fix possible Null pointer dereference" 2016-10-22 11:26:58 -07:00
Linux Build Service Account
078e8404c1 Merge "ARM: dts: msm: Update VDD_APC CPR RO scaling factors for msmcobalt v2" 2016-10-22 11:26:57 -07:00
Linux Build Service Account
18f128849c Merge "qpnp-fg-gen3: Backup the learned capacity during capacity learning" 2016-10-22 11:26:56 -07:00
Linux Build Service Account
59fb1afb36 Merge "soc: qcom: glink_spi_xprt: Add support for WDSP SSR" 2016-10-22 11:26:56 -07:00
Linux Build Service Account
c33b570e39 Merge "input: touchscreen: Add force fw_update support via sysfs entry" 2016-10-22 11:26:54 -07:00
Linux Build Service Account
f17b68ab3d Merge "input: touchscreen: Add debugfs entries for GTP controller" 2016-10-22 11:26:54 -07:00
Linux Build Service Account
dac0f016e7 Merge "msm: kgsl: Remove use of uninitialized variable" 2016-10-22 11:26:53 -07:00
Linux Build Service Account
3320f03611 Merge "iommu: arm-smmu: Fix a possible null pointer dereference" 2016-10-22 00:02:23 -07:00
Linux Build Service Account
a07e2a0fb6 Merge "qpnp-fg-gen3: update the FCC unit while notifying charger" 2016-10-22 00:02:22 -07:00
Tony Truong
075b9c0278 ARM: dts: msm: add PCIe PHY sequence for msmcobalt v2
Add PCIe PHY sequence for msmcobalt v2 to PCIe devicetree
node so that PCIe PHY can be brought up on this platform.

Change-Id: I1b3af2a59dabf67a947a59334883ce0437c9ee6f
Signed-off-by: Tony Truong <truong@codeaurora.org>
2016-10-21 19:27:50 -07:00
Krishna Srinivas
5074b71486 msm: mdss: Fix memleak in framebuffer register and remove
In FB registration, free allocated memory
if an error condition is hit. Also free
allocated memory in FB remove.

Change-Id: I533e2d6a760ebd52047c521c1a1e85bfc754fce1
Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org>
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2016-10-21 18:51:52 -07:00
Krishna Srinivas
1577550d24 msm: mdss: Fix memleak in panel_debug_reg_write
Free panel buffer or register buffer if either
allocation fails.

Change-Id: I600c646a0c23b654392d8e00a829bfd88b71c38c
Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org>
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2016-10-21 18:51:38 -07:00
Krishna Srinivas
ab04957588 msm: mdss: Check for buffer boundary condition in panel_debug_reg_write
- Before reading from new offset in a buffer, check for out
of bounds condition.
- Avoid using '%n' specifier.
- Use kstrtouint() instead of single variable sscanf
as per coding guidelines.

Change-Id: I10ea6f2b22d554d02f302f5700f6674d08e4777d
Signed-off-by: Krishna Srinivas <krisrini@codeaurora.org>
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2016-10-21 18:51:26 -07:00
Shalini Krishnamoorthi
b11c90dac5 msm: mdss: Correct the format specifiers in sscanf function
In many parts of the code the sscanf function was getting
an unsigned integer with a wrong format specifier. Changed
the format specifiers appropriately. Single variable sscanf
are replaced by kstrtouint at reported places.

CRs-Fixed: 1024872
Change-Id: I03ce718b0456d437d31d701586965d0aa7443b51
Signed-off-by: Shalini Krishnamoorthi <shakri@codeaurora.org>
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2016-10-21 18:51:00 -07:00