Commit graph

580339 commits

Author SHA1 Message Date
Taniya Das
44aa223a3e clk: move check for CLK_ENABLE_HAND_OFF at unused tree
The commit 04a0136aeea5 ("clk: introduce CLK_ENABLE_HAND_OFF flag")
assumes that the first time clock client calls a clk_prepare &
clk_enable, the clocks from that point of time could be on their own.
But there could be use cases which could have impacts due to this
handling. Moving the handoff counts for prepare and enable at unused
tree level.

Change-Id: I7d527571c2eb4d53d58d82126989bd673de12e2d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 11:42:24 +05:30
Michael Turquette
d8d0e55ed1 clk: introduce CLK_ENABLE_HAND_OFF flag
Some clocks are critical to system operation (e.g. cpu, memory, etc) and
should not be gated until a driver that knows best claims such a clock
and expressly gates that clock through the normal clk.h api.

The typical way to handle this is for the clk driver or some other early
code to call clk_prepare_enable on this important clock as soon as it is
registered and before the clk_disable_unused garbage collector kicks in.

This patch introduces a formal way to handle this scenario that is
provided by the clk framework. Clk driver authors can set the
CLK_ENABLE_HAND_OFF flag in their clk data, which will cause the clk to
be enabled in clk_register(). Then when the first clk consumer driver
comes along and calls clk_get() & clk_prepare_enable(), the reference
counts taken during clk registration are transfered (or handed off) to
the clk consumer.

At this point handling the clk is the same as any other clock which as
not set the new CLK_ENABLE_HAND_OFF flag. In fact no changes to any
clock consumer driver are needed for this to work.

Change-Id: Ib5247f6bceb1f555c03103f061af089755b2de62
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Patch-mainline: patchwork.kernel.org @ 02/11/16, 9:19
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 11:41:12 +05:30
Taniya Das
9ae68a63d8 defconfig: msm: Add support for CPU OSM clock
CPU OSM clock is required to be enabled for cpu to be able to scale
frequencies for the CPU.

Change-Id: I5680dc5333c9664e1316c29a91e29231f15eb4f1
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 11:29:22 +05:30
ansharma
20da6a6d27 leds: qpnp-wled: Update WLED config
Update WLED configuration to enable HVG_PULL_SWITCH bit to
temporarily pull up Hvgate with larger switch(for pm2falcon)
and enable DEBOUNCE_BYPASS_ILIM bit to remove debouncing for
Ilim. This guarantee stable operation of WLED.

CRs-Fixed: 1102641
Change-Id: I39a1266f4158e71238f374b6cba49e1a8c2b1a3b
Signed-off-by: ansharma <ansharma@codeaurora.org>
2016-12-22 10:28:35 +05:30
Ajay Singh Parmar
c1f984bb57 msm: mdss: hdcp_1x: fix cp_irq and bstatus read
Check if cp_irq has been raised by sink, if so, read bstatus
register to check the status of hdcp at sink side. Clear the
cp_irq after reading bstatus. Also, fix the bstatus read size
which is one byte.

Change-Id: I46231f82878f8d2557aa06ccfa5c74f67252c6f8
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 19:46:55 -08:00
Taniya Das
79871232a8 clk: qcom: Support CPU clock for OSM for common clock framework
Following list of changes have been made
- Update the clock osm to register to common clock framework
- Update clock ops as per common clock framework
- cleanup unused function (clk_osm_setup_osm_was)
- Fix tabs for macro definitions
- Add clocks ids for power and perf clock for clients

