Commit graph

573487 commits

Author SHA1 Message Date
Dhoat Harpal
994e3d8295 ARM: dts: msm: Add SMP2P entries for MSMFALCON
Add the SMP2P entries to facilitate SMP2P interprocessor communication.

CRs-Fixed: 1043377
Change-Id: Ica16f736cb3789490c0c309996b295a06260545d
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-08-11 03:45:50 -07:00
Dhoat Harpal
1a55bb30e0 soc: qcom: sleepstate: add sleep state compatible entry
Current sleep state entry compatible string is tied with
remote processor ID which is not always true.

Use generic compatible string for sleep state entry to
support for any remote processor ID.

CRs-Fixed: 1043377
Change-Id: I6ef2810b07960006b0fe4c573d5ce2bead90ee97
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-08-11 16:01:14 +05:30
Mohan Pallaka
fad9dc0827 input: ft5x06: Add support for firmware upgrade
Add sysfs entries to upgrade firmware from userspace.
Firmware upgrade is triggered when the device's firmware
version mismatches with userspace's firmware file.
Force firmware upgrade sysfs entry is added to force
the firmware upgrade even when the firmware versions
match.

Change-Id: I48189abe60b4bd9d54a1bbc4657707213d8eb166
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-11 03:21:01 -07:00
Andrey Markovytch
7eb1c49f0c arm: dts: msm: Added missing features for HW Encryption support
Added DM_CRYPT, DM_REQ_CRYPT and SCSI_UFS_QCOM_ICE for msm cobalt.

Change-Id: I737fad8f1cd89bad77836d4025c108f6c1918224
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-08-11 03:14:20 -07:00
Andrey Markovytch
32d2461585 ice: added missing register dump in case of error for ICE 3.0
QCOM_ICE_INVALID_CCFG_ERR_STTS is now also dumped in case of error
for ICE 3.0

Change-Id: Ib7f522d0143f5131880c8c1badf4e64461810e72
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
2016-08-11 03:13:58 -07:00
Naresh Tanniru
cb539e6d7d ASoC: msm: qdsp6v2: support for AFE encoder
Add support for AFE encoder configuration.
Add new mixer controls to support AFE input channel
and encoder configuration.
Add support in AFE to set the encoder and input
channel configuration.If encoder configuration is set
ADSP will encode the PCM steam and send over backend.

Change-Id: I56581533ffff3b61f5b5ee128841ab61b62674d7
Signed-off-by: Naresh Tanniru <ntanniru@codeaurora.org>
2016-08-11 01:48:11 -07:00
Naresh Tanniru
e19f46bf59 ASoC: msm: q6dspv2: add adm channel config support
Add support of route control to set ADM input channel
config. This is used to help open adm with different
channel config compare to AFE output.
Add new mixer command to override adm channel count set
by hw_params. This is useful in cases where BE hw_params
is different from the ADM channel configuration for cases
such as A2DP exercising ADSP path.

Change-Id: I93ad53016a28efe0d8592ac0092d6c8896a66072
Signed-off-by: Naresh Tanniru <ntanniru@codeaurora.org>
2016-08-11 01:46:50 -07:00
Naresh Tanniru
89c0252708 ASoC: msmcobalt: add BT audio support
Add machine driver code to support
bt playback in tunnel mode.

Change-Id: I22173ef9a7586cc7b9bc4b40afa1c02f5317c3a7
Signed-off-by: Naresh Tanniru <ntanniru@codeaurora.org>
2016-08-11 01:46:10 -07:00
Meng Wang
45ffbb1fba swr-wcd-ctrl: set pointer to null after kfree
In soundwire control drivers, some pointers are not
set as NULL after the memory is freed, which will
leave many dangling pointers. Set them to NULL
explicitly to avoid potential risk.

CRs-Fixed: 997062
Change-Id: I18bd73397173187f87af28c78564835eed6d6a10
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-08-10 23:22:30 -07:00
Meng Wang
115b1e7c4e ASoC: wcd9xxx: set pointer to null after kfree
In wcd core drivers, some pointers are not set as NULL
after the memory is freed, which will leave many
dangling pointers. Set them to NULL explicitly to
avoid potential risk.

