Commit graph

577383 commits

Author SHA1 Message Date
Siena Richard
a608944cfb drivers: soc: Add new parameters for APR IPC logging
Add the ability to log source address, dest address, opcode, token,
and possibly return value in APR IPC logging to better assist
with debugging issues.

CRs-fixed: 1064187
Change-Id: I86976ac6139b8c76d9239acae073f03fbc5e0a38
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-10-26 10:39:41 -07:00
Jack Pham
a9f360e8ae usb: pd: Observe PSHardResetTimer for source hard reset
Ensure the PSHardResetTimer is observed in the source case
when receiving a hard reset. Currently it is handled only
when sending a hard reset. This is achieved by moving
PE_SRC_TRANSITION_TO_DEFAULT from usbpd_set_state to usbpd_sm.

Change-Id: Iea0a8cd64fcce14a99b828cadb0f07664ce858f0
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-26 09:12:34 -07:00
Jack Pham
df63068acb usb: pd: Fix sink hard reset looping bug
commit f2449fb61a ("usb: pd: Clear PD_IN_HARD_RESET in
PE_SNK_TRANSITION_TO_DEFAULT") introduced a subtle bug by
moving the clearing of the pd->hard_reset flag in sink mode
to the PE_SNK_TRANSITION_TO_DEFAULT state. This caused a
regression in which the state machine acts as if it had
received a hard reset signal and infinitely loops back there.
The cycle could only be broken if a physical disconnect happens.
Fix this by renaming the flag to hard_reset_recvd and only using
it when receiving, and not sending a hard reset.

Change-Id: I04008d0bfc9a874e08b45f78a937004e9f37527d
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-26 09:11:04 -07:00
Surendar karka
57260dab56 ASoC: msm: qdsp6v2: Change audio drivers to use %pK
Change all qdsp6v2 audio driver to use %pK instead
of %p. %pK hides addresses when the users doesn't
have kernel permissions. If address information
is needed echo 0 > /proc/sys/kernel/kptr_restrict.

CRs-Fixed: 1052832
Change-Id: Id6d45982cbe42a113e58c9b6509eb6ef8064aeef
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2016-10-26 21:07:26 +05:30
Sudheer Papothi
a5d2e8dce1 ASoC: msmcobalt: Fix MCLK routing on msmcobalt for WCD9340
MCLK TX widget has been added for WCD9335 for recording usecases,
but this results in failure of audio recording usecases on
WCD9340 as msmcobalt supports dynamic detection of codecs. Add
corresponding MCLK widgets based on codec selection for audio
recording usecases to work properly on both codecs.

CRs-Fixed: 1022917
Change-Id: I772e05990a796c99c3b6b6f50323d87b5894231b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-26 19:49:19 +05:30
Sudheer Papothi
03e7117725 ARM: dts: msm: Add dmic clock rate on ECPP path for msmcobalt
DMIC clock on ECPP(Echo cancellation Ping-Pong) path can
run at 1.2MHz. Change configures DMIC clock rate for ECPP
path in codec device node.

CRs-Fixed: 1022917
Change-Id: Ib846318dc3d359672314485d386a23fd8621bfda
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-26 07:07:20 -07:00
Abdulla Anam
3096610b62 msm: vidc: Correct debugfs directory name
Video instance pointer is used directly as a unique name for
the instance's corresponding debugfs directory. %pK will remove
the uniqueness and hence only first among any concurrent sessions
will be able to create a corresponding debugfs directory. Use %p
as the name is not directly revealed through prints.

Change-Id: I3a79950b76c1c38e487471f21dc60590b032dd3f
Signed-off-by: Abdulla Anam <abdullahanam@codeaurora.org>
2016-10-26 04:39:41 -07:00
Ananda Kishore
48c3c0c102 ARM: dts: msm: add SLPI fw name property for msmcobalt
Add SLPI fw name property to support dynamic loading of SLPI
fw images based on the version info.

Change-Id: I69981b603526575758376695d7a5e9affd389dbe
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
2016-10-26 15:40:13 +05:30
Ananda Kishore
8b2625febf sensors: ssc: add support to read SLPI fw name
Read SLPI fw name from device node to dynamically load the SLPI
fw image.

Change-Id: I9ecc0cc1b5de5e0bd47c658747463a4498123655
Signed-off-by: Ananda Kishore <kananda@codeaurora.org>
2016-10-26 15:39:02 +05:30
Sarada Prasanna Garnayak
86ea96819d defconfig: Enable CONFIG_ICNSS_DEBUG for 32-bit msmfalcon
Enable CONFIG_ICNSS_DEBUG to enable driver debugging.

CRs-fixed: 1082440
Change-Id: I287761ce5b13dc139f59270dceac67cc9ae45cff
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-10-26 15:34:30 +05:30
Sarada Prasanna Garnayak
b5e9e70478 defconfig: Enable CONFIG_ICNSS_DEBUG for 32-bit msmcortex
Enable CONFIG_ICNSS_DEBUG to enable driver debugging.

CRs-fixed: 1082440
Change-Id: I6028d4a01ddfd8f8589a1de5322c2780d256d5bc
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2016-10-26 15:29:51 +05:30
Linux Build Service Account
5b7da25887 Merge "mdss: display-port: add support for hdcp 2.2" 2016-10-26 01:10:43 -07:00
Linux Build Service Account
c3b776a3ae Merge "icnss: Stay awake during recovery" 2016-10-26 01:10:40 -07:00
Linux Build Service Account
3319e8c1d7 Merge "ASoC: wcd934X: Update TX gain correctly after decimator enable" 2016-10-26 01:10:39 -07:00
Linux Build Service Account
49cc9d17a4 Merge "ASoC: wcd9335: Update TX gain correctly after decimator enable" 2016-10-26 01:10:38 -07:00
Linux Build Service Account
84072dbeee Merge "ARM: dts: msm: configure the WLED sink correctly for msmcobalt platforms" 2016-10-26 01:10:36 -07:00
Linux Build Service Account
22d4148b42 Merge "clk: qcom: Remove non-op BRANCH_HALT_NO_CHECK_ON_DISABLE flag" 2016-10-26 01:10:35 -07:00
Linux Build Service Account
9b87ed2468 Merge "lpm-levels: Change _WARN_printf to pr_err when residency < 0" 2016-10-26 01:10:34 -07:00
Linux Build Service Account
2d51941989 Merge "clk: Check for failure at clk_change_rate" 2016-10-26 01:10:33 -07:00
Linux Build Service Account
0ff93a3e06 Merge "ARM: dts: msm: update VDD_GFX CPR RO scaling factors for msmcobalt v2" 2016-10-26 01:10:32 -07:00
Linux Build Service Account
cf4ce23d22 Merge "msm: vidc: Update log level for power collpase" 2016-10-26 01:10:31 -07:00
Linux Build Service Account
d40c1c45da Merge "msm: vidc: Check ion_handle for errors" 2016-10-26 01:10:31 -07:00
Linux Build Service Account
ade6f4501d Merge "iommu/arm-smmu: on domain destroy invlidate domain cfg" 2016-10-26 01:10:29 -07:00
Linux Build Service Account
8a6107696c Merge "msm: camera: sensor: Update CSI PHY setting for msmcobalt" 2016-10-26 01:10:28 -07:00
Linux Build Service Account
7729df580a Merge "msm: camera: Restructure data handling to be more robust" 2016-10-26 01:10:27 -07:00
Linux Build Service Account
221e6dc71a Merge "msm: camera: AV timer support for HAL3" 2016-10-26 01:10:25 -07:00
Linux Build Service Account
3127c29d05 Merge "msm: sensor: Adding mutex for actuator power down operations" 2016-10-26 01:10:24 -07:00
Linux Build Service Account
7269d7991e Merge "msm_serial_hs: Add defensive checks due to sudden port close" 2016-10-26 01:10:23 -07:00
Lior Barenboim
1e0b8d4f59 soc: qcom: add support for fingerprint sensor driver
The QBT1000 driver provides an API for communicating
with trustzone applications and handles firmware event
interrupts.
The driver supports the following features:
 - loading and unloading trustzone applications
 - sending commands to trustzone applications
 - voting/un-voting for clocks before/after making
   a trustzone call
 - receiving firmware events, signalled by interrupts,
   and providing them to the driver client
 - sending a key event in response to firmware finger
   detect events

Change-Id: I1d9d7a6b6bd2d3420a28a8c09868143bb9bd3b27
Signed-off-by: Lior Barenboim <liorb@codeaurora.org>
2016-10-26 10:43:09 +03:00
Vijayavardhan Vennapusa
71db2ab530 USB: dwc3-msm: Disable pipe clock requirement for HS/FS only mode
USB3 core expects pipe clock input for USB connection establishment
and functionality working. In case of maximum speed of USB3 core set
to HS/FS mode, it is required to disable pipe clock requirement and
instead use UTMI clock from HS PHY as clock input. Hence disable
this pipe clock requirement for the case, where maximum speed is set
to FS as well.

Change-Id: Ife9d6a16e1607b40c71eb1897947bf4645ac9561
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-10-25 22:03:59 -07:00
Subbaraman Narayanamurthy
ec38ffc845 leds: qpnp-flash-v2: fix safety timer configuration
Safety timer is using an offset of 1ms whereas it should use
10ms. Fix the calculation to configure safety timer properly.

CRs-Fixed: 1076402
Change-Id: If06c421c559277066cf9ffd86e71fe366ab7bf8d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-25 20:32:59 -07:00
Subbaraman Narayanamurthy
71d0b50560 leds: qpnp-flash-v2: fix ITARGET configuration
Currently, the code calculated to write to ITARGET based on the
brightness level or current is off by 2 bits. Fix it.

CRs-Fixed: 1079311
Change-Id: I58421ba7f784f7467015a5943aecc2dd0022145a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-25 20:32:58 -07:00
Tatenda Chipeperekwa
821b280d6a msm: mdss: dp: process downstream port status change
Add support to process the downstream port status change if it is
detected during HPD IRQ.

Change-Id: I967f13216859be4c147e03c7ea318958300b2886
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-25 18:35:00 -07:00
Linux Build Service Account
e76e6c8d93 Merge "coresight: tmc: skip tmc read if mem allocaiton failed" 2016-10-25 18:31:06 -07:00
Linux Build Service Account
4fc7d493eb Merge "sched: Set curr/prev_window_cpu pointers to NULL in sched_exit()" 2016-10-25 18:31:05 -07:00
Linux Build Service Account
9f8e4e930a Merge "soc: qcom: use interruptible wait_for_completion API" 2016-10-25 18:31:04 -07:00
Linux Build Service Account
cdb01bf466 Merge "ARM: dts: msm: enable VDD_GFX CPR aging adjustments for msmcobalt v2" 2016-10-25 18:31:03 -07:00
Linux Build Service Account
8114dc9b37 Merge "ASoC: msmcobalt: Add independent clock support on codec" 2016-10-25 18:31:03 -07:00
Linux Build Service Account
6c6aeff205 Merge "ASoC: wcd934x: Update CPR register defaults" 2016-10-25 18:31:02 -07:00
Linux Build Service Account
a1989e62bc Merge "drivers: soc: Initialize return var to default value" 2016-10-25 18:31:01 -07:00
Linux Build Service Account
0861ec02cc Merge "soc: qcom: Use a deferrable timer base for the msm watchdog" 2016-10-25 18:30:59 -07:00
Linux Build Service Account
349ce03687 Merge "qpnp-fg-gen3: Fix storing nominal capacity to actual capacity" 2016-10-25 18:30:58 -07:00
Linux Build Service Account
6cc1473d14 Merge "USB: pd: Fix compilation issues for 32 bit support" 2016-10-25 18:30:57 -07:00
Linux Build Service Account
df72265f5a Merge "ASoC: wcd9335: Fix register sequence for CPE configuration" 2016-10-25 18:30:55 -07:00
Linux Build Service Account
e4fab74617 Merge "ASoC: msmcobalt: Add CPE ECPP DAI instance for ECPP path" 2016-10-25 18:30:55 -07:00
Linux Build Service Account
82f8a0f9ac Merge "ARM: msm: dts: add second CPE session for msmcobalt" 2016-10-25 18:30:54 -07:00
Bhalchandra Gajare
06f5b93af0 ASoC: wcd-dsp-mgr: fix restart logic when codec comes back online
During subsystem restart, when restart of the codec DSP is attempted,
the status is already moved to codec up whereas driver is checking
for codec down. This causes the initialization of components to be
skipped and codec dsp does not come back online. Change fixes the
condition check to make sure the correct sequence is followed.

CRs-Fixed: 1080392
Change-Id: I05345b8f5d108e59863ee4e37ed75fd32a284ee5
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-25 18:05:07 -07:00
Bhalchandra Gajare
0fa1d41b8a ASoC: wcd934x-dsp-cntl: fix memory enable/disable sequence
Enabling only the required memory for codec DSP helps reduce power
consumption with codec DSP is not used. Update the memory enable/
disable sequence such that the switchable memory domain is enabled
only when the codec DSP is being used.

CRs-Fixed: 1075303
Change-Id: I0552bf8a48c214b89e160fe4df145973f02c2788
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-25 17:47:18 -07:00
Olav Haugan
95ceec13f7 sched: Fix compilation issue with reset_hmp_stats
reset_hmp_stats was moved to another file and when CONFIG_CFS_BANDWIDTH
is enabled there is code still referencing this in the original file
causing compilation error.

Change-Id: Iab7fc8551b628c443ce751026b06c5ff4ebba39a
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-25 13:13:09 -07:00
Olav Haugan
6812bb69d0 sched/fair: Fix compilation issue
Code does not compile with CONFIG_CFS_BANDWIDTH.

Change-Id: Idb74e9df4fcb55085ac869f5ba273cef4a3eb9eb
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
2016-10-25 10:40:11 -07:00