Change-Id: I389cc9e93a26a434be752cf74444d6c0985ff36d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-12-22 09:09:20 +05:30
Linux Build Service Account
9982ad3f36 Promotion of kernel.lnx.4.4-161221.1.
CRs      Change ID                                   Subject
--------------------------------------------------------------------------------------------------------------
1042240   I8eeb3508e2258318538e893069a2c74c068026fc   msm: mdss: avoid requesting ov_lock in esd thread
1089686   I363ee028eeb360ef998fd90c1ff94bb09c4ac8b4   icnss: Remove hardware reset sequence
1097768   I26893b0d5974e8aff3c2ed7147560ba113af0155   ARM: dts: msm: Update MPM pin mappings for USB for msmfa
1103409   I109c07cd15052f4be15fee203f7cbaf02b6fd5cf   qcom-charger: smb2: support for micro USB mode
1048766   Ic889ef002717a8fa33e9b7c27fab14a8778bba89   USB: dwc3-msm: Perform HW reinitialization on HC died er
1103656   I530f9f5098d7d2cd6bb343e44c2b8b808af69414   sched/tune: remove duplicate allow_attach in schedtune_c
1074954   Id2be933de4072f3953536c9a2b75f08763352673   ASoC: msm: qdsp6v2: Modify wait event and cmd state chec
1099659   I4dcf3d794c0e7e111a86e72d26bed8de7e3329a1   mdss: mdp: unmap buffers before secure transition
1080041   I91a6cfcc3b78159cea505e388749e1610dadeae6   ARM: dts: msm: add a new panel driver to enable display
1093816   I38cad55e06ef6496747ba03bfcfaf4328a347c8f   msm: sde: Update capability for SDE rotator
1092294   If9577b1303c7cfad5c7175448ca93582222fbbb5   scsi: ufs: fixed DUN size for ICE encryption to be 4k
1056777   I1cbc343ab33a8e639c4aedf0c5e0323f5730a13f   jtag-fuse: add jtag-fuse support for etm save restore
1009449   I3d3c0321d9311617c6ee492c55809f36de6ae412   USB: composite: Send stall when no config is active
1100366   I0c1fafb03c9848d043599fcee19e9bf07c3a3acd   usb: xhci: Acknowledge pending events in secondary event
1094768   I21b23137dcb310793656d7104594803d1727bbaa   msm: mdss: Fix scaler enable flag setting
1100366   I2ec3d74867e0129dad395d1dbe920b468ac5949d   usb: core: Allow secondary event ring clean upon disconn
1094763   Ib0de01379a02636d35b49770aa82ea53de7c2768   ASoC: msm: migrate to cdc pinctrl functions
1049671   I015d6674afd605c63cd01ceec0109d9da5462629   diag: dci: Protect the client list and command entries
1096825   I91c1ba3360592f258a2c3c4e902394c3ddc77bca   scsi: ufs: make sure all interrupts are processed
1101743   I7ac87efea6e67e727839e36fb1a4a85faa219801   ARM: dts: msm: Update the QoS settings for msmfalcon
1094763   I8b7fac5dd2c1f4aee3843c4f1b7fb548b389e192   defconfig: enable compile audio for msmfalcon
1103341   Id5d42a941c1583edc9c1ce0803c764b87a445313   ARM: dts: msm: Add msmfalcon device tree files for inter
1099759   I3332d7e3bd0b310b486d273b7f9884410509ce25   ASoC: wcd934x: Add missing INT0 interpolator path
1102922   Ic85fdf082c8a5e3676c99398f42d36963cd352f3   ARM: dts: msm: Disable lpm sleep modes for msmtriton
1097343   I6e873207aeee60e8e933430fc4e755aef81ab447   usb: phy: qusb: Keep LDOs ON during disconnect if PMI vo
1092683   I9b4a0710aa33942de2976f7ee158a8025dd6a20e   spcom: check size before calling copy_to_user()
1088736   I15ed94a8b505a7bae4d7ad31fd4ad1be240d75d6   msm: sde: add compression ratio support to v4l2 rotator
1101900   I2e6a7abb56f0e3efdf314a57db131837d029de2e   ext4 crypto: added support for O_DIRECT flag
1096831   Ia067c6969d1f323e4b40f553a786b9af0c4aee47   msm: sde: correct rotator unload sequence upon error
1095020   Id8a551fd3bc147c800ee1c98c2bc2b6f3bf6d380   msm: mdss: Fix null pointer dereference and unintialisat
1096168   Iefa3d000ba413239f127629ad11c96ffe6981cc2   lowmemorykiller: fix an uninitialized variable usage
1100850   Ibdf1c630525db84b384bd6d27269b0b74d77fee6   ARM: dts: msm: Correct pinctrl function for spi8 of msmf
1098025   Id8784fc3365e9010ada11ede31bdfb199ba52458   power: smb1351-charger: Fix ADC timer enum value for rea
1084618   I99dddc023b17a24e55a96bf3f9e81abe474891e1   defconfig: msm: enable remote debugger driver
1101693   I5b265ecd403bf09924ae6c58e56171f3a4d7e3d7   ARM: dts: msm: Add NFC device node for msm8998 QRD platf
1094175   I67081ccaf7d8c7943f9b2614454d01da77ad7724   ARM: dts: msm: remove turing-cti node from msmtriton
1096741   I42d0f8e72f8848de6ca2f143f115f39256144ec0   msm: mdss: Fix out of bound access of array indexes
1100622   I9c2063011247cca8105b39c913633cd7619a89eb   ASoC: wcd-mbhc: check HPH PA status before impedance det
1056777   I329aa4084c0983f066cdd06455c3d69e255a420c   ARM: dts: msm: add jtag, hwevent and csr nodes for falco
1098648   Ia19d54df6086cfb0047fcdd8b04e7e0edff91cf7   usb: qusb2: De-assert TCSR_QUSB2PHY_CLAMP_DIG_N_1P8 upon
1093869   Ice62887451e91901cb16a6356b64f554b95eacc4   sound: usb: Handle audio control interface descriptor pr
1101743   I0991065984b35511c33ab4c9bd274ad465d19601   msm: msm_bus: Add new bus master id for pimem
1097543   Ifafab6a2a70950d763ec0717e507851d90aa088b   ARM: dts: msm: enable few features to single DSI sim cmd
1005919   I667ea843f77794e9384c22ece218853331751db6   USB: gadget: f_qdss: Add proper checks in usb_qdss_close
1086292   I0b84479bf892def42c0b59a684a850d8d5c01257   msm: mdss: add support for hw_rt bus client for mdss
1082939   I6c6721e8ff890feaf2d618c8170e346367a68c28   msm: camera: add logic to support sensor compatibility
1102312   Ibf74e3cbdb8a7b54cfb93334de6992eda553e7e5   thermal: tsens: Update critical interrupt functionality
1071936   I938ce65f42eebe31be27151281d7e8502ba29f6e   leds: qpnp-wled: Reconfigure SWIRE_AVDD default voltage
975525   I8ea299a4287401a0a01ff7bbdd86c37ccd138480   diag: Change to GFP_KERNEL in diagfwd_buffers_init()
1102312   I9445db12044071f92715a60cb76c38d061748cfa   thermal: tsens: Add support to parse critical interrupt
1095347   I039732d8c2a5fa98233647928283df8d9d3f3123   msm: mdss: dsi: Add chromaticity values for HDR support
1100018   I4362fde2928857253d2150e4d9531cada876cd58   USB: gadget: u_data_ipa: Handle usb requests allocation/
1103251   I9cde75ba78cab1aa41e9421ded203767c54635f7   ARM: dts: msm: Update regulator node for PIL for MSMFalc
1099546   Ic7f4b96f8ff993637d18faf54316b3ca12e8f6bd   ARM: dts: msm: Add extcon node for QRD starlord track 3
1101488   I1f99dc4b37e809cdc6fb4cafe7fb0b6d585cbd76   clk: msm: clock-osm: fix read-modify-write for LLM volt
936928   If715f611c48e91e360caa58f44e20ee17fcb6948   arm: Move topology_init to postcore
1101366   I8d76958b07d5cdd9f139bba21eae00e676bc9d96   ARM: dts: msm: Update smem id of CDSP PIL for MSMFALCON
1102347   I59126e7badc8c7b22bb4a0782e2119a76fd42ce8   defconfig: msmfalcon: enable memory cgroup
1096399   Ia2462116582b6e22c44cff88df2872e4127e5e29   sound: usb: auto suspend device only if it supports remo
1103329   I3142a5d2e13ed40f643c91594fd868c37620ce54   msm: kgsl: Get pages from the system incase mempool is n
1097768   I5c7d6b4d43baa0b387342a8bd261361a5c07fe23   Revert "USB: dwc3-msm: Enable power event irq in case of
989989   I5601d76c58263150a3ad5b026a8f2b10da087ba5   USB: dwc3-msm: Disable DBM endpoint in msm_ep_unconfig i
1098660   Icbeeb9b11a9bbe6808eb5c84b2561d6c74696522   msm: mdss: hdcp_1x: read contiguous data in a single rea
1103222   Ie6571c7b780f184e6af78c3c339e51820a09dfa8   ARM: dts: msm: Add support for clock debug for MSMfalcon
1100298   Iaff45907e78775975fa3035404dcfd9b27e6e816   msm: sde: secure camera changes for v4l2 rotator
1096825   Icc2a373f3f4599887c4f86632107ed11e0525153   scsi: ufs: fix irq return code
1103411   I91bc341cb9ae414020c8770a2bd508fae63b9294   defconfig: msmfalcon: sync defconfigs
1094763   Id7d5d9a9b3a0ced59e1cc893ce0eb27dab6674a6   pinctrl: qcom: add pinctrl driver for LPI
1102223   Ie955a9b544890b799a0c8cd5bb71d27d8cdc7307   ARM: dts: msm: Add initial device tree for APQ FALCON
1100399   Iac58fe50bd0296cd50b383bdf891e4f0af6e9cf9   Revert "tty: serial: msm: Add runtime PM and system slee
1097420   I4935ecb8eaa438d259c1c27a66f62c78f874c9ee   msm: ipa: fix split packet handling
1094763   Idf6f56a365fdd57f4b0b191ee7bfb5e831abf443   ARM: dts: msm: Add audio nodes for msmfalcon internal co
1092796   I78753c9cadef7b43cd277d4827a096b45697c288   Revert "ecryptfs: forbid opening files without mmap hand
1008761   I7923df35f30293ac7ebb94b656f709f4ba5e00e5   USB: dwc3: gadget: Don't queue endless req through gener
1093442   I1c1a634bf096392094b5fd868a87385764657e6b   msm: mdss: fix handling of audio for DVI sinks
1095273   I2506e2985ce7991791100c6f715d16adca45762c   msm: sde: Disallow TP10 to P010 format conversion in rot
1098549   Ic46702dd6670f08e034ad0671d82a0bdcef80dd4   msm: cpp: Use the micro reset binding to decide if micro
1092801   Ib7385fc26dfe7e07e9bab42a10ff65a37cbaab54   net: ping: Fix stack buffer overflow in ping_common_send
1102318   I6eab6b08cb9ec7bfa6523ab3ed66d086eab89544   hwmon: qpnp-adc: Initialize variables in get_devicetree
1014563   I3fd007647370250017c97faebffadb35afb7fc4d   USB: dwc3-msm: Perform DBM config/unconfig under spinloc
1097957   Ic1fb20052a293878df09cd4f23cf3abe324cfbd3   msm: sde: return success if no callback function in r1 c
1098764   I3aa8da3222668739042215a55e2a10b582d44c8b   ARM: dts: msm: Configure GPIO5 for home key for 8998 QRD
1096202   I3bf27dc2f3f5ee035434da96b3b6caeda29bed7b   cfg80211: add checks for beacon rate, extend to mesh
1102346   Ic7d77e920ccfe779b979f732d506d59dcdfe885a   soc: qcom: pil/ssr: fix issue with logs
1086292   Icc10819680b6e5170a322bdf75a98e3c24dde67d   msm: mdss: Check for handoff pending before IOMMU min BW
1061845   I69f94a29d939341564f6f3ebfda48fceaa934542   msm-3.18: drivers : added validation of input/output buf
1097176   I4bc6608789b8b900e0af007d2ca24ba19f675cb7   clk: qcom: Add new voter clocks for camss clocks
1098943   Ia045cce7573083b080bb578bfc7a8c4c59594146   ARM: dts: msm: add bus vote for mmss smmu on msmfalcon
1089129   I3c3c9b967ab6717a4129798ef0bdc1270a5cffee   ASoC: msm: Fix memory leakage in dts eagle
1103094   I6ea326b0864f46dd5e438f050950b8ee721726e5   usb: phy: qusb2: Enable phy auto-resume
1100399   I661fca45d2d762a08e331f53d8b3cb7b99117448   tty: serial: msm: Add suspend resume support
1094766   Ieefa13dfc9e154b005329b01e2769266a1954ddb   msm: mdss: hdcp_1x: fix compliance failure
1098943   I57796a3c99a8c7463d98bc82be11a962527a45fe   ARM: dts: msm: add iommu test device nodes for msmfalcon
1100761   Iffb8a21b28ea9ce4dd0aa183f59c70b895dec4ec   ARM: dts: msm: enable SSC based sensors for msmfalcon MT
1097543   Ib043d4e152c04f2cbc723e6ce4daebe3f9083e7b   ARM: dts: msm: add simulator panel support for msm8998
1098549   I56c6847c74e5f4d8eafdb3d4cabe34a3b46b5825   ARM: dts: msm: Add cpp micro reset flag for 8998 and 899
1097768   I14a9f7a1079956efcb3b31ffeca1235a62856bf5   ARM: dts: msm: Add QMP PHY init sequence for msmfalcon
1103222   I0a28b320aa910d27987162dfcbe4e43aeca341fa   clk: qcom: Add support for debugfs for MSMfalcon
1085067   Id0fe7d3d60db310690c2ba2e277da911d3798076   clk: msm: mdss: Update DSI PLL configuration for msmcoba
1095347   Ic3c10b6f8c80f68fec953fd4f0b4616eac7edee3   ARM: dts: msm: Add HDR support for NT35597 panel
1065881   Ib69b57dc677b87fecfd689df7f8fc7ec8b4bc59f   msm: qdsp6v2: extend media format provided to voice driv
1101825   I9a9bcbf52ccb1f48b4e37e674a29c8c312b5ba1a   ASoC: msm: fix ULL playback over a2dp
1102098   Ieb16f2203210963d7035447547b5779fadb17f6d   scsi: ufs-qcom: skip err message for optional clk
1102200   Ib81fa37809b85c267949cd433bc6115dd89f100e   sched: Avoid packing tasks with low sleep time
1089686   I363ee028eeb360ef998fd90c1ff94bb09c4ac8b4   icnss: Remove hardware reset sequence
988679   Ida99de70a541ba12a8a8610b1c6fa717e42d865c   USB: f_qc_rndis: Add spinlock protection whereever requi
1099674   I28fa1a06f5acf0b6fbe988db5d95a4c1a781a9f9   msm: mdss: hdcp_1x: do not fail if no cp_irq for R0
1099709   Id0d3385cf3f29379e2df4f2c1657c4b661548721   ARM: dts: msm: Disable WLED staggering for pmi8998 and p
1101866   If22d9880103c7d54087d0faf4c992259e6b97f08   time: sched_clock: record cycle count in suspend and res
1068294   Ia45152fe211f2ece1028c5cb978beebda86faba3   regulator: cpr3: support LDO handling for different LDO
1100097   I992dbe23baf9a159e513c57b0a5f24e14d9b391d   ARM: dts: msm: Add compute context banks for msmfalcon
1097768   I92cd6cac7315905862aff1c3dde1b4d6ee771128   defconfig: msmfalcon: Enable EHSET Test Fixture device d
1094852   Ibba9a47c84e735d30e32eeac5b80d51044b7a9e8   ASoC: msm: qdsp6v2: return error when copy from userspac
1098943   I63ae3ff9e5ab608892d12db7a813264d234699ee   arm: dma_mapping: Support for DOMAIN_ATTR_S1_BYPASS attr
1094763   Ibe4abdbe15a6246b9abcf45402c22764b82699c2   ASoC: sdw-codec: Add support for MSM soundwire codec
1100179   I43cffa370f1bee51fb252530c6ae9173bb21110a   diag: Add support for CDSP
1092969   I43893355db063d99b6faf965093fad74ec0c9253   power: power_supply: Add property for ship mode
1094763   I6ead859ed0ad5c926d439a3985a5c4904ff757b5   ASoC: codecs: Update internal codec as split codecs
1099626   I7d2bc9eca8e7e30dbc656be620a0f4fd8eea2239   usb: pd: Register power_supply notifier after completing
1102879   Ica5ff2bdbdfbfd2fa8dbba7048b74108b2a05f3f   ARM: dts: msm: add pinctrl configuration for Touchscreen
1092969   Idc50342df8600f482a16f9a2f3a97773c3487eb8   qcom-charger: Add ship mode support
1052608   I65d38387f77addc9a8894a74f427d97313f90a9e   usb: gadget: composite: Add spinlock protection for usb
1085217   I85da89f681170acf21674a8f1a34778014c92892   msm: ipa3: support AP+STA IPA stats
1102344   I5c725ca8bf83753908f0ababb39f4d8c0c247171   defconfig: msmfalcon: enable process reclaim
1099136   Icda32a2631f8e0c66e1803e8e7aa89b33da871b3   defconfig: msmcortex: remove unused charger drivers
1006165   I6ddd933d4a43a4d24d7b5310a678a19411a14f2c   spi: spi_qsd: Improve latencies for small transfers
1103323   If29cd030e84603264d0091e015b2885a9303d860   mmc: host: Use correct flag to support 64-bit DMA
1100018   I76e0c86643331b9623d634bb462faaeb816c0935   usb: gadget: Add DPL support using IPA over BAM2BAM
1089373   I4e14ef9177dcf06c6cab5fb5b32d817fbbaa8478   ARM: dts: msm: Enable camera flash on msmfalcon interpos
989975   Iabf2db03436102310ef85f04b59e6160d49ef5f5   diag: Initialize spin lock once per memory device channe
1087738   I73ee708f2df6e1cd6b56fc40296ede490824f194   diag: Null pointer check to avoid kernel panic

