Commit graph

586068 commits

Author SHA1 Message Date
Amit Nischal
2bb28272df clk: qcom: Update ops for esc clock source
Some of the display panels requires various
escape clock frequencies for its operation.
Add support for the same by update esc clock
ops to clk_esc_ops.

Change-Id: I50cb79863cfdf880ba72e73a98905ecd87a08474
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-03-14 10:33:12 +05:30
Amit Nischal
e429572fa3 clk: qcom: Add clk_ops to support runtime frequencies for esc clock
Some of the display panels requires multiple clock frequencies
to be derived runtime from the sources for its operation.
Add support for the same by adding esc clk_ops to calculate
the desired frequency at run time.

Change-Id: Ie3ec84bb1927f5313c887344368dceffb06035be
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2017-03-14 10:32:46 +05:30
Hemant Kumar
a4df35f9f2 usb: host: xhci: Move LPM support quirk to xhci_plat_quirks
xhci quirks is initialized in xhci_gen_setup() which gets called
from usb_add_hcd(). Since LPM support quirk is ORed to xhci quirk
before calling usb_add_hcd(), quirk gets overwritten. Fix this issue
by moving LPM support quirk to xhci_plat_quirks() which gets called
after xhci quirk is initialized.

Change-Id: I8fb4684d434f098408dddb636b5482cb65b6999a
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2017-03-13 12:13:50 -07:00
Zhen Kong
d0877722a5 firmware: qcom: tz_log: fix reading log issue on secure boot enabled device
Unlike other debug logs, qsee and hyp log buffer are separated from tz
diag region, so it is not necessary to read tz diag region before
reading qsee or hyp logs. Otherwise, when tz diag region is encrypted
and locked on secure boot enabled devices, reading qsee or hyp logs will
cause XPU violation at tz diag region. Also, update the diagnostic table
with some new items.

Change-Id: I2872c4dce876763b5dac5656a982f6ce29cc81f4
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2017-03-13 12:12:55 -07:00
Linux Build Service Account
89bfd053bf Merge "ARM: dts: msm: Fix RPM_AGGR2_NOC_CLK name change for SDM660/SDM630" 2017-03-13 11:50:11 -07:00
Linux Build Service Account
e713a39c4a Merge "HID: Remove playstation4 as special driver" 2017-03-13 11:50:10 -07:00
Linux Build Service Account
b585578838 Merge "regulator: core: Fix voltage change propagations to supply regulators" 2017-03-13 11:50:09 -07:00
Linux Build Service Account
f7aa606b1e Merge "ARM: dts: msm: add rm67195 panel driver for SDM630/SDM660 PM660A QRD" 2017-03-13 11:50:06 -07:00
Linux Build Service Account
b283538d68 Merge "msm: mdss: Add support to update backlight when display commit" 2017-03-13 11:50:05 -07:00
Linux Build Service Account
8d7423e396 Merge "msm: mdss: Disable secure session after Flush for video mode panels" 2017-03-13 11:50:04 -07:00
Linux Build Service Account
ba87e6c3e7 Merge "msm: mdss: fix conditional check for panel LP configuration" 2017-03-13 11:50:02 -07:00
Linux Build Service Account
1dbf7874c4 Merge "msm: mdss: Validate cursor image size" 2017-03-13 11:50:01 -07:00
Linux Build Service Account
df8ad3b00f Merge "ARM: dts: msm: add voter clock to anoc2_smmu on sdm660/630" 2017-03-13 11:50:00 -07:00
Linux Build Service Account
824290abe3 Merge "ath10k: Fix TCP TX throttling issue" 2017-03-13 11:50:00 -07:00
Linux Build Service Account
2811cf73a4 Merge "ath10k: Increase the ring size of the CE4 ring" 2017-03-13 11:49:59 -07:00
Linux Build Service Account
e1e5132824 Merge "msm: camera: Remove exit on error conditions for smmu apis" 2017-03-13 11:49:58 -07:00
Linux Build Service Account
b09bf7ca5d Merge "input: touchscreen: remove gt9xx goodix touch driver" 2017-03-13 11:49:58 -07:00
Linux Build Service Account
c705131473 Merge "ARM: dts: msm: removed gpu_dl and wcss tpdm, tpda and funnels for sdm660" 2017-03-13 11:49:56 -07:00
Linux Build Service Account
24a830c773 Merge "mmc: card: block: check the user controlled parameters to avoid overflow" 2017-03-13 11:49:55 -07:00
Venu Yeshala
127c4c22e7 msm: isp: Add support for VFE dual camera resolution limit
Read VFE resolution limitation from VFE fuse register
and restrict support for dual camera resolution.

