d177ede6461320e682364a56c66577143d459238
After cold reset is introduced, the phone is cold reset instead of warm reset, such as panic. In this case, the power up reason saved in shared memory will be lost. Consequently, the power up reason on next boot up time will be normal boot instead of correct ones. To resolve this issue, we can use the two spared pmic registers which are power lost safe to save the restart reason for these cases. Motorola definition of AP panic bit set in extra info pmic reg conflicts with QC definition of Warm reboot bit set in extra info reg move Mot bit to available position to avoid conflict Force a cold reboot for the command "adb reboot bootloader" to avoid the warm boot when user tries to continue boot from boot menu. For early kernel panic before PMIC is initialized, the function qpnp_pon_store_extra_reset_info will fail. Need to set IMEM flag for fail safe in this case. For post-panic, post-wdt, post-pmicwdt reboot, we do cold reset. And set the PMIC register accordingly, to nofity BL the special reboot behavior. Configure panic as warm restart, so that we have chance to get panic logs. According to SR 01277290, 0x88D and 0x88E are spare registers for PMIC where we could store oem specific reset information Ported from: https://gerrit.mot.com/1446282 Change-Id: I6704c801435c6586dbe64259c214dcdc926b07cf Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com> Reviewed-on: https://gerrit.mot.com/1499584 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wang Wang <wangwang1@lenovo.com> Submit-Approved: Jira Key
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Android Kernel for Motorola Moto G52 (sm6225) — Nethunter Release
2 GiB
0 Stars
1 Watchers
0 Forks