Change-Id: Ia5f23d1e83add914406fce28f64c7ec28c8d5e22
CRs-Fixed: 1100622, 1009449, 1085217, 1095347, 1098025, 1102922, 1098660, 1097420, 1103222, 1097543, 1103341, 1092796, 1042240, 1088736, 1082939, 1099759, 1099659, 1102200, 1101366, 1101488, 989989, 1087738, 1099136, 1093816, 1095020, 1098943, 1080041, 1096399, 1084618, 1049671, 1101825, 1098764, 1098648, 1052608, 1094852, 1097768, 1100097, 1102879, 1092969, 1099674, 1102344, 1102346, 1102347, 1089686, 1061845, 1100018, 1048766, 1008761, 1089129, 1096202, 1100850, 1099546, 1092683, 1101743, 1099626, 1005919, 1099709, 989975, 1094175, 1100399, 1085067, 988679, 1093869, 1092294, 1097176, 1094763, 1096168, 975525, 1094766, 1097343, 1098549, 1101693, 1056777, 1094768, 1095273, 1074954, 1100179, 1103094, 1102223, 1100761, 936928, 1096825, 1065881, 1086292, 1014563, 1102098, 1102318, 1103411, 1093442, 1102312, 1100298, 1103323, 1101900, 1103329, 1101866, 1096831, 1068294, 1006165, 1071936, 1097957, 1089373, 1096741, 1092801, 1103409, 1103251, 1100366, 1103656
2016-12-21 19:20:49 -07:00
Fenglin Wu
4569877e35 input: qpnp-power-on: Set ship mode in system_pwr_off
Set ship mode in qpnp_pon_system_pwr_off() API if it has been requested
previously.