Change-Id: I5f1c8878bd1039a40c7c8ecc5934757707e0123e
Signed-off-by: Venu Yeshala <vyeshala@codeaurora.org>
2017-03-13 08:20:28 -07:00
Ravi Kishore Tanuku
d3e47e3316 msm: camera: Add regulator enable and disable in csiphy
1. Corrected error handling conditions in csiphy driver
while enabling clk regulator.
2. Adding gdsc regulator realted entries in dtsi.

CRs-Fixed: 1107702
Change-Id: Iabb5eb28d63b34a4c3201c53be17054a1907f4fe
Signed-off-by: Ravi Kishore Tanuku <rktanuku@codeaurora.org>
2017-03-13 07:56:05 -07:00
Venu Yeshala
b50d7688cd ARM: dts: msm: Update VFE SVS clock corner for SDM630
Update the VFE SVS clock corner from 256MHz to 404MHz.
This will help use a proper AHB clock corner thereby
saving power.

Change-Id: I1e5074a8753f08004ed31ed21c3f4e1bb16bee78
Signed-off-by: Venu Yeshala <vyeshala@codeaurora.org>
2017-03-13 06:48:23 -07:00
Rajesh Yadav
227ac6a42f msm: mdss: Fix hist sum sanity check issue
When dynamic resolution switch is enabled,
it may happen that mixer w/h get updated
for new resolution before hist for last frame
with different resolution is read. This can
lead to sanity check failure for hist sum.
Fix the issue by clearing the current expected
sum and caching sum for next frame.

Change-Id: I93734900770a6c97eac66a412710cae217835693
Signed-off-by: Rajesh Yadav <ryadav@codeaurora.org>
2017-03-13 17:43:38 +05:30
Utkarsh Saxena
7e5e33b416 msm: ipa: Add spinlock to avoid deleting already deleted list
There is a chance of deleting, already deleted list
in ipa_cleanup_wlan_rx_common_cache API.

Protect the wlan_comm_desc_list,
with the spinlock to avoid this deletion.

Change-Id: Ia05d47d7b54540eff6ef20f86dee410152457caa
Acked-by: Mohammed Javid <mjavid@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-03-13 14:58:40 +05:30
Narender Ankam
8fad32863d msm: mdss: dp: Fix DP display issue during device boot time
If dp driver sends userspace notifications before framework
is ready to receive these events, events are lost, due to which
display issue is observed. This change fixes this issue.

Change-Id: I91eaa824099536a019e084a9665786f0ec4bca1d
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2017-03-13 13:34:16 +05:30
Hemant Gupta
7a160be0dc HID: Remove playstation4 as special driver
Playstation4 needs to be removed as having special hid driver
and needs to be used as generic hid driver because special
hid driver support is not working well.

CRs-Fixed: 2014640
Change-Id: Ibf053717adf043274ad3c4f889e5a88abf17e387
Signed-off-by: Hemant Gupta <hemantg@codeaurora.org>
2017-03-12 22:33:25 -07:00
Utkarsh Saxena
284c4e80bd ARM: dts: msm: Fix RPM_AGGR2_NOC_CLK name change for SDM660/SDM630
RPM_AGGR2_NOC_CLK is separated out to allow individual voters
could vote on these clocks and voter clock would aggregate the
clock rates.

