Certain frequencies of DP VCO clock are more than 4.29 GHz
and are not supported by clock framework on 32 bit builds,
since it exceeds the maximum value of unsigned long data type.
To fix this issue, change the DP link clock frequencies in order
of KHz in DP FB driver/MMSS cobalt clock driver/DP PLL driver.
Change-Id: I46d9b5c57f94aa1f10df08c4430b617355a82eec
Signed-off-by: Padmanabhan Komanduru <pkomandu@codeaurora.org>
Re-enable CONFIG_QCOM_REMOTEQDSS for all supported 32bit
targets i.e. msmcobalt and msmfalcon. It was earlier
disabled due to a build issue which is fixed by 'commit
8ecaa617d5 ("soc: qcom: remoteqdss: Fix build error
on 32bit")'.
Change-Id: I4f8302385010cf2e5c3d9baa717bd2d7d1237853
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
The current api which performs the clock reset is moved to use the reset
framework, so support the changes in USB driver for the same. The reset
framework requires to get reset handle and perform assert/deassert of the
resets.
Change-Id: Ifcde1c6af624294cbd1944eaa9b526dd6dcc51de
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
The stack object “ci” has a total size of 8 bytes. Its last 3 bytes
are padding bytes which are not initialized and leaked to userland
via “copy_to_user”.
Git-commit: 681fef8380eb818c0b845fca5d2ab1dcbab114ee
Git-repo: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
(cherry picked from commit 681fef8380eb818c0b845fca5d2ab1dcbab114ee)
Change-Id: Idacb2d5ed64654f85fb86fcce0a196223a7ac2af
Read the charger die temperature and its threshold from RR_ADC,
and expose to the userspace through battery PSY.
Read USBIN current and voltage from RR_ADC, and expose to the
userspace through USB PSY.
CRs-Fixed: 1050042
Change-Id: I452a050298a6ab081f64aa2dcf295d2d257bcb32
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Add required settings for command mode 120Hz sharp
panel in msmcobalt for CDP and MTP devices.
CRs-Fixed: 1060888
Change-Id: I58d05466f5e372fb9ce3e0dd49fff07c341f6dc0
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Per USB 3.1 specification, USB device can draw upto 900mA when
enumerated in super-speed mode and bus is resumed. Fix bug that is
requesting 500mA when bus is resumed when bus is operating in
super-speed mode.
CRs-Fixed: 1063393
Change-Id: I585f4c560f0920d3cb56cce009297b5665abb42e
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
The multimedia PLLs are all in the MX domain on MSMCOBALT. Replace
voting on the CX rail with voting for MX voltages from the clock
driver. In addition, update the MMPLL7 FMAX table.
CRs-Fixed: 1063153
Change-Id: I296d2b151753be599a1db139e36f5e1eabe76791
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Add support to measure the perf and power cluster clocks
via the debug mux on MSMCOBALT.
CRs-Fixed: 1059153
Change-Id: I1682481dfe22deef300ea9bd1db558ae634c9129
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
We aren't checking to see if the in-inode extended attribute is
corrupted before we try to expand the inode's extra isize fields.
This can lead to potential crashes caused by the BUG_ON() check in
ext4_xattr_shift_entries().
Upstream commit: 9e92f48c34eb2b9af9d12f892e2fe1fce5e8ce35
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Change-Id: Ia66e005d04bf9eccb7febd8cb0733a67f9a4faf4
Git-commit: 1f002539e6da1e03cede84fb3416c58dae2f6f66
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
Add a validation check for dentries for encrypted directory to make
sure we're not caching stale data after a key has been added or removed.
Also check to make sure that status of the encryption key is updated
when readdir(2) is executed.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Theodore Ts'o <tytso@google.com>
Git-commit: b4fd46149cbb118c6c2fa29f24391e79b87862b7
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Change-Id: I64ea95854de3c633b17bea0b63ab658e1524befb
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
STEP_CHARGING_ENABLED indicates if step charging is enabled or not.
STEP_CHARGING_STEP reflects step charging phase.
Both properties are added for the purpose of testing and debugging.
CRs-Fixed: 1052854
Change-Id: I7d7517ab3f172016bb2f1c23fb2788bbd2d01086
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Add IPA DMA test suite to IPA driver. Different
tests are being added to cover different IPA
DMA functionalities.
CRs-Fixed: 1060507
Change-Id: Icf927ce1eb7107007e1cc5c7b5f0a63814510398
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
__builtin_return_address(1) results in build error on
32bit.
drivers/soc/qcom/remoteqdss.c:
In function 'remoteqdss_do_scm_call':
drivers/soc/qcom/remoteqdss.c:113:363:
warning: unsupported argument to '__builtin_return_address'
error, forbidden warning: remoteqdss.c:113
Fix this by using __builtin_return_address(0) and passing
the caller information down to functions where it is used.
Change-Id: I535ec77009a73f6ea95e4060177ca7b8e6a2c8d1
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Add support for ARCH_MSMTRITON in msmfalcon arm64
defconfigs.
Change-Id: Ic83fe1607d5f62e0ceefd4497aae0c111a2727d7
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Add device tree files necessary to support msmtriton SoC.
Also, add support for Rumi platform.
Change-Id: Ia18a2f53fc3bf7ca459182dc197ad6a2078c7f5c
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
Avoid excessive logging in voip driver. Change "data
not available" error messages from pr_err to
pr_err_rate_limited.
CRs-Fixed: 1059737
Change-Id: Ia4c287cc76543228038653f3179946782bb859e2
Signed-off-by: Karthik Reddy Katta <a_katta@codeaurora.org>
If user tries to read /dev/usb_accessory node, it results in calling
acc_read() callback. If accessory interface is not present in current
USB composition, it will lead to crash as dev->ep_out is NULL. Fix
the issue by moving problematic code down after device becomes online.
Change-Id: I6441f6dc3cbe3a84a384fa3e8a6583f65a74659d
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Index can be assigned as -EINVAL which could be
out of array index. Check if index is valid value
before use.
CRs-Fixed: 1046606
Change-Id: Ib1af53ab52a65cca2ed9b3489359813e690b1cd6
Signed-off-by: Meng Wang <mwang@codeaurora.org>
buf returned from q6asm_shared_io_buf could be null and
it could cause crash. Check if buf is null before using
it to avoid crash.
CRs-Fixed: 1046606
Change-Id: Ia988b11ff7d03edc4ddd959571da1378da62077c
Signed-off-by: Meng Wang <mwang@codeaurora.org>
NULL check timer->card before use to prevent dereferencing
a NULL pointer.
CRs-Fixed: 1046606
Change-Id: I8e359864508cc2307d9e9619f36c7c08cc3842f9
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Impedance index may be out of range. Check if impedance index
is out of range before use.
CRs-Fixed: 1046606
Change-Id: Ia490d15a51ad70759c917fbe7e84fdadaa140e20
Signed-off-by: Meng Wang <mwang@codeaurora.org>
8937 QRD supports Focaltech touch controller. For ft5x06_ts driver
to work with the TrustZone secure touch, all the touch interrupts must
be forwarded between the Linux Kernel and the TrustZone input driver.
Add APIs and configuration to support this.
CRs-Fixed: 974549
Change-Id: Ibf873594722c6f299eb4cacf81804cb6548824a4
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
During device resume, the touch resume function is called after display's
resume. In this case, the ft5x06's resume function needs to wait for
200ms because of reset requirement. Defer the touch resume to a workqueue
to reduce the total device resume time. For this an optional DT property
is added to enable this on targets that need this feature.
Change-Id: Ib0677ca792aea83ece1caf8a0afff341302747fb
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Signed-off-by: zhaoyuan <yzhao@codeaurora.org>
Set performance profile with IPA RM in order
to scale IPA clocks to turbo to achieve CAT16 data rates
Change-Id: I817b716624445db57047100716d253bb867f8a77
CRs-Fixed: 1056572
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
Fix a memory leak in case tethering stats
QMI message failed.
Change-Id: I90457b5dec2e8f2105f37978de57954cdaf9aa08
CRs-Fixed: 1055880
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>