CRs-Fixed: 1092969
Change-Id: I6e315eec256f01c143ffc8b463279f2b30e64610
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2016-12-22 09:36:13 +08:00
Ajay Singh Parmar
bd5d2212f7 msm: mdss: dp: update pre-emphasis and voltage swing settings
Update the PHY/PLL setting related to pre-emphasis and voltage
swing as per hardware recommendations.

Change-Id: I3bbd7c8de541e22da30205d93a98d48f82288865
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:35:58 -08:00
Ajay Singh Parmar
0261d58543 msm: mdss: dp: edid: read all extension blocks
A sink can have more than one EDID blocks. The extension
block count is provided in the first block. Not reading
all blocks can result in DP compliance failures.
Read all the extension blocks as mentioned in the first
block to avoid any EDID related compliance failures.

Change-Id: I9cfe6403da511e6af3b887fcf858109852e9844c
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:35:22 -08:00
Ajay Singh Parmar
03a1feb1b6 msm: mdss: dp: fix cable connection from boot-up
Wait for the user modules to come up during boot up before
sending events. In case user modules are not yet up,
events sent to them are ignored. If the cable is connected
at boot up, wait for user modules to enable hpd (Hot Plug
Detect). On receiving hpd, check if the cable is already
connected, if so, notify user modules so that power on sequence
can be initialized.