Change-Id: Ib15499a0025c422786b432a1e98380ce86692e7b
Acked-by: Chaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: Utkarsh Saxena <usaxena@codeaurora.org>
2017-03-13 10:58:50 +05:30
Charan Teja Reddy
b8c9470476 ARM: dts: msm: add voter clock to anoc2_smmu on sdm660/630
Add the proper aggr2_noc voter clock, AGGR2_NOC_SMMU_CLK, for correct
operation of anoc2 SMMU.

Change-Id: I8e9a5a455626f73ea15fbe16dd63b8fc8b26c4f0
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-03-12 22:22:38 -07:00
Tirupathi Reddy
f02b26a729 regulator: core: Fix voltage change propagations to supply regulators
Some regulators support get_voltage and some support get_voltage_sel
operations. Do voltage change propagation only when the current
regulator has a minimum dropout voltage specified or if the current
regulator lacks both get_voltage and get_voltage_sel operations.

CRs-Fixed: 2018399
Change-Id: I24cc880d6a61c2cb489897d39a1b63199749c98d
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2017-03-13 10:07:25 +05:30
Laxminath Kasam
5a51c2c5ef ASoC: sdm660_cdc: Add null check in msm_dig_suspend
In digital codec, null codec pointer access can happen
in suspend call if module register happen with pm_ops
but soc codec register failed for some reason. Add null
check in msm_dig_suspend API to avoid crash scenarios.

Change-Id: I15acb69a1851b7865d2b3aa1b7cb70a4a73c63e3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-03-12 18:59:47 +05:30
Divya Ojha
54344baed6 ASoC: codecs: Add PM suspend routines for digital codec
Digital codec soc suspend enables mclk, preventing XO shutdown.
So implement digital codec pm suspend to disable mclk. Add ignore
suspend property to new widgets to resolve powering up and down
during suspend.

Change-Id: I2a773cdfe25d408d95f1c07be71fd4be740e8bf0
Signed-off-by: Divya Ojha <dojha@codeaurora.org>
2017-03-12 06:05:07 -07:00
Dany Rybnikov
9f07864f81 msm: camera: Remove exit on error conditions for smmu apis
The msm_camera_tz_set_mode is called for TA notification
and if the notification fails the flow should still proceed
without return.
This change prevents a fault caused by vfe remaining in
secure mode as the detach was not called in case of
notification failure.

CRs-Fixed: 2011627
Change-Id: Iefcfd72c8e2d96aba2daf2bed8d271edee0cc8c1
Signed-off-by: Dany Rybnikov <danyr@codeaurora.org>
2017-03-12 01:34:27 -08:00
Sujeev Dias
32baae206b mhi: mhi_rmnet: pass maximum payload size to mhi during registration
MHI host require clients to provide maximum payload size
during active transfer so MHI host can pre-allocate bounce
buffers.

CRs-Fixed: 1110280
Change-Id: I9a8fcb8dbb711cdd35dfc12b47b4381bf0985134
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 14:00:00 -08:00
Sujeev Dias
8ac488be9e msm: mhi_rmnet: remove headroom reservation
MHI_RMNET layer not required to reserve for IP headroom
data since rmnet_data layer will create a new skb if
headroom reservation is needed.

CRs-Fixed: 1085031
Change-Id: Ic04e73510140e6c00ee18107a8edc9ead0b53863
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 13:47:06 -08:00
Sujeev Dias
3d0bc07b5b mhi: mhi_uci: pass max payload size to mhi during mhi registration
MHI host requires clients to provide maximum payload size
during active transfer so MHI host can pre-allocate bounce
buffers.

CRs-Fixed: 1110280
Change-Id: I5dd38fc49a98629f77cdb7879942b7b1993e43b8
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 13:43:31 -08:00
Sujeev Dias
e82016456a mhi: mhi_core: move mhi from module_Init to subsys_init
MHI clients expects MHI to finish initializing before clients
probe. Move MHI to subsys init to guarantee MHI will finish
executing before device drivers with module_init starts.

