Commit graph

573348 commits

Author SHA1 Message Date
Linux Build Service Account
ca29376ef1 Merge "mdss: display-port: add support to send HPD event to framework" 2016-08-10 18:29:17 -07:00
Linux Build Service Account
e2dc38ec3f Merge "msm: mdss: dsi: fix lcd mode selection gpio config when display is off" 2016-08-10 18:29:17 -07:00
Linux Build Service Account
c1a093b252 Merge "ASoC: msm: qdsp6v2: check param length for EAC3 format" 2016-08-10 18:29:16 -07:00
Linux Build Service Account
767b87a216 Merge "usb: gadget: gsi: Optimize TRB's buffer allocation functionality" 2016-08-10 18:29:15 -07:00
Linux Build Service Account
1f55fb65fe Merge "msm: vidc: Allow venus to power collapse in batch mode" 2016-08-10 18:29:14 -07:00
Hemant Kumar
9dfea8de0a usb: dwc3: Use clock API to control the memory power states
GDSC driver is removing control for USB memory power states.
DWC driver need to explicitly call clk_set_flag() API to turn
off both memory core and periphery upon vbus off. When core
clock is turned on both of them will be turn on automatically.

Change-Id: I7e442daf51c6ece39b8fe5cc8a38d3405163c9b5
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-10 14:08:12 -07:00
Veera Sundaram Sankaran
ffa14738c0 msm: mdss: fix dma fifo read watermark to 15/16 full
Previously the dma fifo read watermark was set to default value
which is 1/2 full. The full FIFO size is 512B, and this means the
read would be blocked for the first 256B and as soon as it is
consumed, it might expect the next 256B immediately. This may
result in underflow if sufficient data is not produced. To avoid
such cases, set read watermark to 15/16, so it is blocked until
full FIFO size data is generated.

Change-Id: I39bd10ccb7db3c4fe37ea609babdd6305fc19a7d
Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
2016-08-10 12:46:40 -07:00
Linux Build Service Account
ab08f3f974 Merge "msm: vidc: Add support for color space information" 2016-08-10 12:42:12 -07:00
Linux Build Service Account
8908ad6fcf Merge "defconfig: Enable memory latency monitors and governor" 2016-08-10 12:42:11 -07:00
Linux Build Service Account
c5ce2f64ad Merge "usb: f_fs: Prevent gadget unbind if it is already unbound" 2016-08-10 12:42:08 -07:00
Linux Build Service Account
3f9d57223f Merge "msm: ipa: do not use skb clones for lan clients" 2016-08-10 12:42:08 -07:00
Linux Build Service Account
1bbfac0a1e Merge "msm: ipa3: update BCR Regsiter values for IPA v3.1 and v3.5" 2016-08-10 12:42:07 -07:00
Linux Build Service Account
97e5d2f34e Merge "msm: gsi: fix memory corruption from debugfs" 2016-08-10 12:42:04 -07:00
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
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
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
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
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
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