check current and new usecase index and invoke QDSP/LPASS
new context creation only when there is actual usecase changes.
PROPAGATED_from: (CR)
Change-Id: Id335d253efaa1c0974715568233c8e91819b7d43
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1226431
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
1) Removed statments responsible for spamming
2) Cleaned up others to use same pr_fmt so its easy to filter all
st21nfc log statements
Change-Id: Ie44a8a559b97e67fc3417eb7adb12e209dbc5eb3
Signed-off-by: Balachandar Swami <w60013@motorola.com>
Reviewed-on: https://gerrit.mot.com/1227600
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
-1, add force pmic chg functions.
-2, change the thermal policy, force to only pmic chg
when the thermal level equal the max level.
-3, change the debug print level, only print MOTO_INTERRUPT
Change-Id: I2fb37bbdb9bbd32866e5a7e7af773dfea72f5e99
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1229055
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Sleep function may cause system hungup when resume.
Skip this function as a WA for this issue.
Change-Id: Ia0d7ea61ae530d0b59c9298bcc02913adf1e741f
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1228833
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
- Will setting default resolution via device tree because
after firmware was broken and we need to need to update
firmware and reset resolution again, and considering
compatibility, the resolutions of different projects maybe
different.
Change-Id: I7ac34a5108c5941e1b92e0cfd792afbfd3d5bc04
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1227228
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
The EVT1A phone with TI's drv2624 vibrator controller would
vibrate twice when booting which is not good.
So move vibrating from init.mmi.overlay.rc here as TI drv2624's
auto-calibration does on boot time.
Change-Id: Ie4dd78615fb88785a12c0b523832de17e30da4e2
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1227043
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
DRM framework not following full display power up sequence when
splash screen enabled and thus first unblank notification is missing.
This change enables interrupts handling on F34 load to work around
that deficiency
Change-Id: I00c2a93417e66ebce58ff5e85c7d0baafc9af14d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1224646
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Change code base for keep consistency.
- Add comments for code readability.
- Remove redundant code.
- Set initial value for global variables.
- Move memory map and trim id table to one file. (nt36xxx_mem_map.h)
- Refine gesture part to fit latest FW protocol.
- Refine ESD function.
- Refine trim ID and product id part.
- Add CRC support function.
- Refine FW update routine.
- Refine selftest function and add support for notch panel.
Change-Id: Id7dfd3d5d29d44deaccb8f7666094c0ff5e1f8d3
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1220466
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
-1, ESR pulse cycle adjust to 60s
-2, ESR pulse remain 5s each cycle
-3, both pps voltage and pps current reduce to generate ESR pulse
during in the CV state
Change-Id: I67c704581312081c314dc3aa6e8c9a0a985fcf2d
Signed-off-by: xuwt2 <xuwt2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1222901
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yonghua Yan <yanyh2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Undefine AWINIC_RAM_UPDATE_DELAY to load ram earlier in order to
vibrate 1 second at boot time with the already loaded waveform.
Change-Id: I3f398d6bf019123ccc404fde2542a740b469eb98
Signed-off-by: yangjq <yangjq@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1225158
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
The userspace string length count includes the null-byte,
but the length of range doesn't include the terminator byte.
When the range is has only one value,the utag cannot be written.
Change-Id: Id4a17bf93198fd3230a2d265fa779ff8c4dda9ef
Reviewed-on: https://gerrit.mot.com/1224383
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Report real device ID based on value reported in DEVICE_ID LSB
Change-Id: Ic34ad750d2c1c251579a4a9ee2c679c76f85839e
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1223893
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
To prevent invalid reporting by healthd, switch to
POWER_SUPPLY_TYPE_MAIN so that it does not
accidentally use mmi_battery as the reporting interface.
Change-Id: Iaf0f2b37de02932994d5826c5b7f2aff777b8d28
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1221855
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
To prevent invalid reporting by healthd, switch to
POWER_SUPPLY_TYPE_MAIN so that it does not
accidentally use max170xx as the reporting interface.
Change-Id: Ic4c5815a31a0fd00345bb45d58a3c51474ef1629
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1221854
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
Ip link tearing down is later than the usbnet disabling.
Kernel will panic if bulk_in endpoint is NULL and ip stack still has data
Free the skb in this case.
Change-Id: Icc987551da4a8b9c1998b0c09f19fbed49ea58ee
Signed-off-by: a17671 <a17671@motorola.com>
Reviewed-on: https://gerrit.mot.com/1220589
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Add the power status response to the muc uart driver.
Change-Id: Ib3c4327d4329be930eb540474546b19d57fd7415
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1217749
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Could potentially sleep with a spinlock if
we try to wake the muc while holding the queue
spinlock. This reworks the wake code to no longer
call the power mode set ioctl with a spinlock.
Also fixes -11 errors seen on the first transmit
attempt after coming out of low power mode.
Change-Id: Ibc86420bea042d0e1118588519fb32f635248769
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1219179
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
There are other programs in DLKM kernel which don't define
IOCTL_COMPAT. This is not to include compat ioctl on those.
Change-Id: Ie463dd624febb6b0db9319634991a36f533b1f10
Signed-off-by: Yoon (Seungyoon) Lee <w22905@motorola.com>
Reviewed-on: https://gerrit.mot.com/1220802
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Reviewed-by: Yin-Jun Chen <a7301c@motorola.com>
Tested-by: Jira Key
Submit-Approved: Jira Key
This patch includes necessary changes to the initial driver's code
from Raydium to build DLKM
Change-Id: I2de9c121c907cb45fba83584ca3eaee81f7c560d
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1219236
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
WRITE_SYNC is not defined on new kernel.
Change-Id: If47e84c06a0e52ccf4a7a116d233f8d8c924191e
Signed-off-by: Shiyong Li <a22381@motorola.com>
Reviewed-on: https://gerrit.mot.com/1207791
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Remove the vendor version of the sx933x driver. A moto
version exists at drivers/misc/sx933x. The same driver
should be used across all products.
Mot-CRs-fixed: (CR)
This reverts commit 12a37b65d3a9bfee557f7b2c4f65f64b592f1c95.
Change-Id: I7d4b72c40248695212b34db0a967424f8173ae41
Reviewed-on: https://gerrit.mot.com/1217725
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key