Change-Id: I91242fbfd32a478324b98edba4349081d9e55601
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:35:00 -08:00
Ajay Singh Parmar
1add967d01 msm: mdss: dp: update aux i2c programming
Update the I2C configuration for AUX communication
as per hardware recommendations.

Change-Id: If5550b66660aab692f9a358b50e0d1fb157b1d58
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:34:37 -08:00
Ajay Singh Parmar
2d1a2c9040 msm: mdss: dp: initialize host after configuration
Initialize the DisplayPort's host controller once the usbpd
configuration has been done. Do not wait for HPD high as some
DP sinks may not issue HPD high unless the host is initialized.
This avoids a deadlock between sink and source where source is
waiting for HPD high and sink is waiting for the DP host.

Change-Id: I1cdcb3556779d00fd2b4ecd264fa6b187bf4e317
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-12-21 17:33:57 -08:00
Hemant Kumar
7c2b101e73 usb: phy: qusb2: Switch to SE clk from diff clk upon suspend
Upon out of XO shutdown due to remote wakeup, as soon as XO gets
restored refclk is supplied to phy before even refgen current
is stabilized. USB3 controller asserts suspend_n signal asynchronously
for remote wake-up scenario solely based on utmi_linestate switching
from J state(suspend) to K state(resume). As a result phy attempts to
lock PLL since all prerequisites are met but, PLL lock attempt fails
and phy gets stuck. Since GCC_RX1_USB2_CLKREF_EN which was supposed to
control differential(CML) clock output to QUSB2 is a no-op, hence switch
to SE clock by PHY CSR controlled mux upon suspend. This prevents refclk
output to go directly to phy upon XO restore and prevents premature phy
pll locking. Phy PLL actually gets locked when phy driver switches back
from SE clk to diff clk.

