Commit graph

576281 commits

Author SHA1 Message Date
Linux Build Service Account
3d91f26e44 Merge "soc: qcom: smem: Update CDSP processor ID" 2016-10-13 19:11:36 -07:00
Linux Build Service Account
1bbcf2d2e4 Merge "msm: ipa3: fix benign prints on ipa3_usb_init" 2016-10-13 19:11:35 -07:00
Linux Build Service Account
7eda0b88c9 Merge "ARM: dts: msm: Add support for Lpass PIL on msmfalcon" 2016-10-13 19:11:34 -07:00
Linux Build Service Account
9336847785 Merge "usb: pd: Fix PR_SWAP handling" 2016-10-13 19:11:33 -07:00
Linux Build Service Account
580442d0a6 Merge "qpnp-fg-gen3: add support to configure ki coefficients during discharge" 2016-10-13 19:11:32 -07:00
Linux Build Service Account
4a10b1c33d Merge "qpnp-fg-gen3: Add support to hold soc at 100 when charge is full" 2016-10-13 19:11:31 -07:00
Linux Build Service Account
4b5f689e15 Merge "ASoC: wcd934x-dsp-cntl: Make sure memories can enter deep sleep" 2016-10-13 19:11:31 -07:00
Linux Build Service Account
0c4dd697ad Merge "ASoC: wcd934x-dsp-cntl: add support for codec restart" 2016-10-13 19:11:30 -07:00
Linux Build Service Account
c46c40d020 Merge "icnss: Remove msm_bus bandwidth vote" 2016-10-13 19:11:29 -07:00
Linux Build Service Account
cf584269c5 Merge "iommu/io-pgtable-arm: Use outer shareable for all configurations" 2016-10-13 19:11:28 -07:00
Linux Build Service Account
2a80956ae6 Merge "ASoC: codecs: Add teardown() call in shutdown" 2016-10-13 19:11:27 -07:00
Linux Build Service Account
511b8dcdfe Merge "msm: ipa: update wan pool size on napi enable" 2016-10-13 19:11:26 -07:00
Linux Build Service Account
4de07155f9 Merge "sched/cgroup: Fix/cleanup cgroup teardown/init" 2016-10-13 19:11:24 -07:00
Linux Build Service Account
cade0ea953 Merge "soc: qcom: glink: Fix uninitialzed return value" 2016-10-13 19:11:23 -07:00
Linux Build Service Account
3c9194d93b Merge "soc: qcom: qsee_ipc_irq_bridge: Fix null pointer dereferences" 2016-10-13 19:11:22 -07:00
Siena Richard
efb766e449 drivers: soc: add size checks and update log messages
Add size checks to validate minimum size is met. Update log messages
to include only relevant information to ensure logs are accurate and
useful.

Change-Id: Idf76a7d964ec6989a0474d49895e54103f17938b
CRs-fixed: 1073129
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-10-13 17:32:42 -07:00
Hemant Kumar
39f9f52879 usb: gadget: f_midi: Use 1024 bytes as MIDI buffer size
Some UDC driver doesn't allow or throw errors when USB request buffer
queued is unaligned i.e. buffer size is not equal to wMaxPacketSize or
multiple of wMaxPacketSize. Fix this issue by using 1024 bytes as MIDI
buffer size instead of 256 bytes.

Change-Id: I71d520a5a800a3e612dc4d57e7baffa93fad61b3
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-10-13 17:10:44 -07:00
Tatenda Chipeperekwa
c53f699c80 msm: mdss: dp: add support for logging event names
Add support for logging event names for debug purposes.

CRs-Fixed: 1076516
Change-Id: I85cc4d5ce92450d038d3a1f4fcc5ac51bdbb3bbf
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-13 15:09:04 -07:00
Tatenda Chipeperekwa
cb0dd4bc98 msm: mdss: dp: update Clock Recovery phase of link training
Update TRAINING_PATTERN_SET then TRAINING_LANEx_SET in the
Clock Recovery phase of link training as this is the sequence
mandated in the display port specification.

CRs-Fixed: 1076516
Change-Id: I7aa157d9377799563180792fe5d31a22a7aff0e1
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-10-13 15:08:40 -07:00
Runmin Wang
90c2d5300e soc: qcom: core_hang: Separate sysfs entry for silver and gold cluster
Silver and gold cluster use different PMU_EVENT and may need to have
different threshold values.

This patch creates different sysfs entries for silver and gold cluster.

CRs-Fixed: 1004392
Change-Id: I88cdf5110cadb44a81c0c700d5188bf639bb2129
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-10-13 13:04:11 -07:00
Harshdeep Dhatt
fc078e8dee msm: kgsl: Remove DPM registers from snapshot
Remove the DPM registers from a5xx snapshot as they are
not needed for A540.

CRs-Fixed: 1074810
Change-Id: Ic4259821e1ee74e49068545208587ad66ac29679
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-10-13 14:00:28 -06:00
Gaurav Kohli
e1c41fb41b ARM: dts: msm: Add support for Lpass PIL on msmfalcon
Add support for Lpass PIL which facilitates the loading of Lpass
firmware, authentication and bringing it out of reset.