CRs-Fixed: 997062
Change-Id: I5dd4a9dd8f757d0850d75575d7e522e2a22f46f3
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-08-10 23:22:22 -07:00
Meng Wang
59ff3301d5 ASoC: msm: set pointer to null after kfree
In machine drivers, some pointers are not set as NULL
after the memory is freed, which will leave many
dangling pointers. Set them to NULL explicitly to
avoid potential risk.

CRs-Fixed: 997062
Change-Id: Ifa27a21cb76688101b758a34eddf69b160c27c79
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-08-10 23:22:14 -07:00
Jack Pham
21ba1207ac usb: pd: Always request maximum available current from PDO
Currently when selecting a PDO the request object is specifying
900mA as the operating current, which is suboptimal if the
supply is capable of more. Instead, simply request for the
maximum available. In the case where a PDO does not meet the
minimum current, set the capability mismatch flag and indicate
the required amount via the maximum field in the request.

Change-Id: I521059ab1c1d95df95fdede84512e73c5d9b2329
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-08-10 22:05:08 -07:00
Meng Wang
7b2050ceb6 ASoC: wcd: set pointer to null after kfree
In codec drivers, some pointers are not set as NULL
after the memory is freed, which will leave many
dangling pointers. Set them to NULL explicitly to
avoid potential risk.

CRs-Fixed: 997062
Change-Id: I1fde78158af71d57c958ac9f5668d4b65c9a7a3f
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-08-11 10:01:04 +08:00
Linux Build Service Account
9d822a9489 Merge "ASoC: msm: set pointers to NULL after kfree" 2016-08-10 18:29:19 -07:00
Linux Build Service Account
9aa7f8acc0 Merge "soc: qcom: pil: Add flag to know if modem SSR happened." 2016-08-10 18:29:18 -07:00
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
Deepak Katragadda
10991cc6f3 clk: msm: clock: Update clock frequencies on MSMCOBALT
Update the graphics and multimedia clock frequencies and FMAXes
to align with the v2 and vq frequency plans. While doing so,
remove support for the gpu_pll1 PLL since it is not going to be
used to generate any frequencies.

CRs-Fixed: 1051170
Change-Id: I4d6547d95bd76d8ca6f4d729009d8b4a78716d5b
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-08-10 17:38:21 -07:00
Gautham Mayyuri
450d2ad5ee msm: camera: FD: 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 FD hardware
whenever the clocks are turned on.

CRs-Fixed: 1044373
Change-Id: I7ffa9d7bd9c39696b2ca0c688fdc13ce947ae1c7
Signed-off-by: Gautham Mayyuri <gmayyuri@codeaurora.org>
2016-08-10 15:49:09 -07:00
Gautham Mayyuri
4b2c1679b1 msm: camera: jpeg: 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 jpeg hardware
whenever the clocks are turned on.

CRs-Fixed: 1044373
Change-Id: Idd83064eaea2dee48b78a352a715633c04347217
Signed-off-by: Gautham Mayyuri <gmayyuri@codeaurora.org>
2016-08-10 15:43:28 -07:00
Gautham Mayyuri
974be111a4 ARM: dts: msm-4.4: Add axi clock and remove cpp rcg clk for msmcobalt
The axi clock is needed while voting for bus bandwidth and needs
to be turned on along with other cpp clocks, Remove cpp rcg clk.

CRs-Fixed: 1044777 1044373
Change-Id: I644cdf84c6cf71bcb8f4ea24c0efb9a3603ca435
Signed-off-by: Gautham Mayyuri <gmayyuri@codeaurora.org>
2016-08-10 15:34:45 -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
Yuanyuan Liu
8d1b122a74 ARM: dts: msm: Add smmu iova address and size for ICNSS
Add smmu iova address and size for ICNSS. It will be used to
attach to smmu driver.

CRs-Fixed: 1049889
Change-Id: I7aad55ba6ac69ad2ca7a8783bf4fdd8241d112cc
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-08-10 13:37:45 -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