Change-Id: Ie5474c42ccdd88df4c101b2113ca8d924eddf037
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-12-21 17:21:26 -08:00
Aravind Venkateswaran
5f41a670d1 msm: mdss: dp: fix handling of link training mutex
Remove the additional unbalanced unlock being called for the
link training mutex. This fixes random crashes seen while
running Display Port connection/disconnection tests.

Change-Id: I2fce80cec72e3bd8b1561fd46fa1a1520cddd294
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 16:25:46 -08:00
Aravind Venkateswaran
c23be78397 msm: mdss: dp: fix calculation of link rate
If the calculated link rate based on sink's capabilities exceeds
the maximum supported link rate, do not error out. Instead, cap
the link rate at the maximum supported rate. This fixes instability
issues seen when connecting to sinks at 4K resolution.

Change-Id: I214bb19385f855af61da628fdf1cf7efc5dd08d6
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2016-12-21 16:25:37 -08:00
Tatenda Chipeperekwa
c76f7c2f3f msm: mdss: dp: add support for PHY compliance tests
Add support for PHY compliance tests by parsing requests
from the reference sink and generating the requested
PHY test patterns from DP PHY.

CRs-Fixed: 1076516
Change-Id: I290ec786bbe5c45873265ea74290eefcd3d16cb1
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-12-21 16:25:28 -08:00
Linux Build Service Account
e379f786aa Merge "wil6210: Block write ioctl to the card by default" 2016-12-21 15:48:16 -08:00
Linux Build Service Account
6294b5b2d7 Merge "sched: Fix out of bounds array access in sched_reset_all_window_stats()" 2016-12-21 15:48:15 -08:00
Linux Build Service Account
b1fe788357 Merge "iio: rradc: Update charger die temperature coefficients" 2016-12-21 15:48:14 -08:00
Linux Build Service Account
51f142cac2 Merge "ARM: dts: msm: Update Venus PIL clock voting for MSMFALCON/TRITON" 2016-12-21 15:48:13 -08:00
Linux Build Service Account
c91ab72258 Merge "soc: qcom: glink_ssr: Add rx done for received packets" 2016-12-21 15:48:13 -08:00
Linux Build Service Account
9c6f2a9076 Merge "soc: qcom: glink_pkt: Remove BUG_ON in glink_pkt_write" 2016-12-21 15:48:12 -08:00
Linux Build Service Account
48a7875c4f Merge "ARM: dts: msm: Allow only wfi based on USB irq load for msmfalcon" 2016-12-21 15:48:11 -08:00
Linux Build Service Account
c4e97325ee Merge "ARM: dts: msm: Enable context aware and quirks for A512 on msmfalcon" 2016-12-21 15:48:10 -08:00
Linux Build Service Account
12e0650bed Merge "regulator: gfx-ldo: support voltage based regulator operations" 2016-12-21 15:48:09 -08:00
Linux Build Service Account
32597bf9ab Merge "ASoC: msm: Add routing controls for hfp, port mixer" 2016-12-21 15:48:08 -08:00
Linux Build Service Account
a6e02237f5 Merge "ARM: dts: msm: Disable clock gating on msmfalcon" 2016-12-21 15:48:07 -08:00
Linux Build Service Account
f4d255733d Merge "ARM: dts: msm: Enable blsp1_uart3_hs for QRD interposer msm8998" 2016-12-21 15:48:06 -08:00
Linux Build Service Account
2790a50397 Merge "ARM: dts: msm: Enable camera for msmfalcon." 2016-12-21 15:48:05 -08:00
Linux Build Service Account
388f74ec00 Merge "nl80211: Use different attrs for BSSID and random MAC addr in scan req" 2016-12-21 15:48:04 -08:00
Linux Build Service Account
62af6fdf28 Merge "cfg80211: Define macro to indicate support for update connect params" 2016-12-21 15:48:03 -08:00
Linux Build Service Account
24a1e6cd40 Merge "cfg80211: Add support to update connection parameters" 2016-12-21 15:48:02 -08:00
Linux Build Service Account
75171fe96c Merge "ARM: dts: msm: configure wled for mdss on falcon interposer qrd" 2016-12-21 15:48:01 -08:00
Linux Build Service Account
b1a436c744 Merge "ARM: dts: msm: Add battery profile for FG in qrd8998 interposer" 2016-12-21 15:48:01 -08:00
Linux Build Service Account
452963576e Merge "drivers: mfd: clean up bootup info logs" 2016-12-21 15:47:55 -08:00
Zhen Kong
654eb19d41 msm: crypto: fix AEAD issues for HW crypto driver on msm-4.4
Make change to fix AEAD operation issues due to incorrect usage of
new aead interface introduced into kernel msm-4.4.