Change-Id: I587b39bc302449591cc0c71ff15b740374a8af4d
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-10-13 12:47:33 -07:00
Linux Build Service Account
fac2c0da16 Merge "misc: qcom: qdsp6v2: Add missing initialization" 2016-10-13 12:29:08 -07:00
Linux Build Service Account
6f38194db1 Merge "clk: qcom: Add support for the turing vote clocks" 2016-10-13 12:29:07 -07:00
Linux Build Service Account
0ca3e09432 Merge "ARM: dts: msm: Add support for GDSCs for MSMFalcon/MSMtriton" 2016-10-13 12:29:06 -07:00
Linux Build Service Account
601676fcf3 Merge "ASoC: wcd9xxx: Disable external clock buffer when mclk is not in use" 2016-10-13 12:29:06 -07:00
Linux Build Service Account
858faf3e12 Merge "ASoC: wcd-spi: Initialize local variables before usage" 2016-10-13 12:29:05 -07:00
Linux Build Service Account
a6138ccde2 Merge "sched: bucketize CPU c-state levels" 2016-10-13 12:29:04 -07:00
Linux Build Service Account
daa54e82ab Merge "sched: use wakeup latency as c-state determinant" 2016-10-13 12:29:04 -07:00
Linux Build Service Account
ca43d0b19b Merge "net: core: Remove warning for cloned packets in ingress path" 2016-10-13 12:29:03 -07:00
Linux Build Service Account
7e92274f8b Merge "defconfig: msm: Turn on scheduler tuning configs" 2016-10-13 12:29:02 -07:00
Linux Build Service Account
201e421789 Merge "sched/tune: Remove redundant checks for NULL css" 2016-10-13 12:29:02 -07:00
Skylar Chang
21fab3e703 msm: ipa: fix mutex_lock with task->state != RUNNING
mutex_lock should be only called when task->state
== RUNNING, fix this warning msg from kernel

Change-Id: Idf045ba868e3fa47837575b268917838ff71f1a6
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-13 12:10:46 -07:00
Ingrid Gallardo
feea7e613d msm: mdss: fix typo in the error message for multirect validation
If during the multirect validation an error is found,
driver tries to print the both rectangles causing
the error. Currently the printed values are wrong
due a typo on the height of the rectangles, this is
misleading to debug the actual errors.

Change-Id: Ic48e3a65b19c378deff7e5c149d5b30aca6e73c7
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-10-13 11:58:30 -07:00
Jack Pham
c447a1b652 usb: pd: Fix PR_SWAP handling
Fix several issues found with PR Swap robustness.
- Change Rd->Rp as part of PE_PRS_SNK_SRC_TRANSITION_TO_OFF
  instead of PE_PRS_SNK_SRC_SOURCE_ON since the latter state
  is entered once the connection is re-established post-swap.
  Make sure to also notify the charger to stop drawing power.
- Properly handle/ignore CC disconnect in psy_changed() which
  happens during the swap operation. Similarly, don't queue the
  state worker when detecting CC re-connect after becoming sink
  as the transition is already handled via PD message exchange.
- Restore DRP toggling as soon as the operation is completed
  in order to cycle properly after the next disconnection.
- Add tSwapSourceStart delay after becoming new source and
  before sending the source capabilities messages.
- Add extra time (< tNewSrc) after enabling VBUS to allow it
  to fully ramp up after becoming the new source.
- Unconditionally disable Vconn regulator during disconnect,
  since it's now possible to have it on even in sink mode.

Change-Id: I9ee694d56dac11c315b45c8fc1e8be9426d06719
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-13 11:30:21 -07:00
Jack Pham
172cec3a2c usb: pd: Improve sink hard reset handling
During hard reset in sink mode, move the wait for VBUS to
reconnect to the PE_SNK_TRANSITION_TO_DEFAULT state. Use
the hrtimer to wait up to the maximum expected time for
VBUS to come back, which is triggered by the CC notification
from psy_changed(). This simplifies PE_SNK_STARTUP to only be
invoked when VBUS is already present and eliminates the
PE_SNK_DISCOVERY state.

When a non-PD source is connected, as the engine attempts to
wait for source capabilities this will result in hard reset
getting attempted 3 times with the hrtimer reaching full
timeout each time (for a total of ~6s) before settling.

Change-Id: Iee74c206b28fea9b75df2d234609a7939bc3d93c
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-10-13 11:30:21 -07:00
Dhoat Harpal
4a9524cbec soc: qcom: smem: Update CDSP processor ID
The local table of processor IDs maintained by SMEM must match the table
of processor IDs maintained by SMEM on remote processors, because the
IDs are global.

Update the local table of processor IDs to match the table on remote
processors.

CRs-Fixed: 1077384
Change-Id: I24d3809450bf63cbc6b930575c310cee116910f7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-10-13 17:10:19 +05:30
Saurabh Kothawade
1008ad689c msm: vidc: Update plane count in get-format
Currently, driver updates plane count only when client
requests buffer requirements. If it queries buffer
format before requesting buffer requirement, driver
returns incorrect plane count. With this change,
driver updates plane count in get-format as well.

