Commit graph

573660 commits

Author SHA1 Message Date
Linux Build Service Account
c487afd8b1 Merge "ARM: dts: msm: Enable the GPU QDSS STM for msmcobalt" 2016-08-10 12:42:03 -07:00
Linux Build Service Account
21c2cba833 Merge "soc: qcom: irq-helper: Add header file of irq-helper" 2016-08-10 12:42:02 -07:00
Linux Build Service Account
ccff42ba09 Merge "ARM: dts: msm: Update TLMM base address for msmfalcon" 2016-08-10 12:42:01 -07:00
Linux Build Service Account
6e251b6aad Merge "pinctrl: qcom: Update TLMM configuration for msmfalcon" 2016-08-10 12:42:00 -07:00
Linux Build Service Account
b73b15d097 Merge "pinctrl: qcom: Update SDC pins for msmfalcon" 2016-08-10 12:41:59 -07:00
Linux Build Service Account
002a1d1bdd Merge "ARM: dts: msm: increase VDD_GFX CPR ceiling voltages for msmcobalt" 2016-08-10 12:41:58 -07:00
Linux Build Service Account
7748d42b05 Merge "usb: phy: qusb: Fix typo with emulation related property name" 2016-08-10 12:41:57 -07:00
Linux Build Service Account
7d5deaefcd Merge "ASoC: msm: qdsp6v2: set correct loopback mode" 2016-08-10 12:41:56 -07:00
Linux Build Service Account
56a8de410b Merge "ARM: msmcortex_defconfig: Enable NCM function driver" 2016-08-10 12:41:56 -07:00
Linux Build Service Account
4be1196293 Merge "ASoC: wcd9335: Configure DMIC clock rate for ECPP path" 2016-08-10 12:41:55 -07:00
Linux Build Service Account
8947d1d8b4 Merge "drivers: mfd: wcd9xxx: Add support to configure dmic clock" 2016-08-10 12:41:54 -07:00
Linux Build Service Account
5d27e92127 Merge "defconfig: msmcortex: Enable G-Link SPI Transport driver" 2016-08-10 12:41:53 -07:00
Linux Build Service Account
b3fafcfbf3 Merge "ARM: dts: msm: Add G-Link SPI Transport device for msmcobalt" 2016-08-10 12:41:52 -07:00
Linux Build Service Account
21583fd29e Merge "soc: qcom: glink_spi_xprt: Add support for GLink SPI Transport" 2016-08-10 12:41:52 -07:00
Veera Sundaram Sankaran
ac026c4902 msm: mdss: move sync_fence_install after release/retire create_fence
Previously, the error case for retire fence did not handle
removing of fence_install for release fence properly. Fix it
by doing sync_fence_install for both release/retire fence
after successful release/retire create_fence.

Change-Id: I6e983a1a1d843ddca46729c37a49cb85eda74cfe
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-08-10 12:39:49 -07:00
Veera Sundaram Sankaran
1d2302bdf2 msm: mdss: fix race condition between iommu attach and sending DCS cmds
There might be cases during bootup when backlight cmds or ESD thread
sends DCS cmds to the panel when iommu attach is yet to happen. DSI
uses physical or virtual address based on the iommu_attached status
check. If iommu attach happens when the DCS cmds are using the
physical address, it would lead to SMMU page faults. Protect iommu
attach/detach and DCS cmd sending with an iommu_lock to avoid such
race conditions.

Change-Id: I16fb0bf884f0dbbce1cd9099ec5619d132379054
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-08-10 12:38:49 -07:00
Veera Sundaram Sankaran
bd9b403682 msm: mdss: fix autorefresh configs for pp-split cases
Configure autorefresh in the slave pingpong register too
when autorefresh is enabled along with pp-split.

Change-Id: I3dc51f99018bb7a97fa01cd9aebe50d63671261e
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-08-10 12:36:48 -07:00
Ghanim Fodi
292046c1e0 defconfig: arm64: msm: Enable IPA unit-test framework
Enable IPA unit-test framework compilation and staging