Change-Id: I472449c52bff40d48f7d65b05e145cc47cba9357
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-12-21 15:14:52 -08:00
Zhen Kong
f931841b3f defconfig: msm: disable CRYPTO_DEC_QCE device on msm8998
CRYPTO_DEV_QCE device only provides a subset of crypto
algorithms, and it also has conflict with HW crypto
device CRYPTO_DEV_QCRYPTO, so disable it.

Change-Id: I406a41ac961757d31209ae0a0a4b4d9cc4d31a1e
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-12-21 15:13:55 -08:00
Yuanyuan Liu
c4f8934a71 icnss: Add EXEC permission when assigning the MSA0 back to host
When MSA0 memory is re-assigned back to host, it needs to get
RWX permissions so that it can be used for data as well as
instructions.

CRs-Fixed: 1104183
Change-Id: I58e19def0042022046e730dd97008a9e1c25b6d6
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-12-21 15:12:15 -08:00
Ram Chandrasekar
f24aac1b25 msm: thermal: Update error handling of device offline
When device enters suspend, the suspend framework disables CPU hotplug
functionality. During the suspend, any attempt from KTM to hotplug CPU
will return error and in this case, KTM wont clear the cpus_offlined
mask. In this case, the device framework assumes the core is still
online. Next time the device resumes from suspend the core
online attempt will be nacked by KTM. Thus the core will be offlined and
subsequent attempts to bring the core online using device framework will
fail.