CRs-Fixed: 2006891
Change-Id: I44e3612721fdc247c8c083f74736a1b1bcfc962e
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 13:37:07 -08:00
Sujeev Dias
65d8df7619 mhi: core: add support for priority based event processing
Not all events require same priority to process. Process
high priority events using a tasklet while processing low
priority events using a kworker. Priority for events can be
configured by device tree.

CRs-Fixed: 2004759
Change-Id: I6bf04624c2fd92afd7c698d6a57f66619ea13b5b
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 13:26:48 -08:00
Sujeev Dias
41fb6e92ab mhi: core: confirm MHI offset is valid before using it
PCIe link can go down anytime asynchronously without host
knowing. In event of a link-down, MMIO reads will always
return 0xffffffff.  Confirm the read value is valid prior
to executing further.

CRs-Fixed: 1030692
Change-Id: If052a1a31c62a81f380cec3f523b605b38a33847
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 12:20:31 -08:00
Sujeev Dias
d0b53a6f0c mhi: core: fix memory alignment calculation
Fix issue of incorrectly truncating 64bit address
as a 32bit address during memory allocation for
MHI.

CRs-Fixed: 1113884
Change-Id: Iba5123b3710c805cabf63bb6a2958d8218d642e8
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 12:16:31 -08:00
Sujeev Dias
5ce3f182b8 mhi: core: add support for bounce buffer transfer
Not all MHI capable devices can access entire host
DDR. If an MHI client provide a transfer packet that’s
outside of supported address range, copy the packet to
a local bounce buffer prior to transfer.

CRs-Fixed 1110280
Change-Id: Ie7292a2c89cc6608d5360f8a330d78635d913c29
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 12:10:22 -08:00
Sujeev Dias
75edc331a7 mhi: core: add support for MHI to operate on slave mode
MHI host is not always the bus master. Add support to
operate on slave mode.

CRs-Fixed: 1095436
Change-Id: I4af92c8171cf9ba38267afa753cec33f291d55eb
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 12:02:02 -08:00
Sujeev Dias
6f370e6a8b mhi: core: add support for MHI host managing firmware upload
Add support for MHI host to directly upload firmware
to compatible devices using MHI protocol.

CRs-Fixed: 1095436
Change-Id: Iff7043f1f9afc4824edeaeccc46ed427ce7ee291
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 11:58:46 -08:00
Sujeev Dias
2583f4c5d6 mhi: core: Add support for multiple MHI devices
In order to support multiple MHI devices connected
to same host we have, re-organize struct mhi_device_ctxt
such that all information related to device is included inside
struct mhi_device_ctxt. Created an abstract power management
layer to operate MHI in bus master, and slave mode. PCIe bus,
device, slot are extracted from DT to identify physical device.

CRs-Fixed: 1086301
Change-Id: I27a12b7412db75e4843794d80146ca7475b02fdc
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 11:50:50 -08:00
Sujeev Dias
b1fa567f04 ARM: dts: msm: mhi: document mhi-chan-cfg settings
Add a detail explanation for mhi-chan-cfg
configuration settings.

CRs-Fixed: 1022868
Change-Id: I89a1ea3e8ac6b1b210df245e8bd199206cdbb649
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-03-11 11:50:44 -08:00
Linux Build Service Account
51740526b9 Merge "msm: camera: isp: support LPM on dualcamera" 2017-03-11 10:08:13 -08:00
Linux Build Service Account
7ea0306f70 Merge "defconfig: msm: Enable camera for SDM660 32bit variant" 2017-03-11 10:08:12 -08:00
Linux Build Service Account
23bb0f5efd Merge "msm: camera: Bound check for num_of_stream." 2017-03-11 10:08:10 -08:00
Linux Build Service Account
a2adda724d Merge "msm: camera: Prevent info leak in kernel driver." 2017-03-11 10:08:10 -08:00
Linux Build Service Account
e35eb8badb Merge "msm: camera: isp: fix for enqueue buffer failure" 2017-03-11 10:08:09 -08:00
Linux Build Service Account
9c2eff9b87 Merge "qcom: smb138x: Reduce die temperature samples for initial readings" 2017-03-10 20:14:37 -08:00