CRs-Fixed: 1021026
Change-Id: Id829f07123963584f6c7fe0174e34006d2697aa9
Signed-off-by: Saurabh Kothawade <skothawa@codeaurora.org>
2016-10-13 03:20:24 -07:00
Taniya Das
b993440492 clk: qcom: Add support for the turing vote clocks
The turing hlos1 and hlos2 vote clocks is required to be enabled before
accessing the turing SMMUs, so add support for the same.

Change-Id: I9e4b0d7cc5f164b207a1a0e2c1ae24bdfd8fa063
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-13 09:13:31 +05:30
Taniya Das
b445741142 ARM: dts: msm: Add support for GDSCs for MSMFalcon/MSMtriton
Support for the GDSCs which are required to be enabled/disabled by clients
on msmfalcon and msmtriton.

Change-Id: I0bad9d7bbee060ef70f3e8e6274fccc86fe9df6e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-13 09:12:37 +05:30
Devesh Jhunjhunwala
b420097ef0 leds: qpnp-flash-v2: Fix possible NULL pointer dereference
Update the flash_led_brightness_set callback to gracefully handle
invalid led_class device, and being called before driver probe is
complete.

CRs-Fixed: 1060705
Change-Id: Ice714c1fad1d202d05de6ecaf6d1d1ec17a04c15
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-10-12 20:03:40 -07:00
Phani Kumar Uppalapati
7eb661ba7e ASoC: wcd934x: Update DSD register sequence for v1.1
Update DSD playback register sequence for wcd934x
codec version 1.1.

Change-Id: I993273bcf26f8f53f6d9c8cccec5c4b17c8a0e95
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-10-12 18:50:38 -07:00
Devesh Jhunjhunwala
169fd1f5f5 leds: qpnp-flash-v2: Add support for preemptive charger mitigation
Add support to configure and trigger preemptive charger
mitigation in flash driver.

Change-Id: Iec92d2037fcc60446760182c9eda53918e6e094c
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-10-12 18:40:32 -07:00
Devesh Jhunjhunwala
889d937b11 leds: qpnp-flash-v2: Add support for configuring hardware mitigation
Add support to program the ILED_GRT_THRESHOLD register, which
controls the led current threshold beyond which HW automatically
triggers preemptive mitigation.

Change-Id: I3ea14c8c76c4496eeeb11caf63c3ee62f031b157
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-10-12 18:38:54 -07:00
Sudheer Papothi
52f708c2a3 ASoC: wcd9xxx: Disable external clock buffer when mclk is not in use
External clock buffer being turned on even when mclk is gated results
in power leakage. Disable external clock buffer when mclk
is not in use.

Change-Id: Iea45a4e8ab4560a093c44800ddd7b1311471c646
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-10-12 18:33:28 -07:00
Skylar Chang
8b81dd7099 msm: ipa3: fix benign prints on ipa3_usb_init
On device bootup, ipa3_usb_init tried to access
IPA3's ipc_logbuf which is not initialized yet.
Therefore seeing those benign prints as "IPA HW
is not supported on this target". The fix is to
not access IPA3's ipc_logbuf on bootup and also
add debug print on ipa_api.c to see which entity
calling IPA3's API before ipa3-driver is probed.

Change-Id: I7aa23eabdf963146ae628eb159eee13a3e2bb935
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-10-12 18:10:21 -07:00
Aravind Venkateswaran
a17f1f9338 clk: msm: mdss: fix DSI PLL post vco divider configuration
The post vco divider clock in the DSI PLL can only be configured
to a fixed value of 1 or 4. Current implementation can result in
the divider being set to any value between 1 and 4 which can
result in failures while enabling the DSI pixel clock. Fix this
by replacing the post vco divider with a fixed /1 and /4 dividers
followed by a mux clock.

CRs-Fixed: 1064277
Change-Id: I01bc7304e446c622849c678c64a3fd6881413e89
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-10-12 16:38:35 -07:00
Bhalchandra Gajare
e92ad0d204 ASoC: wcd-spi: Initialize local variables before usage
Initliaze the local variables that are used in functions to return
success or error codes. This fixes possible cases where undefined
error codes are returned.

CRs-Fixed: 1070186
Change-Id: I74bed6cfd9753765b15d17d69ba30f61875e87c8
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-12 15:41:29 -07:00
Haynes Mathew George
c9579e0a6b misc: qcom: qdsp6v2: Add missing initialization
Use vars in driver context after proper initialization

Change-Id: I3e59e27534b8e1088d74b42c72e0075d2fe910e6
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
CRs-Fixed: 1049521, 1049615
2016-10-12 15:24:22 -07:00
Bhalchandra Gajare
476dae00da ASoC: wcd934x-dsp-cntl: add support for codec restart
During subsystem restart, the codec hardware goes through reset. Add
support in the wcd934x dsp controller driver to handle codec reset
and perform necessary reset of the codec dsp.

Change-Id: I9916354c04e24708aced5fc63bc12ddfe87b49f2
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-10-12 15:05:17 -07:00