Change-Id: Iaffc8397cbdb2d3a8c339330585913a0d8758603
CRs-Fixed: 1040200
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-10 12:11:55 -07:00
Jack Pham
9a2bd8b7b8 usb: pd: Only request current amount for explicit contract
The policy engine should only request for a specific current
amount when establishing an explicit contract. When performing
a hard reset, suspend this by requesting 0 and only if it
was non-zero before, otherwise requesting the maximum may
invalidate the default current for non-PD cases.

Change-Id: Icbef00d61f8705429105f241161362ad9f1f9d30
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-08-10 11:21:22 -07:00
Hemant Kumar
1cb5c91b99 usb: dwc3: Remove tasklet bottom half handler
There is a possibility of tasklet bottom half handler racing
with dwc3_msm_suspend(). As a result before disabling the dwc3
irq, dwc3 interrupts are fired and once the suspend routine
disables the clocks bottom half handler gets a chance to run
and tries to access dwc3 register resulting into un-clocked
register access. Since dwc3 interrupt is already running in
threaded irq context, interrupt can be directly handled in
same context and avoid this race.

Change-Id: Ife9e165f6aa2112c1440819d659b97b5502a3f07
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-10 10:56:43 -07:00
Jack Pham
cf9e05be9a usb: dwc3-msm: Remove call to set POWER_SUPPLY_PROP_ONLINE
The charger drivers now handle setting of this property without
input from USB gadget other than the negotiated current draw
amount (set via POWER_SUPPLY_PROP_CURRENT_MAX). Remove setting
of POWER_SUPPLY_PROP_ONLINE which helps simplify the
dwc3_msm_gadget_vbus_draw() function a bit.

Change-Id: I2c5ec90cc8c45019ad75056b6feb7e6319f85514
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-08-10 09:48:09 -07:00
Jack Pham
3acfc4ffec usb: dwc3-msm: Do dwc3_msm_gadget_vbus_draw() in sleepable context
The gadget mode notification to draw a specific current may
occur in context with interrupts disabled, however the charger
driver's implementation of power_supply_set_property() for
POWER_SUPPLY_CURRENT_MAX currently uses a mutex. Since
sleeping is disallowed in this case, instead schedule a
work function to do the call.

Change-Id: I810ad8c102124ce22de72d83b6df58c8fc991251
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-08-10 09:47:37 -07:00
Archana Sathyakumar
ba27cf3be1 ARM: dts: msm: Update the interrupt list for msmcobalt
Add all available interrupts to the mpm gic map list such that new
enabled interrupts are automatically added to bypass list and do not
block XO shutdown.

CRs-fixed: 1044164
Change-Id: Ib68da5c234ab270c401fa54adc99d4416a3cb987
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
2016-08-10 09:12:23 -07:00
Taniya Das
06eaf35969 ARM: dts: msm: Add support for reset clocks for MSM8996
Reset clocks are required by clients those require to reset their subsystem
blocks using the reset framework. As clock mmss supports reset clocks, add
support for the same.

Change-Id: Ia8f5e0b9e86b49077f15db8da2dc7a3cda6b1748
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-08-10 16:37:16 +05:30
Sunil Khatri
714680a86b msm: kgsl: Disable RB sampler data path optimization
Disable RB sampler data path DP2 clock gating optimization
for 1-SP A5XX GPU's. Optimization leads to precision
difference during interpolation which cause rendering
difference between Binning and Direct rendering mode.

CRs-Fixed: 1040638
Change-Id: I40d1ce2f5db0ed75453feda5c31152f8201b8697
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
2016-08-10 03:05:18 -07:00
Shantanu Jain
d80c9df9bc input: touchscreen: Goodix gt915 driver cleanup
Cleanup the gt915 goodix driver from checkpatch failures.
Also have cleared the checkpatch errors on 4.4

This patch is propagated from 3.18 kernel
'commit 9ccc3ab159ba ("input: touchscreen: Goodix gt915
driver cleanup")'

