When system is freezed or has no response, DFers often reset the phone
by long-press power btn. So there is no useful log for developpers and
the issue becomes very hard to analysis.
This hw_warmreset feature will trigger a warmreset reboot, so that next
cycle system can save the lastkmsg and re-trigger a clean hardware
cold reboot.
Only when the command line is configured with "hw_warmreset_enable=1",
the feature will take effect.
Change-Id: I9e0abcf3757b69175125bcf14188ad54f78a087d
Reviewed-on: https://gerrit.mot.com/1536790
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
After enabling CONFIG_INIT_STACK_ALL, which make reading cmd
from fifo is 0xAAAAAA00, instead of 0x00. This makes
command mismatch and touch is not resuming once goes to suspend.
Change-Id: I730ba3c562000024fdc8dfb1c9aed138b2d4e715
Signed-off-by: Kanagarathina Kalathi <kalath(CR)@motorola.com>
Reviewed-on: https://gerrit.mot.com/1545167
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Update configured registers on open and close events
if set in the device tree.
Change-Id: I004f519e1dd5851a93affab81598969509f27712
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1543714
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Reset fuel gauges in factory boot mode or in a
factory build
Change-Id: I63a3efe7ddf1e2a7cf612f56a10ca868265c2467
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1544240
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Submit-Approved: Jira Key
1. The i2c error message is output only when the i2c transmission error
exceeds the maximum number of attempts.
2. Output coordinate information when the touchscreen is pressed.
Change-Id: Ida9f51904b0d40e39111529843b146844b4240b6
Reviewed-on: https://gerrit.mot.com/1543943
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
TP:
Add power status flag to indicate whether it is powered on
or powered off.
Set power state when power on and power off.
Change-Id: I9f8677278a2bc358233e7221ee564b69e4b75dcc
Reviewed-on: https://gerrit.mot.com/1538895
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
Added USB cable detection support to better handle charging noise.
This is optional feature controlled via device tree property
mmi,usb-charger-detection.
Change-Id: Ie7ec0625d1712da94926d1903810a9ec1b497779
Reviewed-on: https://gerrit.mot.com/1543354
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Tao Sun <suntao2@motorola.com>
Submit-Approved: Jira Key
TP:
Take the larger value of x_width and y_width as the major, and the
smaller value as the minor.
Change-Id: I15461a286210e8925d5a497e9005d4dd1c624352
Reviewed-on: https://gerrit.mot.com/1542931
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
When answering a call, the display screen keeps on and off,
which causing the touchscreen to enter the suspend process when the
resume process is not completed
Change-Id: I70ace85a8eb969f5b3005218d432ce4e3d29e8c4
Reviewed-on: https://gerrit.mot.com/1542928
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
kzalloc maybe fail when memory fragmented, there is not enough contiguous
memory to used.
04-17 02:19:20.788 672 11313 D vold : File system checking finished.
No errors found.
04-17 02:19:20.788 672 11313 D vold :
04-17 02:19:20.788 672 11313 I vold : Check OK
04-17 02:19:20.816 672 11313 E vold : Mount failed; attempting
read-only: Out of memory
04-17 02:19:20.818 672 11313 E vold : public:8,97 failed to mount
/dev/block/vold/public:8,97: Out of memory
Binder : 672_7: page allocation failure: order:4, mode:0x60c0c0
(GFP_KERNEL|__GFP_COMP|__GFP_ZERO), nodemask=(null)
Change-Id: I7bb92c672bdf2b2f777871d5f12f793b34d36b7f
Reviewed-on: https://gerrit.mot.com/1539365
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shi-Yong Li <a22381@motorola.com>
Reviewed-by: Dongliang Yue <yuedl1@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
/mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/misc/awinic/aw8697/aw8697.c:1353:10:
warning: result of comparison of constant 0 with expression of type
'bool' (aka '_Bool') is always false [-Wtautological-constant-compare]
+++
Change-Id: I4bc8ebe7829d060d34a06d09dbb7eeb39891731c
Signed-off-by: a7301c <a7301c@motorola.com>
Signed-off-by: Perry White <awhite6@motorola.com>
Reviewed-on: https://gerrit.mot.com/1533709
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-on: https://gerrit.mot.com/1540157
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
/mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/input/touchscreen/goodix_gtx8_v1430_mmi/goodix_ts_i2c.c:732:52:
warning: result of comparison of constant 256 with expression of
type 'u8' (aka 'unsigned char') is always true
[-Wtautological-constant-out-of-range-compare]
3446 error, forbidden warning: goodix_ts_i2c.c:732
+++
Change-Id: I57c0062a562295e8254827d0152b4f0a11519f2b
Signed-off-by: a7301c <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1533708
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-on: https://gerrit.mot.com/1540156
Due to llvm is updated to 10.0.3, this would report
build error l(CR):
+++
/mnt/rider/a7301c/R_8250/kernel/msm-4.19/../../motorola/kernel/modules/drivers/mmi_info/mmi_info_main.c:43:3:
warning: misleading indentation; statement is not part of the
previous 'if' [-Wmisleading-indentation]
error, forbidden warning: mmi_info_main.c:43
+++
Signed-off-by: a7301c <a7301c@motorola.com>
Change-Id: Icce684f637adeb374a2298d3f8add967d5bbddca
Reviewed-on: https://gerrit.mot.com/1533707
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540155
In R, Only a few limite environment variables are passed
to ninjia, others will be cleared.
So, pass this "TOP" specically to kernel modules build.
And have to be absolute path.
Otherwise, the header can't be located.
Change-Id: I7820e3d8112611c1c16a1807ea57ab9949416918
Reviewed-on: https://gerrit.mot.com/1508821
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yinjun Chen <a7301c@motorola.com>
Reviewed-on: https://gerrit.mot.com/1540154
this sysctrl property has been defined in Astro dtsi,
it will not cause any mistake, but need to correct.
NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.
Change-Id: Ie1359731cd12636f83b0335c4d67be14c03d567c
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1539509
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
- Since now display has updated new interface for wakeup gesture,
apply the new interface to implement single tap for TDDI.
Change-Id: I0ee716b60cd1ef244d645a4a6735ad454288b98f
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1538941
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
- Since we noticed that some projects need to report not only one type
of touch gesture and touch hal has been changed on bq branch, so if
we still report instance the single tap should not be work properly. So
add report function key to fit for the hal's change.
Change-Id: I463c7ceb046836305b9c947eec6f79d321df7d92
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1538913
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqiu Huang <huangjq9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This is Awinic official release, the key change is i2c_read function,
use i2c_transfer to replace the old one, add thread_lock to protect
i2c operation safety, in order to resolve a potential no sound risk
after supporting different audio scenarios feature.
NO_PROP_NEEDED: aw882xx doesn't use in bq-shm2018 products.
Change-Id: I3daeb35c6a349c65bdb723d7f12430634abbf8f2
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1537490
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Submit-Approved: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
- Since there is a potential conflict between 83102 & 83102d
and 83112f, so temporarily remove support for them.
Change-Id: Ifb520ee039333053a58fd25b428b15e0795afacd
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536636
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
- Since defining the same IC name could potentially lead to compilation
failure, change the name of the relevant macro.
- Also change this name in common to ensure consistency.
Change-Id: If8f4b8ce790ae1f1a4ed8d610860670751f674b6
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536526
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Submit-Approved: Jira Key
- Since defining the same IC name could potentially lead to compilation
failure, change the name of the relevant macro.
Change-Id: Id2210be28172af09ff58756ee78b67f33a73153b
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536375
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
This commit is to clean up debug prints and make the heartbeat
delay only applicable when in factory mode.
Change-Id: I53e476954226656bdab0c952bd932dea6ae2f953
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535979
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Update charger driver to also delay heartbeat caused by
psy notifier call. Since this is the only other place
that heartbeat can first be called from. We only want to
apply this delay to the first time so we use a static
variable flag. Also add some extra debug just encase.
Change-Id: I771e1058e36906dba9d41df711fe2da25f821f4c
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535557
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
Try to delay first heartbeat 10 second to account for factory transient
voltages. If there is a reverse boost that the heartbeat catches it will
suspend the usb which can triger the factory kill if the vbus voltage goes
below 2V. If the voltage then comes back and doesn't decay while shutting down
it will get stuck during shutdown.
Change-Id: I688d6ef211be2b56d0f398075011b7528d7f0e58
Signed-off-by: Curtis Porter <porterc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535022
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
- When the driver open HX_FIX_TOUCH_INFO, the driver does not
fix the expected value, so improve the logic of this part.
- Delete unnecessary logs.
Change-Id: I1b51a70a1e2aaebeb20e91de14a2c60268bbcd2c
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1536264
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
Add option to set usb/flip recal via device.mk file instead
of calling out the product name.
Change-Id: I591933fbb6afb44ed65a9c15633b6aba96c382ca
Signed-off-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535142
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
- Add support for hx83112f based on himax_v2.
- This is bringup change for himax_v2 and fixed some existing bugs.
Change-Id: Ibd20af124e4259f02d7ad61098db57a1d32e7164
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1535709
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Dezhen Hou <houdz1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
use kallsyms_lookup_name("msm_trigger_wdog_bite") to get
"msm_trigger_wdog_bite" address instead of exporting from
kernel and no need port to kernel every platform
Change-Id: I314d552f480baed0fa418afcf7a80134c69867de
Reviewed-on: https://gerrit.mot.com/1534039
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
TP:
Because some vendor need the interrupts when changing the panel state,
so we should disable-irq after the panel state is completed to
adapt to more situations.
Change-Id: I78f6c6a4b989843dbab92761ddcd4ab324352ce8
Reviewed-on: https://gerrit.mot.com/1533861
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>
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
Remove references to battery serial and replace with checks for profile
name. Move psy name to device tree. Limit one profile per fuel gauge.
Add fg specific work queue.
NO_PROP_NEEDED: This change provides dual battery support, which is not
needed on previous products that use this driver.
Change-Id: I0827e22b9b289b8c4ba4c0e63fb6a180798d89f9
Signed-off-by: Drew Abbott <drewa@motorola.com>
Reviewed-on: https://gerrit.mot.com/1511235
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Ryan Lattrel <ryanl@motorola.com>
Reviewed-by: Ling Jin <lingjin@motorola.com>
Submit-Approved: Jira Key
In Astro, aw882xx doesnt work correctly and causes speaker has
no sound, after checking resgiters dump,0x04 bit6 I2SEN,
0x06 bit12 I2SRXEN is not right
Driver never set these two bits after init done, I don't why
it happens, monitor these 2 registers, correct them if any
readback value is wrong.
Change-Id: I2837d706c7c4836879a483a9d12371664b2614f5
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1532728
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
New interface to retrieve mutual capacitance range. Range reported as
pair of min,max values found in raw mutual capacitance test report.
This interface will only be available in factory mode and intended to
retrieve range while running in the same controlled environment as
calibration. LSI claims range (e.g. abs(max - min)) must be below 100
to consider calibration successful. In case when driver won't be able
to retrieve test results, pair of (1,-1) will be reported.
Change-Id: I3f884c733d1f5484ad7d9780bef9cd98eff09e43
Signed-off-by: Konstantin Makariev <hcv867@motorola.com>
Reviewed-on: https://gerrit.mot.com/1528998
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
1. Add new macro for double tap if define
2. Disable slide nav
3. Enable swipe nav
4. Set up double tap at HAL
Change-Id: Ibab4d2670980ee76ef03fc82b4c23886cf19a871
Signed-off-by: zhongling1 <zhongling1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1522953
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Weilong Wu <wuwl10@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key