Commit graph

576240 commits

Author SHA1 Message Date
Linux Build Service Account
b2799f1e25 Merge "soc: qcom: glink: Fix ctx initialization with magic number" 2016-10-14 03:40:30 -07:00
Linux Build Service Account
65767b7f53 Merge "fbdev: use unsigned integers to prevent overflow" 2016-10-14 03:40:29 -07:00
Vevek Venkatesan
1e5dde5a4c input: misc: pat9125: add gpio configuration and pinctrl support
Pat9125 is a gpio driven i2c slave. This change adds the gpio
configuration and pinctrl support for pat9125 driver.

Change-Id: I2a9b379715622b5f010a5780ca481da7f9619400
Signed-off-by: Vevek Venkatesan <vevekv@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-10-14 14:37:26 +05:30
xiaonian
9b9f5b1124 ARM: dts: msm: Enable SD card for msmcobalt QRD VR1 board
Change polarity of corresponding GPIO to enable SD card
detection for msmcobalt QRD VR1 board.

CRs-Fixed: 1075999

Change-Id: I12bfceb01990873db3f4287f85deccb6b6b36495
Signed-off-by: xiaonian <xiaonian@codeaurora.org>
2016-10-14 02:04:38 -07:00
Prashanth Bhatta
312d5909bb icnss: Switch to CXO before XO disable
During hardware reset if XO gets disabled and while polling to
confirm XO is disabled, bus timeout is noticed. So add
instructions to switch to CXO before disabling XO.

CRs-fixed: 1076441
Change-Id: Ia893786de4689e07f8d99d1ba3d8f1d6efcc7686
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
2016-10-13 23:22:23 -07:00
Taniya Das
d7c369c0b1 clk: qcom: clk-voter: Add support for voter clocks
Voter clocks nodes would require aggregation of all child node rates.
Certain clocks that are not rate-settable can still take
advantage of voter clock functionality.

Change-Id: Ibab7a5aa6aa89236974fcd0d65ffe0bd1a7acb12
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-14 10:58:17 +05:30
Linux Build Service Account
c116fa434f Merge "ARM: dts: msm: Fix clock for 720p@240fps usecase" 2016-10-13 19:11:39 -07:00
Linux Build Service Account
2e28fde065 Merge "msm: vidc: Update plane count in get-format" 2016-10-13 19:11:38 -07:00
Linux Build Service Account
3bc1baa947 Merge "defconfig: Enable USB MIDI Function driver for msmcobalt" 2016-10-13 19:11:37 -07:00
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