Change-Id: Id841423f229b6abc674cc1e3c6441d55062b6ab4
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
[abinayap@codeaurora.org: fix checkpatch errors for 4.4 kernel
Use of the '__DATE__' macro makes the build non-deterministic
Also including it in the output does not provide any value.
So remove its usage.]
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-08-10 13:33:31 +05:30
Laxminath Kasam
148a552c38 ASoC: msm8x16: Initial change for internal codec support
- Add support for internal codec driver.
- Add regmap support for internal codec

The code is migrated from msm-3.18 kernel at the below
commit -

commit <bbf356f8bd26039cf3e0b447c064de6e2455b101>
<Merge "thermal: qpnp-temp-alarm: add support for
GEN2 PMIC peripherals>

CRs-Fixed: 1046168
Change-Id: Ib0cd2ed579bd370cc8979cafcc14acb083a408b6
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2016-08-10 09:34:47 +05:30
Subash Abhinov Kasiviswanathan
6d2650831d Revert "genetlink: disallow subscribing to unknown mcast groups"
Commit 5ad6300524 ("genetlink: disallow subscribing to unknown
mcast groups") disallows userspace to subscribe to groups that don't
exist in kernel. As a result, communication between processes is
not possible unless they explicitly register a dummy group with the
kernel even if the communication is between userspace processes
only. NETLINK_USERSOCK cannot be used here since userspace processes
would require CAP_NET_ADMIN to receive multicast messages which
is available for priveleged processes only.

Fix this problem by reverting the change till a solution is
determined internally and upstream discussion.

CRs-Fixed: 1052589
Change-Id: Id559d9ef9d1e0a25e3bbdc81503978f01c6ed85f
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-08-09 21:34:10 -06:00
Ingrid Gallardo
d3a18691ec msm: mdss: fix spurious wait4pingpong timeouts
In some cases, the jiffies of the wait function can
jump between reads, leading to wrongly detected
ping pong timeouts. Prevent to fail in this scenario
by making sure that the time elapsed during the
wait is valid.

CRs-Fixed: 1048727
Change-Id: I3a1ecc89f379a90d9fdacf0baa9b6c8498bb93fb
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-08-09 17:09:36 -07:00
Veera Sundaram Sankaran
3b4b2e33b4 ARM: dts: msm: add jdi 1080p video mode panel support for msmcobalt
Add jdi 1080p video mode panel config file and necessary configs
to enable it in msmcobalt MTP and CDP.

Change-Id: I51ac777abdf0d95c74535c20afbbd555c31c358a
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-08-09 17:02:34 -07:00
Veera Sundaram Sankaran
de00c6a2f7 ARM: dts: msm: add sharp 1080p cmd mode panel support for msmcobalt
Add necessary power and panel timings to support sharp 1080p
cmd mode panel in msmcobalt. Add support for it to work with
both CDP and MTP.

Change-Id: I145da5e01bcdb3aa28804e851c97c00fa4d39114
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-08-09 17:02:30 -07:00
Ben Romberger
01fb5de81b drivers: soc: Set APR Glink transport to SMEM
Set APR to use SMEM for the Glink transport
type instead of smd_trans. SMEM is used for all
Glink transport. The transport smd_trans is no
longer used and use of it as a transport causes
Glink to take a very long time to establish a
connection.

Change-Id: Ie65f79051bfc452c63067c21efcfd9d98429bb15
CRs-Fixed: 1050763
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-08-09 16:39:09 -07:00
Abhijit Kulkarni
22ae38f7f9 msm: mdss: disable scaler for pipes with solid_fill
If solid fill is enabled the driver code skips the programming of
scaler which leaves the scaler in invalid state if it was
enabled in previous configuration on this pipe. The change
addresses this by programming scaler configuration before
the solid fill check.

CRs-Fixed: 1048727
Change-Id: I093e494800dacefda447b27da4fc2ea9c0cdeda6
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-08-09 16:34:15 -07:00
Ghanim Fodi
699fd2ab7f msm: ipa: Add support for IPA unit-test framework
Add IPA unit-test framework. The framework supports
definition and execution of tests that are grouped
into suites according to IPA functional blocks.
Debugfs file system is being used as a user interface.
An example test suite is added for reference.

Change-Id: Ide4ed54970c62f6485809c3bd63960536b4ace4f
CRs-Fixed: 1040200
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-10 00:26:16 +03:00
Harshdeep Dhatt
204483da69 msm: kgsl: Fix the ringbuffer wrap around logic
Currently, if read pointer is behind write pointer and there
is not enough space toward the end of the ringbuffer for
new commands, then write pointer is being set to 0.
This is problematic, because it leads to the overwriting of
unexecuted commands with new commands at the start of the
ringbuffer. So, instead of setting the write pointer to 0,
look for space from the start of the ringbuffer up till the
read pointer and if there is room, update the write pointer
accordingly.

CRs-Fixed: 1028465
Change-Id: I1cbdbf139b14988513a22030aa2be4a99a221880
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-08-09 14:59:22 -06:00
Puja Gupta
a30a38459c soc: qcom: Fix error checks in service-notifier
Fix incorrect error checks and add error code in error logs to help
debug better.

CRs-Fixed: 1048345
Change-Id: I41ad4af44504e3f192a989a763a4093cae03b76c
Signed-off-by: Puja Gupta <pujag@codeaurora.org>
2016-08-09 13:15:06 -07:00
Vidyakumar Athota
a9aa872509 ASoC: msmcobalt: fix wrong platform device pointer assignment
In machine driver probe, platform device pointer is assigned prior to
codec registration which might be invalid if wcd9335 and wcd934x sound
card registrations are going on simultaneously. Update the pointer after
sound card registration to avoid null pointer dereference.

CRs-Fixed: 1048402
Change-Id: I315e191227e14e207187673b8efb5401143dec9d
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-08-09 11:23:27 -07:00
Shubhraprakash Das
4097d970bb msm: camera: isp: Set no memory retention
Set the memory retention flags for certain hardware clocks to
save power. Memory does not need to be retained for these
clocks since the driver reinitializes the vfe hardware
whenever the clocks are turned on.

CRs-Fixed: 1044373
Change-Id: Idea83ef287710add893b48af0ecd9465e4ff7a98
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-08-09 11:09:11 -07:00
Shubhraprakash Das
2c28d7f5d4 msm: camera: Add new soc api
Add a new soc api to set the flags of a clock.

CRs-Fixed: 1044373
Change-Id: I81c8ffc49166f7bf6d5c6eb3b61bfb5699dfb091
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-08-09 11:09:01 -07:00
Viswanadha Raju Thotakura
a2698f4948 msm: camera: Add support for reading new property tag
Add support to read new current property tag from PMIC LED.
This parameter is used for torch mode.

CRs-Fixed: 1021009
Change-Id: I368a8bc2760d4f8bed847aefae59af2839e828cd
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-08-09 10:22:34 -07:00
Mallikarjuna Reddy Amireddy
063f6eab6a firmware: qcom: tz_log: fix incorrect datatype for warm_jmp_addr.
warm_jmp_addr variable datatype is uint32 in tz version 2.X (32 -bit)
and uint64 in tz version >=3.X (64 bit). But HLOS side always hadling with
uint32. So this is causing  mismatch data types between Tz and HLOS side,
which is providing wrong 'Warmboot jump address'. So updating
tzdbg_boot_info according to the TZ versions.

Change-Id: I216f9d4407592ae0112902fe423a807ae3c146d0
Signed-off-by: Mallikarjuna Reddy Amireddy <mamire@codeaurora.org>
2016-08-09 06:44:57 -07:00
Dhoat Harpal
7c0c7b0b3d soc: qcom: smp2p: Add support for CDSP peripheral
The CDSP peripheral now supports SMP2P communication, so add the
necessary support to allow the apps subsystem to talk to CDSP
peripheral.

CRs-Fixed: 1043377
Change-Id: If28a0f801411a215b02647f8acfccb1edb1033d4
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-08-09 17:42:18 +05:30
Dhoat Harpal
75b0a3ebc6 soc: qcom: smem: Add SMEM items for CDSP SMP2P communication.
Smem item definitions must be kept in sync with remote processors; if
the definitions do not match, item lookup can fail between processors.

Add smem item definitions so that the local definition table matches
the table on remote processors.

CRs-Fixed: 1043377
Change-Id: I7d23da099b5ed9deb3d074c1b72d286560fd705c
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-08-09 17:41:07 +05:30
Mao Li
fe7a0cf51a input: msg21xx_ts: Mstar touch driver optimization
Mstar driver uses the ic-type DT property for dynamic detection
support. Driver reads a register from the controller and compares
both the values to check if connected touch controller is of
Mstar or not.
Remove all DBG messages and convert them to dev_dbg/info.
Add a debugfs entry for suspend/resume.
Remove ts_data/pdata global declaration and use dev_get_drvdata()
and input_set_drvdata()/dev_set_drvdata() instead.

This patch is propagated from 3.18 kernel 'commit adbc104e3cb8
("input: msg21xx_ts: Mstar touch driver optimization")'

Change-Id: Ia053745d48faf68b946fbb0cf16d392cbfdd2a3c
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-08-09 15:46:07 +05:30
Mao Li
3c789f68d9 input: msg21xx_ts: add support for firmware upgrade
Add sysfs entries to upgrade the firmware from userspace. Update_fw
sysfs entry upgrades the firmware inside the touch controller only
when the controller's firmware version is lesser than that in
userspace's firmware file. Force firmware upgrade sysfs entry
forcefully upgrades the firmware inside the touch controller even
when the controller's firmware version matches that of the firmware
file in userspace.

This patch is propagated from 3.18 kernel 'commit 580ca1a4437e
("input: msg21xx_ts: add support for firmware upgrade")'

Change-Id: Ib6046de5230c395b48818d01f26eb9394046808b
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-08-09 13:12:23 +05:30
Mao Li
48e4d67c6e input: msg21xx_ts: release touch when finger leaves the panel
When fingers on the panel decrease, release corresponding touches.

This patch is propagated from 3.18 kernel  'commit 24e3a5036d3c
("input: msg21xx_ts: release touch when finger leaves the panel")'

Change-Id: Iafc3a9dda252417fcd06e3d9d24fb73b4d6f8e58
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-08-09 13:00:25 +05:30
Manikanta Sivapala
dcbbba5cb8 msm: vidc: Add support for color space information
When clients specify color space information, venus HW
should embed it in the bit stream. This helps to
regenerate original colors when decoded by decoder.
When decoder detects the color space VUI, Venus fills
the corresponding extradata

CRs-Fixed: 1026204
Change-Id: Ie9523558c23a8edc7a7ee058937658dd87ef5b16
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
Signed-off-by: Manikanta Sivapala <msivap@codeaurora.org>
2016-08-09 11:37:54 +05:30
Hemant Kumar
35fdb9cd7e usb: f_fs: Prevent gadget unbind if it is already unbound
Upon usb composition switch there is possibility of ep0 file
release happening after gadget driver bind. In case of composition
switch from adb to a non-adb composition gadget will never gets
bound again resulting into failure of usb device enumeration. Fix
this issue by checking FFS_FL_BOUND flag and avoid extra
gadget driver unbind if it is already done as part of composition
switch.

Change-Id: I1638001ff4a94f08224b188aa42425f3d732fa2b
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-08 17:20:43 -07:00
Vamsi Krishna Samavedam
c048005420 ARM: dts: msm: Update USB core clock frequency to allow SVS
Set USB core clock frequency to recommended value to allow SVS mode
when cable is connected.

Change-Id: Ia452476bd3bb7316a86efd08fed52c54f3efa34e
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
2016-08-08 17:15:14 -07:00
Vijayavardhan Vennapusa
cb816a1033 USB: dwc3-msm: Add support for setting specific frequency for core clock
Add support for setting USB core clock to particular frequency so that
core clock frequency can be passed through dts property.

Change-Id: If9ff41037d22d7be7f09c9468e8d4cc92280a28e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2016-08-08 17:13:14 -07:00