Update KTM error handling to remove the CPUs from the cpus_offlined
mask, when device offline APIs return error. Thus KTM wont block suspend
framework from bringing the core online. Also, update KTM not to
evaluate new request to offline or online a core when the device is in
suspend entry or exit. The re-evaluation will be triggered when the
device exits suspend.

Change-Id: I334fd782a2c5d604cafb94f44832d9c700891ba2
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-12-21 11:44:47 -07:00
Linux Build Service Account
83134d5df1 Merge "thermal: tsens: Update critical interrupt functionality for Tsens" 2016-12-21 07:30:37 -08:00
Linux Build Service Account
b7e53064a6 Merge "regulator: cpr3: support LDO handling for different LDO types" 2016-12-21 07:30:36 -08:00
Linux Build Service Account
a204fcac9f Merge "diag: Change to GFP_KERNEL in diagfwd_buffers_init()" 2016-12-21 07:30:35 -08:00
Linux Build Service Account
b36f945be4 Merge "icnss: Remove hardware reset sequence" 2016-12-21 07:30:34 -08:00
Linux Build Service Account
9ab58266e1 Merge "ARM: dts: msm: remove turing-cti node from msmtriton" 2016-12-21 07:30:30 -08:00
Linux Build Service Account
ccc6501961 Merge "ARM: dts: msm: add jtag, hwevent and csr nodes for falcon" 2016-12-21 07:30:29 -08:00
Linux Build Service Account
0668391229 Merge "ARM: dts: msm: Add extcon node for QRD starlord track 3" 2016-12-21 07:30:28 -08:00
Linux Build Service Account
f3a71c4dd0 Merge "ARM: dts: msm: add bus vote for mmss smmu on msmfalcon" 2016-12-21 07:30:26 -08:00
Linux Build Service Account
bd15db7a9b Merge "ASoC: wcd-mbhc: check HPH PA status before impedance detection" 2016-12-21 07:30:25 -08:00
Linux Build Service Account
5b223d1dd3 Merge "ASoC: msm: fix ULL playback over a2dp" 2016-12-21 07:30:24 -08:00