jixu
dda4d1a6ad
guamp: arm64/dtsi enable regulator_fixed_voltage
...
-- Enable CONFIG_REGULATOR_FIXED_VOLTAGE
-- Camera macro AF driver LDO enabled needed
Change-Id: Id827744e0768583d32855ff7a69b4a48f5d362c4
Signed-off-by: jixu <jixu@motorola.com >
Reviewed-on: https://gerrit.mot.com/1521069
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wang Liu <liuwang2@lenovo.com >
Reviewed-by: Jian Zhang <zhangjo@motorola.com >
Reviewed-by: Dawei Wang <wangdw10@motorola.com >
Reviewed-by: Long Cheng <chengl1@motorola.com >
Reviewed-by: Shuo Wang <wangsh18@motorola.com >
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com >
Reviewed-by: Zhilong Wang <wangzl30@motorola.com >
Reviewed-by: Zhichao Chen <chenzc2@motorola.com >
Reviewed-by: Zhenxin Xi <xizx@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:10 -03:00
luodw1
96ac3c6c18
power: Add wakeup source in battery historian logging
...
Change-Id: I194ceccd10e455da8c58a2c96e4339557024b142
Signed-off-by: luodw1 <luodw1@motorola.com >
Reviewed-on: https://gerrit.mot.com/1523886
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:10 -03:00
zhaoxp3
e3a5fdf0f3
arm64/defconfig: enable softlockup panic for debug
...
enable softlockup panic for debug
remove duplicated option
Change-Id: Ief23a78fffdefb13dfee92c9863c62cd2dfae0d1
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com >
Reviewed-on: https://gerrit.mot.com/1522506
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
Submit-Approved: Jira Key
2023-06-01 00:47:10 -03:00
zhangj10
9746c26d18
: arm64/defconfig : enable NFC
...
changelist
enable NFC config
Change-Id: Ia4e17046fc95588e940e7ce2c0510f0d471f4698
Signed-off-by: zhangj10 <zhangj10@motorola.com >
Reviewed-on: https://gerrit.mot.com/1518991
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Lu Lu <lulu2@lenovo.com >
2023-06-01 00:47:10 -03:00
xuwei9
1b96407e54
kernel:add OCP charger current limitation
...
Add Other charger port current
limitaion
Change-Id: I8ab0b2eaa5bbe2756594b4288024b841df4e5483
Signed-off-by: xuwei9 <xuwei9@lenovo.com >
Reviewed-on: https://gerrit.mot.com/1517843
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:10 -03:00
dengwei1
bf5eabcbd7
guam: add touch module support
...
add touch module
support
Change-Id: I6d86a65f9eda5ae6d2af53ad17ff4421990bbd12
Signed-off-by: dengwei1 <dengwei1@motorola.com >
Reviewed-on: https://gerrit.mot.com/1515456
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:09 -03:00
Lei Chen
3d05723955
Revert "(CR): config: disable CONFIG_PANIC_ON_REFCOUNT_ERROR"
...
This reverts commit 06b7802261ddec2212369109df674b12981181c3.
Change-Id: I87909be01da86795b90661cf2373af8955486c15
Reviewed-on: https://gerrit.mot.com/1514012
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:09 -03:00
zhaoxp3
1334d5592b
arm64/defconfig: disable debug config
...
remove unused touch driver
disable debug options
Change-Id: Iae9623ab8df0bad56d214d2f18366c22addc0294
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com >
Reviewed-on: https://gerrit.mot.com/1512672
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-01 00:47:09 -03:00
chenl18
800da5bc37
config: disable CONFIG_PANIC_ON_REFCOUNT_ERROR
...
Disable CONFIG_PANIC_ON_REFCOUNT_ERROR to avoid panic from
rmmmoding goodix_fod_mmi.
Change-Id: Ie02cd5d6feca17ebd92e887efe8dfabb3ee619e9
Signed-off-by: chenl18 <chenlei18@lenovo.com >
Reviewed-on: https://gerrit.mot.com/1513033
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com >
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:09 -03:00
zhaoxp3
1ccf517704
arm64/configs: sm4250: Enable USB console
...
There are quite some use cases where we need live serial logs to
analyze issues on close phones without physical debugging UART
port exposed. Having the capability of re-directing serial logs
over USB is helpful for both general development and return analysis
scenarios where we have to avoid HW changes as much as possible.
The 2 new configs will add the capability of re-directing serial logs
to USB CDC ACM interface, though it is up to init's decision as for
whether to activate the capability based on bootloader's input.
Change-Id: Ic7b7846671292a7bb8b13051b2c233bd26b24ae9
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com >
Reviewed-on: https://gerrit.mot.com/1510439
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2023-06-01 00:47:09 -03:00
Qing Chang
eb8f514a8b
tty: msm_geni_serial: Support the match() callback
...
The new match() callback for earlycon is to tell whether earlycon and
the "real" console are the same device.
Change-Id: I8b54d5d9f1d737650d0890fc9f596080c8b1aaf2
Signed-off-by: Qing Chang <a21550@motorola.com >
Reviewed-on: https://gerrit.mot.com/1472629
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com >
Submit-Approved: Jira Key
Signed-off-by: Qing Chang <a21550@motorola.com >
Reviewed-on: https://gerrit.mot.com/1474156
Reviewed-on: https://gerrit.mot.com/1509729
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:09 -03:00
Qing Chang
7b6dfedec4
printk: Keep boot console on if enabled
...
Without this change, the boot console has strong assumption of the state of
the "real" console, so when PM kicks in during early boot stage, resources
(l(CR) clocks, GPIOs, etc) for the boot console may be turned off if the "real"
console sharing these resources is not enabled, which will lead to malfuntion
of boot console.
Change-Id: I19a58d76c99e0fb7bff0d9dc06a2b0f9066063e2
Signed-off-by: Qing Chang <a21550@motorola.com >
Reviewed-on: https://gerrit.mot.com/1472630
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Qing Chang <qing@motorola.com >
Submit-Approved: Jira Key
Signed-off-by: Qing Chang <a21550@motorola.com >
Reviewed-on: https://gerrit.mot.com/1474157
Reviewed-on: https://gerrit.mot.com/1509725
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:09 -03:00
zhaoxp3
280c7b9502
arm64/config: support UAS of usb storage
...
With UAS (USB Attached SCSI), the tested Samsung SSD read and write
speed gets 3x and 2x respectively on Nash.
Testing results for Samsung 256GB Portable SSD T5:
Seq. read: 244 MB/s v.s. 84 MB/s
Seq. write: 161 MB/s v.s. 94 MB/s
Port of (CR) on kernel 4.4.
Change-Id: I53fcc1a18977041215989aa93fc2b0c82354a17c
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com >
Reviewed-on: https://gerrit.mot.com/1511645
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
Submit-Approved: Jira Key
2023-06-01 00:47:09 -03:00
zhaoxp3
889c770cc3
arm64/defconfig: enable usbnet drivers
...
Enable the usbnet framework and drivers to support
USB net.
Change-Id: I4bc66d8c34de6d20cc01044d9efbe97bdf71999c
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com >
Reviewed-on: https://gerrit.mot.com/1511644
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
Submit-Approved: Jira Key
2023-06-01 00:47:09 -03:00
a17671
8b24262499
usb:configfs:Set udc_name NULL if attach failed
...
If the probing of UDC controller failed
udc_name shall be NULL to avoid double unregistration
and the panic
It could happen in some corner case
Change-Id: I2e6e4168a505b86d8f1b57db53be91acc608ee97
Signed-off-by: a17671 <a17671@motorola.com >
Reviewed-on: https://gerrit.mot.com/1438349
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1457371
Reviewed-by: Yeqing Wang <wangyq13@motorola.com >
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
(cherry picked from commit 9fc2515cb3fe8ffdf26f04c0a58a57552e50b6f3)
Reviewed-on: https://gerrit.mot.com/1459030
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Reviewed-on: https://gerrit.mot.com/1463803
Reviewed-on: https://gerrit.mot.com/1511643
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:09 -03:00
Kenny Kessler
e9d9047bd4
usb/dwc3: msm: Enable all Debug Logs
...
Force all logs to print.
The USB DWC3 is very important and tracking dmesg
is much easier when everything is ON.
Port-of: https://gerrit.mot.com/1307019
Change-Id: Iebde3d9feadde8a3e92acb10baeb97c5ba7e07cf
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com >
Reviewed-on: https://gerrit.mot.com/1332192
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1391225
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Reviewed-on: https://gerrit.mot.com/1449174
Reviewed-on: https://gerrit.mot.com/1511642
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:09 -03:00
liuyc20
a56ba64469
gadget: bcdUSB version back to 2.0 when not SuperSpeed
...
Some of PC USB3.0 port don't support bcdUSB 2.1 version.
But the phone bcdUSB will focus on bcdUSB 2.1.then USB gadget will
reset continually.Change bcdUSB to 2.0 to compat all PC USB port type.
07-02 08:05:34.853 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
07-02 08:05:35.182 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
07-02 08:05:35.415 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
07-02 08:05:35.647 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
07-02 08:05:44.171 0 0 D dwc3 a600000.dwc3: Notify OTG from dwc3_gadget_reset_interrupt
Change-Id: Icb46a95226caecc9778c6889a85654f97fa85012
Signed-off-by: liuyc20 <liuyc20@lenovo.com >
Reviewed-on: https://gerrit.mot.com/1383246
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com >
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1449152
Reviewed-by: Yuecai Liu <liuyc20@motorola.com >
Reviewed-on: https://gerrit.mot.com/1511641
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:09 -03:00
Yonghua Yan
a3db809d7c
usb: configfs: synchronize the secure and udc_name state
...
The gadget driver unregister/probe is not allowed to reentry
for the same udc.
As the conditions for gadget driver unregister/probe entry,
gadget secure and udc_name status should be synchronized.
Otherwise, in old implement code logic, there is still a chance
to fall into trouble of gadget driver unregister/probe reentry
for the same udc.
Change-Id: I6eb30a36eab84afd656f5bee9678e8d44933c6bc
Signed-off-by: Yonghua Yan <yanyh2@motorola.com >
Reviewed-on: https://gerrit.mot.com/1287442
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuecai Liu <liuyc20@motorola.com >
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1338870
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Reviewed-on: https://gerrit.mot.com/1449122
Reviewed-on: https://gerrit.mot.com/1511640
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:06 -03:00
Yonghua Yan
a4fd173df1
usb: configfs: skip unregister gadget in secure
...
There will be gadget driver unregister twice in USB secure
when try to set the UDC to none from userspace, which will cause
kernel panic in 4.9 kernel version, as there is a feature
about pending gadget driver list being added in this version.
As a solution, make sure gadget driver unregister or probe only
once over secure mode entry or usb configure from userspace.
Kernel BUG at ffffff8093067140 [verbose debug info unavailable]
Internal error: Accessing user space memory outside uaccess.h
routines: 96000045 [#1 ] PREEMPT SMP
PC is at usb_gadget_unregister_driver+0x88/0xf0
LR is at usb_gadget_unregister_driver+0x30/0xf0
Change-Id: I77dfbd4162c7a4d96bbe297Montana4c99e876f5cf88
Signed-off-by: Yonghua Yan <yanyh2@motorola.com >
Reviewed-on: https://gerrit.mot.com/1287125
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com >
Reviewed-by: Yuecai Liu <liuyc20@motorola.com >
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1338869
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Reviewed-on: https://gerrit.mot.com/1449121
Reviewed-on: https://gerrit.mot.com/1511639
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:06 -03:00
Jerry Zhang
fbd97d639f
usb: gadget: f_mtp: Return error if count is negative
...
If the user passes in a negative file size in a int64,
this will compare to be smaller than buffer length,
and it will get truncated to form a read length that
is larger than the buffer length.
To fix, return -EINVAL if the count argument is negative,
so the loop will never happen.
Mot-CRs-fixed: (CR)
CVE-fixed: CVE-2017-13163
Bug: 37429972
Test: Test with PoC
Change-Id: I5Montanae38e6fbe2c17eb8c493f9eb81df6cfd780a4
Signed-off-by: Jerry Zhang <zhangjerry@google.com >
Signed-off-by: Amarendra Reddy <amarenr@motorola.com >
Reviewed-on: https://gerrit.mot.com/1090092
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Igor Kovalenko <igork@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1167331
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Reviewed-on: https://gerrit.mot.com/1262843
Reviewed-on: https://gerrit.mot.com/1338862
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Reviewed-on: https://gerrit.mot.com/1449108
Reviewed-on: https://gerrit.mot.com/1511638
Reviewed-by: Zonghua Liu <a17671@motorola.com >
2023-06-01 00:47:06 -03:00
Ravi Vembu
bcf6a699d1
usb: gadget: storage: Support READ_TOC for MacOS
...
Modify READ_TOC handling to add support for both Windows and MacOS
host environments.
Change-Id: I4bf3c6a8fbec95387608869efbacb6f0537c7bbf
Signed-off-by: Ravi Vembu <raviv@motorola.com >
Moto-CRs-fixed: (CR)
Reviewed-on: http://gerrit.mot.com/864910
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver <sltawvr@motorola.com >
Tested-by: Jira Key <jirakey@motorola.com >
Submit-Approved: Jira Key <jirakey@motorola.com >
Signed-off-by: Rav(CR) Vembu <raviv@motorola.com >
Reviewed-on: https://gerrit.mot.com/944111
Reviewed-on: https://gerrit.mot.com/1167320
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com >
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1262841
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Reviewed-on: https://gerrit.mot.com/1338861
Reviewed-on: https://gerrit.mot.com/1449077
Reviewed-on: https://gerrit.mot.com/1511637
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:06 -03:00
Ravi Vembu
63fb41f31c
usb: configfs: Implement secure attribute
...
Implement the secure attribute for locking USB access
from the gadget driver.
echo 1 > /sys/class/android_usb/android0/secure
will lock USB access and disable USB enumeration.
Change-Id: Ieb4f9358052a4596b2a2cf39143404dd5b52fee1
Signed-off-by: Ravi Vembu <raviv@motorola.com >
Moto-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/965870
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver <sltawvr@motorola.com >
Tested-by: Jira Key <jirakey@motorola.com >
Reviewed-by: Zong-Hua Liu <a17671@motorola.com >
Submit-Approved: Jira Key <jirakey@motorola.com >
Reviewed-on: https://gerrit.mot.com/1167324
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com >
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Conflicts:
drivers/usb/gadget/configfs.c
Change-Id: Ieb4f9358052a4596b2a2cf39143404dd5b52fee1
Reviewed-on: https://gerrit.mot.com/1257220
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com >
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1338831
Reviewed-on: https://gerrit.mot.com/1449037
Reviewed-on: https://gerrit.mot.com/1511635
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:06 -03:00
Ravi Vembu
23e5982bf2
usb: configfs: Reset the use_os_desc flag
...
os_desc support can be turned off via userspace. Kernel also
needs to correspondingly reset its state if userspace has changed
it. Otherwise this cause os descs to be advertised on drivers that
have no os desc support.
Change-Id: Ib8da2eb78a1640aac9abdb29840a33773603d1a8
Signed-off-by: Ravi Vembu <raviv@motorola.com >
Moto-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/920122
SLTApproved: Slta Waiver <sltawvr@motorola.com >
SME-Granted: SME Approvals Granted
Tested-by: Jira Key <jirakey@motorola.com >
Reviewed-by: Christopher Fries <cfries@motorola.com >
Submit-Approved: Jira Key <jirakey@motorola.com >
Reviewed-on: https://gerrit.mot.com/1167316
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com >
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1257205
Reviewed-by: Xiaojun Ji <jixj@motorola.com >
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Reviewed-on: https://gerrit.mot.com/1338832
Reviewed-on: https://gerrit.mot.com/1449034
Reviewed-on: https://gerrit.mot.com/1511634
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:06 -03:00
Ravikumar Vembu
4763aedad8
usb: mass_storage: Add support for SC_REBOOT
...
Add support for a vendor specific SCSI pass through command to
trigger reboot.
SC_REBOOT (0xd7) - triggers reboot into fastboot mode
SC_REBOOT_1 (0xd8) - triggers reboot into normal mode.
Propagated from (CR)
Change-Id: I15e37c907fe0fcb3d0186bb58aa1995e63fcb944
Signed-off-by: Rav(CR) Vembu <raviv@motorola.com >
Reviewed-on: https://gerrit.mot.com/942135
SLTApproved: Slta Waiver <sltawvr@motorola.com >
SME-Granted: SME Approvals Granted
Tested-by: Jira Key <jirakey@motorola.com >
Submit-Approved: Jira Key <jirakey@motorola.com >
Reviewed-on: https://gerrit.mot.com/1312200
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Ling Jin <lingjin@motorola.com >
Submit-Approved: Jira Key
(cherry picked from commit e1048f3a683f50c3e80c2ee9edf43c769a01a59c)
Reviewed-on: https://gerrit.mot.com/1252613
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Reviewed-on: https://gerrit.mot.com/1338912
Reviewed-on: https://gerrit.mot.com/1449026
Reviewed-on: https://gerrit.mot.com/1511633
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:06 -03:00
Ravi Vembu
e56df2d966
usb: f_mtp: Handle OS descriptors only when bound
...
Handle OS descriptors and other Vendor defined requests only
when the MTP function is bound. Otherwise MTP responds for
setup requests from Windows Hosts when other gadget drivers are
active and the host ends up loading the wrong driver.
Change-Id: I324d42bd0fab743c7b40d2b119225a6d66781a52
Signed-off-by: Ravi Vembu <raviv@motorola.com >
Moto-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/946404
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver <sltawvr@motorola.com >
Tested-by: Jira Key <jirakey@motorola.com >
Submit-Approved: Jira Key <jirakey@motorola.com >
Reviewed-on: https://gerrit.mot.com/1167321
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com >
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1262838
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Reviewed-on: https://gerrit.mot.com/1338858
Reviewed-on: https://gerrit.mot.com/1448946
Reviewed-on: https://gerrit.mot.com/1511632
Reviewed-by: Zonghua Liu <a17671@motorola.com >
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:06 -03:00
xuwei9
30b0c9d6fc
config:remove unused smb1355 config
...
smb1355 not userd at
guam/guamp , remove it
Change-Id: I24fe1541297c00617661fc338f1342171a1ab2b7
Signed-off-by: xuwei9 <xuwei9@lenovo.com >
Reviewed-on: https://gerrit.mot.com/1511767
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:06 -03:00
dengwei1
9814b4696e
guam: input add touch class support
...
input add touch
class support
Change-Id: Id5ee7235aeb89f23906ff8fa2af9528dce36447b
Signed-off-by: dengwei1 <dengwei1@motorola.com >
Reviewed-on: https://gerrit.mot.com/1511705
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:06 -03:00
zhaoxp3
9ef49dfd65
arm64/config: enable DIAG_OVER_TTY
...
Moto diag driver built-in or DLKM requires DIAG_OVER_TTY
for both user and userdebug version.
Change-Id: I5f6bec18700f3fd8a5198266625837b8830fa10e
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com >
Reviewed-on: https://gerrit.mot.com/1510729
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
Submit-Approved: Jira Key
2023-06-01 00:47:06 -03:00
Ryan Lattrel
1fc1372a3f
drivers: tty: add tty diag module
...
Add tty diag module for tcmd. Copied from kernel 4.4.
Ported from: https://gerrit.mot.com/#/c/677438/
Change-Id: I124a256ab2f554260d773baccee6d7104bfe2e58
Signed-off-by: Ryan Lattrel <ryanl@motorola.com >
Reviewed-on: https://gerrit.mot.com/1180336
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Ling Jin <lingjin@motorola.com >
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1242980
Reviewed-by: Master Yoda
Reviewed-by: Shengqi Wang <wangsq2@motorola.com >
Reviewed-by: Yuecai Liu <liuyc20@motorola.com >
Reviewed-on: https://gerrit.mot.com/1448862
Reviewed-on: https://gerrit.mot.com/1510728
2023-06-01 00:47:06 -03:00
Ryan Lattrel
e062def56e
char: diag: add write done sync function
...
In factory mode the tty_diag module needs a spinlock
eliminated from the diag_usb_write_done call.
Change-Id: Ic7196276e1d07fa9eb5c58b2f7c35d4e24ffa9b6
Reviewed-on: https://gerrit.mot.com/1128708
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1180282
Reviewed-by: Ling Jin <lingjin@motorola.com >
Reviewed-on: https://gerrit.mot.com/1242985
Reviewed-by: Master Yoda
Reviewed-by: Shengqi Wang <wangsq2@motorola.com >
Reviewed-by: Yuecai Liu <liuyc20@motorola.com >
Reviewed-on: https://gerrit.mot.com/1448855
Reviewed-by: Ryan Lattrel <ryanl@motorola.com >
Reviewed-on: https://gerrit.mot.com/1510727
2023-06-01 00:47:06 -03:00
houdz1
b50e45fab9
panel_notify: add api for touch state
...
Touch driver can call the api to set the touch state.
And panel driver can call the api to get the touch state.
And when the touch state is not 0,
we can not power down panel.
Change-Id: I3cb0dceeb7ff9b0f731c0ce2d9f2fea2e648d223
Signed-off-by: houdz1 <houdz1@motorola.com >
Reviewed-on: https://gerrit.mot.com/1499392
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com >
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509882
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
2023-06-01 00:47:06 -03:00
tanhua1
22249c0164
guam: defconfig: enable panel notifications
...
Panel notifications allow to register for display on/off events.
Main purpose is to allow touch driver to arm wakeup gestures
configuration whenever display turns off.
Change-Id: Ia9392e86b3be16b46f126c315fa1bb1936421b23
Signed-off-by: tanhua1 <tanhua1@lenovo.com >
Reviewed-on: https://gerrit.mot.com/1509865
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:06 -03:00
Jared Suttles
ce7d3d8c48
video: Add panel_notifier framework
...
This is designed to allow other drivers to know about panel events. It
also enables drivers to inject synchronous operations into the panel
state flow, by blocking the panel state changes at various points.
An example of this would be if a driver would l(CR) to know when a panel
is on and do an operation before the video stream to that panel begins.
Signed-off-by: Jared Suttles <jsuttles@motorola.com >
Reviewed-by: Shi-Yong Li <a22381@motorola.com >
Reviewed-by: Patrick Auchter <auchter@motorola.com >
Reviewed-by: Joseph Swantek <jswantek@motorola.com >
Submit-Approved: Jira Key <jirakey@motorola.com >
Change-Id: I94594c93e2b989ff93271f116e010baaf774c6de
Reviewed-on: https://gerrit.mot.com/1469162
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1470251
Reviewed-by: Guobin Zhang <zhanggb@motorola.com >
Reviewed-on: https://gerrit.mot.com/1509864
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
2023-06-01 00:47:06 -03:00
houdz1
58c6b1a5eb
drm: mipi: disable Elvss dim of HBM for MIPI DSI
...
Added 3 MIPI commands to set/get the ELVSS setting information from
the MIPI DSI panel.
Port from a5b269d7.
Change-Id: I3aa1612c7afc35247f0db86ee1dd8484bae8d7b4
Signed-off-by: daiss1 <daiss1@motorola.com >
Reviewed-on: https://gerrit.mot.com/1469340
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com >
Submit-Approved: Jira Key
Reviewed-by: Bang Nguyen <bangnguyen@motorola.com >
Reviewed-by: Dezhen Hou <houdz1@motorola.com >
Reviewed-on: https://gerrit.mot.com/1509787
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
2023-06-01 00:47:06 -03:00
Bang Nguyen
722167830b
Add new macro MIPI_DSI_MSG_READ
...
Add a new macro MIPI_DSI_MSG_READ (bit 4) in drm_mipi_dsi.h for
MIPI DSI READ Message
Port from: 3ba3a3b2
Change-Id: Ie3f2b69ed564c155b4637b03d7399f1118b2e95a
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com >
Reviewed-on: https://gerrit.mot.com/1444419
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509786
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
2023-06-01 00:47:06 -03:00
Bang Nguyen
b255322a18
gpu/drm: Create sysfs to expose panel vendor infor
...
Create sysfs panelId, panelVer, and panelName in
/sys/class/drm/card0-DSI-1 and /sys/class/drm/card0-DSI-2 to expose
panel_name, panel_id and panel_ver for panel vendor information.
Port from: 5df4be294
Change-Id: If6733e1e64ca61c5576e9db0d7aacf62fb5e54a6
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com >
Reviewed-on: https://gerrit.mot.com/1444418
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509785
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
2023-06-01 00:47:06 -03:00
Bang Nguyen
6ae21ba490
drm: mipi: Disable the MIPI DSI commands 0x2E and 0x3E
...
For the Secure UI feature, the display feature, which allows host to
read-back its internal memory buffer, should be disable. The MIPI DSI
command 0x2E (read_memory_start) and 0x3E (read_memory_continue) will
be disable.
Port from: bde6847
Change-Id: Ifc2579051e8005de5e915aad1bccd883c681572f
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com >
Reviewed-on: https://gerrit.mot.com/1444417
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509784
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
2023-06-01 00:47:06 -03:00
Bang Nguyen
988ac19a0c
drm/dsi: Implement DCS set disp brightness 2bytes
...
Provide a small convenience wrapper that set the display 2bytes
brightness
Port from: 4a5c926
Change-Id: Iadfcb1d6cdf4866391f36ee970d79840e109fe9a
Signed-off-by: Bang Nguyen <bangnguyen@motorola.com >
Reviewed-on: https://gerrit.mot.com/1410287
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509783
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com >
2023-06-01 00:47:06 -03:00
dengwei1
5fd988adff
guam: input add drm support
...
input add drm
support
Change-Id: I2aa124bca2cfa3ccfb2bb415d78f4bb226ff3f19
Signed-off-by: dengwei1 <dengwei1@motorola.com >
Reviewed-on: https://gerrit.mot.com/1510627
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com >
Submit-Approved: Jira Key
2023-06-01 00:47:05 -03:00
zhaoxp3
eb59da91ba
defconfig: bengal: enable pstore
...
Enable pstore config to save dmesg on panic and
watchdog
Change-Id: Ib593b780fcf10059c4e795491756646747528058
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com >
Reviewed-on: https://gerrit.mot.com/1510456
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
Submit-Approved: Jira Key
2023-06-01 00:47:05 -03:00
haojl2
19d39dcea7
power: Add function to show active wakelocks
...
tlmm:
Add a function to dump the active wakelocks
Change-Id: I05f4d477ff9e096efe8e0fcdb3a8d5d76c7028ac
Signed-off-by: haojl2 <haojl2@motorola.com >
Reviewed-on: https://gerrit.mot.com/1453711
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509728
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:05 -03:00
yangjq
f62b4fa286
power: suspend: Save snapshot of gpio, vreg when suspend
...
Add system node /sys/private/tlmm_before_sleep etc.
Used to check and change the gpio before suspend.
This won't save and change gpio's config only after a read of the node.
Use tlmm_tz to skip those gpios locked by TZ such as 111, 126.
Change-Id: I99810d8659ab8ea4a59029a9cea326f93becefd2
Signed-off-by: yangjq <yangjq@lenovo.com >
Reviewed-on: https://gerrit.mot.com/960741
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver <sltawvr@motorola.com >
Tested-by: Jira Key <jirakey@motorola.com >
Reviewed-by: Igor Kovalenko <igork@motorola.com >
Submit-Approved: Jira Key <jirakey@motorola.com >
Reviewed-on: https://gerrit.mot.com/1172239
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Guobin Zhang <zhanggb@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1340934
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Reviewed-on: https://gerrit.mot.com/1362061
Reviewed-on: https://gerrit.mot.com/1453714
Reviewed-on: https://gerrit.mot.com/1509727
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:05 -03:00
Todd Poynor
8d5e39b1f1
PM/Suspend: Print wall time at suspend entry and exit
...
Cherry pick this commit from defender to print "PM: suspend" with
wall time when enter and exit suspend.
Change-Id: I92f252414c013b018b9a392eae1ee039aa0e89dc
Signed-off-by: Todd Poynor <toddpoynor@google.com >
Signed-off-by: yangjq <yangjq@lenovo.com >
Reviewed-on: https://gerrit.mot.com/1477734
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
Reviewed-on: https://gerrit.mot.com/1509726
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:05 -03:00
Mark Reed
43dd108d1b
- Do not unload prov TZ app.
...
From (CR)
This app manages secure state as set by bootloader. Reloading would
clear the state. This solution is limted by some alternate
way to force unloading our prov TA and then restarting it
outside bootloader.
Change-Id: Idcfc520f457ac081fd63e76a821d047ee9a78d09
Reviewed-on: https://gerrit.mot.com/1284363
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Reviewed-by: Joel Voss <jvoss@motorola.com >
Reviewed-by: Igor Kovalenko <igork@motorola.com >
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1349396
Reviewed-by: Zhenxin Xi <xizx@motorola.com >
Reviewed-on: https://gerrit.mot.com/1471673
Reviewed-by: Yang Xiao <xiaoy3@motorola.com >
Reviewed-on: https://gerrit.mot.com/1509724
2023-06-01 00:47:05 -03:00
xizx
5a7dde555f
add system restart warm and panic mode
...
add two debug interfaces:
1.when set cmdline "sys_restart_mode=warm", the kernel will reset with
WARM way.
2.when set cmdline "sys_restart_mode=panic", the kernel will enter into
ramdump when it normal reset.
Change-Id: Id70063bac7d0951622c6e074c2ba2ec024374022
Signed-off-by: xizx <xizx@motorola.com >
Reviewed-on: https://gerrit.mot.com/1117501
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1345290
Reviewed-on: https://gerrit.mot.com/1406867
Reviewed-on: https://gerrit.mot.com/1463612
Reviewed-on: https://gerrit.mot.com/1509723
2023-06-01 00:47:05 -03:00
Konstantin Makariev
7cf207f870
printk: increase log buffer size to 2k
...
Kernel command line print statement is truncated, need increase the
buffer size.
Change-Id: I0e353563a138e85de2fb84ca89074e564337967a
Signed-off-by: Konstantin Makariev <hcv867@motorola.com >
Reviewed-on: https://gerrit.mot.com/1189541
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1252557
Reviewed-by: Huosheng Liao <liaohs@motorola.com >
Reviewed-on: https://gerrit.mot.com/1461482
Reviewed-by: Zhenxin Xi <xizx@motorola.com >
Reviewed-on: https://gerrit.mot.com/1509722
2023-06-01 00:47:05 -03:00
Ling Jin
e5b870ee13
qpnp-power-on: Print system timestamp on Power key event
...
Print system timestamp on Power key press and release events.
This would make debugging easy
Ported from: https://gerrit.mot.com/#/c/1320467/
Change-Id: I2c810e4b59c2d3bd8a705d407a339d9efe6fad3d
Reviewed-on: https://gerrit.mot.com/1320467
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
Reviewed-on: https://gerrit.mot.com/1456668
Reviewed-on: https://gerrit.mot.com/1509721
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:05 -03:00
haojl2
def7cd0482
regulator: core: Add sysfs node for debug
...
Add sysfs node /sys/private/vreg
Get regulator states for debugging
Change-Id: I783fbcac43994ed39047ea18a1893a6a35032efc
Signed-off-by: haojl2 <haojl2@motorola.com >
Reviewed-on: https://gerrit.mot.com/1453713
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509720
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:05 -03:00
haojl2
52c1764960
pinctrl: msm: Add sysfs node for debug
...
Add sysfs node /sys/private/tlmm
Need skip those gpios without permission from TZ
Change-Id: Ic8d854be6a46ea9ec78c838aad1d4b3f4b6d0ec2
Signed-off-by: haojl2 <haojl2@motorola.com >
Reviewed-on: https://gerrit.mot.com/1453712
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jianqi Yang <yangj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1509719
Reviewed-by: Wang Wang <wangwang1@lenovo.com >
2023-06-01 00:47:05 -03:00
Ryan Lattrel
c411aad5dc
watchdog_v2: export watchdog trigger
...
Export the function to trigger a watchdog to
facilitate watchdog testing.
Change-Id: Ifcf7af8679bea89c9f1d1dcfd2ac91e0a5842a6f
Signed-off-by: Ryan Lattrel <ryanl@motorola.com >
Reviewed-on: https://gerrit.mot.com/1249378
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com >
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1454260
Reviewed-by: Zhenxin Xi <xizx@motorola.com >
Reviewed-on: https://gerrit.mot.com/1509718
2023-06-01 00:47:05 -03:00