Commit graph

916,505 commits

Author SHA1 Message Date
Xiaofeng Wang
b65c5b882a corfu5g: add CONFIG_AF_NOISE_ELIMINATION
[detail]
add CONFIG_AF_NOISE_ELIMINATION for mot actuator driver

Change-Id: I0bb23b1a8703afa249d71f8f68c67bc391e055de
Signed-off-by: Xiaofeng Wang <wangxf32@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2030402
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wang Liu <liuwang2@lenovo.com>
Reviewed-by: Xingyun Fu <fuxy7@motorola.com>
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: Ji Zhao <zhaoji1@lenovo.com>
Reviewed-by: Zhuoran Xu <xuzr3@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
chailu1
5e221066a4 gki: add smbus and typec api for rt17xx driver
gki/pd/rt17xx
add smbus and typec api for rt17xx driver

Change-Id: I7fbab6c45390177896a69af573ce8b97e54354d3
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2040743
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
duxu1
8b19b57875 Enable CONFIG_DEBUG_FS
CONFIG_DEBUG_FS is used to collect uart ipc logs
to debug uart issue.

Change-Id: I12f0a6f01e105e79aac317d034f6197d0dface89
Signed-off-by: duxu1 <duxu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2039979
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hongshu Lou <louhs1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
weiweij
59dc457ecd driver/usb: add adb force enable logic
For some debug situations, we need to force adb function
enabled without charger notification. So we add the forcing
logic. And it is controlled by a dts
configuration("qcom,force-adb-enable")

Change-Id: I1a779c0e8b9f60cdbf978d555b3f1e537db4740f
Reviewed-on: https://gerrit.mot.com/2038917
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
liuwang2
43f49cc99a arm64/config: cypfr: add CONFIG_AF_NOISE_ELIMINATION
[detail]
enable CONFIG_AF_NOISE_ELIMINATION in cypfr

Change-Id: I5f42b8f21c1d390caca89b66af282ad2b4c8d249
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2039638
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
jixj
944ceedfc7 arm64/configs: Add Milan 5G defconfig
Add initial defconfig for Milan 5G branch bringup,
these configs are copied from cypfq.

Change-Id: I90094a35cf65035476da061ef5d07fb532fa1d02
Reviewed-on: https://gerrit.mot.com/2032542
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
chailu1
239929ee25 charge: Enhance qc3+ detect
If detect qc3+ detect power is invalid, rerun qc3+
detect again.

Change-Id: Ia8e94e0ad7379f365ae97e014da3521517f041f3
Reviewed-on: https://gerrit.mot.com/2024886
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
Yifu Lin
2b419dee3f Revert "(CR) arm64/config: disable coresight on sm4350 user version."
This reverts commit 585af9cffc7ae94d3a33bcfe65b020618b944248.
Re-enable coresight in user build.
We need to enable coresight feature to supporting the collection of modem log

Change-Id: If4d109d8575e34388ef6d425b80ad59874921b6e
Reviewed-on: https://gerrit.mot.com/2034963
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
mahj8
cff390b6c7 smb5: remove pd2.0 policy in smb5-lib.c
For add PD charging(include PPS/Fixed) policy in DLKM for single
charge path(only pmic charging), so need to remove pd2.0 policy
in smb5-lib.c

Change-Id: I10807a7c73eb6d5372019bfa9c1db0e99993cb89
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2029012
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
Zhizhong Ge
b67ec45e73 config: reduce the holi user-debug kernel config
Reduce the config on userdbug to improve the perforamce

CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_DEBUG_PAGEALLOC is not set
CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT is not set
CONFIG_DEBUG_KMEMLEAK is not set
CONFIG_DEBUG_VIRTUAL is not set
CONFIG_DEBUG_RT_MUTEXES is not set
CONFIG_DEBUG_SPINLOCK is not set
CONFIG_DEBUG_MUTEXES is not set
CONFIG_DEBUG_LOCK_ALLOC is not set
CONFIG_DEBUG_LOCKDEP is not set
CONFIG_DEBUG_ATOMIC_SLEEP is not set
CONFIG_DEBUG_FS is not set
CONFIG_RCU_TRACE is not set
CONFIG_PREEMPT_TRACER is not set
CONFIG_STACKDEPOT is not set
CONFIG_SCHED_STACK_END_CHECK is not set
CONFIG_PAGE_OWNER is not set
CONFIG_DM_DEBUG is not set
CONFIG_EXT4_DEBUG is not set
CONFIG_LOCK_STAT is not set

Change-Id: Ia918fa32e73984d6f93560bc24aa45052123207c
Reviewed-on: https://gerrit.mot.com/2029094
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yonghui Jia <jiayh2@motorola.com>
Reviewed-by: Chuanchun Zhu <zhucc2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
chailu1
cd85b3feb0 charge: Rename sc8549 to cp
For charge pump common interface,use
cp name replace sc8549.

Change-Id: Ibbe393fceba8b5e97daf87e0f59ac37c4c9520a8
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2024887
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
houdz1
a007e73b89 arm64/config: cypfq: disable tps65132
Change the default output voltage through I2C bus at XBL. And store the default
value to EEPROM. So we can nod make I2C operation at kernel.
Only pull up/down gpio to enable/disable regulator.

Change-Id: Ie6c7a781257efe97aea8e7fe84a7efa20c6359aa
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2020886
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zoujc
b97c5ab46a arm64/config: disable coresight on sm4350 user version.
coresight is not used by any module.
disable it to avoid irq wakeup issue.

https://gerrit.mot.com/#/c/1863643/ will enable coresight on debug
version.

Change-Id: I0d84be965ce088bd13e14b071b3a103b2bc5646e
Signed-off-by: zoujc <zoujc@motorola.com>
Reviewed-on: https://gerrit.mot.com/1998604
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/2014590
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:05 +08:00
chenlj2
33afc9c2c2 pinctrl:remove GPIO17 from the reserved GPIO list
GPIO17-----FPS INT
FPS bringup work on6375
remove GPIO17 from the reserved GPIO list
Otherwise the fingerprint driver cannot apply for this GPIO

Change-Id: I963f7dc55369f435bfb6bb0d58cc9bd42e51576a
Signed-off-by: chenlj2 <chenlj2@motorola.com>
Reviewed-on: https://gerrit.mot.com/2011805
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yan Zhang <zhangy26@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
liuwang2
4488d1afd8 arm64/config: add CONFIG_AF_NOISE_ELIMINATION
[detail]
add CONFIG_AF_NOISE_ELIMINATION for mot actuator driver

Change-Id: I4183beb716fc64314c77349fca0c0362b102a4dd
Signed-off-by: liuwang2 <liuwang2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1999367
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: Shuo Wang <wangsh18@motorola.com>
Reviewed-by: XiaoFeng Wang <wangxf32@lenovo.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zhucc2
25e06ff369 scsi/ufs: make ufsf_device_check() result return.
SS HID driver not check the result, will do ufs feature init continuely,
include tw, hpb and hid, if the ufs is ufs2.1 FW, l(CR) Micron
MT064GASA02U21(4+64), not suport hid, will cause kernel panic.

Change-Id: I4e683ca090dc84169ab16e4ee6added0a01898f3
Reviewed-on: https://gerrit.mot.com/2009108
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zhucc2
d4ab62c1c1 arm64/config: enable Hynix HID feature.
Remark:
enable Hynix hid feature for cyprus 5G and corfu 5G on mot4350 family.
disable for ibiza and denver,further project if reuse currently
baseline need define it accordingly.

Change-Id: I0e45c7096d3c9354a1c7580f5a8f4b151d7b5beb
Reviewed-on: https://gerrit.mot.com/2004803
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zhucc2
c76cbe7a05 scsi/ufs: use macroes to control Hynix HID sys node.
For make Hynix HID driver disable for other vendors, we use macroes
to restrict its power.

note:
"manual_gc_status" is moved from
"/sys/device/platform/soc/4804000.ufshc/attributes" to
"/sys/device/platform/soc/4804000.ufshc/attributes_hid", APP or Script
need update this path.

Change-Id: Ic9d8350bac14945acb29fba8d00ad90994c2d062
Reviewed-on: https://gerrit.mot.com/2004779
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:05 +08:00
zhucc2
c67b0a7b7a arm64/config: disable SamSung hid on cypfg.
For the market device is sm4350 pro, we disable HID deature on
cypfg device.
However, this is a bug, For Micron MT064GASA02U21(4+64) is not support HID, if enable HID
fearture on Micron device, will casue panic.
we wil fixed it on cypfq.

Change-Id: I6e78d4bc32dde6b089d8918ecdc0055c490f05cf
Reviewed-on: https://gerrit.mot.com/2006650
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
zhouwl
0195c133d5 gki: Fix aw882xx_acf.ko compile failure
aw882xx_acf.ko compile failure when make user build add whitelist.
ERROR: "class_remove_file_ns" [techpack/audio/asoc/codecs/aw882xxacf/aw882xx_acf.ko] undefined!
ERROR: "class_create_file_ns" [techpack/audio/asoc/codecs/aw882xxacf/aw882xx_acf.ko] undefined!

Change-Id: I519cde4702a223dc2a171eba4f90114fa4fdec20
Signed-off-by: zhouwl <zhouwl@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2004700
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Minghui Wei <weimh1@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
2024-04-18 14:45:04 +08:00
zhucc2
88978ac304 arm64/config: enable SamSung HID feature.
Remark:
enable SS hid feature for cyprus 5G and corfu 5G on mot4350 family.
disable for ibiza and denver,further project if reuse currently
baseline need define it accordingly.

Change-Id: I5ced032ca6e22e7e36386a6124c4765bbae6b2b7
Reviewed-on: https://gerrit.mot.com/2003424
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
zhucc2
3149e59afc scsi/ufs: port SamSung UFS HID feature.
this patch is supply by SS, and based on sm4350, we also add macros to
compatible with other vendors.

Change-Id: Iea082bfbc8463f7cb23bad5afe2bb0b6118dab92
Reviewed-on: https://gerrit.mot.com/2002941
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
chailu1
789d6be2a5 ffc: config ffc interface for qg
Flash fast charge
config ffc interface for qg. charge side could
config iterm of reprot soc 100%.

proting from https://gerrit.mot.com/1551505

Change-Id: If50b19e8914979f4506e0edf4f543ac826772a5d
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2001403
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
houdz1
26f5bd9544 arm64/config: cypfq: enable tps65132
For cypfq:
tps65132 and ocp2131 will output VSN and VSP to panel.
And tps65132 and ocp2131 are compatible completely.
So we will use a driver for them.

Change-Id: Ib41ce6a18ff70f3b9bf3c2bd318698188e272e88
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1996970
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
panzh2
008a545e92 kernel: vibrator: diff vol for long/short vib
This is a workarround to reduce the vibrator strength for long vib.
Add attribute "qcom,vib-dis-short-long" in device-tree to enable the
function.

Change-Id: I91e2612f878e6e6614d46797bcd7987cd46b9fba
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1995828
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Zhenghai Pan <panzh2@lenovo.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
louhs1
d60223719c corfuq/corfur: init the kernel defconfig
init the corfuq/corfur kernel defconig
corfuq use 4350pro
corfur use 6375

Change-Id: I4b47a50228ef9c35134c3f1483ed75a955965b6f
Signed-off-by: louhs1 <louhs1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1995451
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
chailu1
97a401f886 QC3+: Workaround salcom qc3+ charge adapter
Salcom qc3+ charge adapter have a issue:connect salcom to
phone,while phone tirgger 16 Dp/Dm pluse then remove usb
cable, salcom charge adaper side will not reset Dp/Dm
counter. So then connect salcom charge adapter to
phone again. salcom will become qc3.0 mode.
So need SW workaround salcom charge adapter issue:if phone
side detect qc30 will run APSD.

Change-Id: I2cc913125ec70223abfaedc75dc156079e55c355
Reviewed-on: https://gerrit.mot.com/1993349
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
Kyuho Choi
631726a140 drivers: scsi: ufs: Add manual_gc_status attribute
This patch added manual_gc_status attriute to host.
Through manual_gc_status attribute, host will get hagc status
hint and can trigger hagc when device are dirty status.

Mot-CRs-fixed: (CR)

Change-Id: Ie8fad3c34c48dc9fe01cf8a7ecb8d19e110bd0c8
Reviewed-on: https://gerrit.mot.com/1987900
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
Jaegeuk Kim
7a4f190e62 ANDROID: scsi: ufs: add manual_gc in sysfs with UFS 3.1
This patch adds manual_gc control via sysfs entries.

> cat /sys/devices/platform/soc/1d84000.ufshc/manual_gc
on
> echo 1 > /sys/devices/platform/soc/1d84000.ufshc/manual_gc

Mot-CRs-fixed: (CR)
Link: https://android-review.googlesource.com/c/kernel/common/+/1426015

Change-Id: I265093c126d71f2e594ed305ad7653a9315b4d63
Reviewed-on: https://gerrit.mot.com/1987790
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
gaoyx9
52a2cf3351 corfuq and corfur initial kernel defconfig
initial configs cloned from corfup.

Change-Id: I56787a1735cb1aa93790554379f959ba53fab5b4
Reviewed-on: https://gerrit.mot.com/1991053
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:04 +08:00
yangqh5
ee00a786d3 cypfr: initial kernel defconfig
Cyprus 5G cypfr on 6375:
initial configs cloned from cypfg.

Change-Id: I02922d31b83f9dda121d03fb52cff4a3444a137a
Reviewed-on: https://gerrit.mot.com/1987596
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Liyun Zhang <zhangly19@lenovo.com>
2024-04-18 14:45:04 +08:00
yangqh5
487d15b193 cypfq: initial kernel defconfig
Cyprus 5G cypfq on 4350-pro:
initial configs cloned from cypfg.

Change-Id: I8359a5c1f78e23c67011d46ef294120049924fc6
Reviewed-on: https://gerrit.mot.com/1987589
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiaojun Ji <jixj@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Liyun Zhang <zhangly19@lenovo.com>
2024-04-18 14:45:04 +08:00
wuwl10
80f26a34d5 Revert "(CR): pinctrl-holi: revert qcom change for i2c_7"
This reverts commit 1957601e86ae219cdbf83594bff8d1db9c418400.
We will fix the issue by adding related dts configuration on i2c_7.

Change-Id: I197b88025ad89f5a73c87a0c95fe3a2fb2218dec
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1985492
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
wengjun1
166bebd6e6 spi: Keep spi can transfer message when system in suspend
Since qcom baseline upgrade import the change which will
return -EACCESS when system in suspend to transfer spi message,
and this will conflict with single tap feature. For keep performance
and logic consistent with before, remove the new logic introduced
by Qcom after discussion with Qcom(SR: 05267011)

Change-Id: I6cbf9ca51b62dd9ca9519c762147f83cf3f47831
Signed-off-by: wengjun1 <wengjun1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1979369
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
chailu1
e628b2580e qg: disable charging pump when do ESR
The product is designed with charging pump and use
internal QG. If we don't disable CP, QG can't get valid
ESR value when CP enabe.

Porting from (CR)

Change-Id: I27ea8ae254555afdf37676124a859ce3a179fc76
Reviewed-on: https://gerrit.mot.com/1978508
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:04 +08:00
Paul Lawrence
565528e8c7 ANDROID: Incremental fs: Set credentials before reading/writing
Use same selinux scheme as incfs v2
Fix memory leak

Bug: 174692664
Test: incfs_test passes
Change-Id: I9a07c02a6f2caf93f88efaa3ce14fff34929804b
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1975978
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:04 +08:00
Paul Lawrence
4e0c72f618 Revert "ANDROID: Incremental fs: Fix memory leak on closing file"
This reverts commit 152fd8f044.
Reason for revert: rolling the three fixes into one with feature flag
Bug: 174692664
Test: incfs_test passes
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I9a2e6faa0c2293b691efca8e985390fd94bcf01a
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1975977
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:04 +08:00
Paul Lawrence
288b84103d Revert "ANDROID: Incremental fs: Fix selinux issues"
This reverts commit 75c93eb439.

Reason for revert: rolling the three fixes into one with feature flag
Bug: 174692664
Test: incfs_test passes
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I838bed85d6682aba44165a58c22e6a0e10c49d58
Mot-CRs-fixed: (CR)
Reviewed-on: https://gerrit.mot.com/1975975
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: gaoyx9 <gaoyx9@motorola.com>
Submit-Approved: gaoyx9 <gaoyx9@motorola.com>
Tested-by: gaoyx9 <gaoyx9@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:04 +08:00
chailu1
8583c761b5 charge: add qc3p driver
add qc3+ authenticate process and qqc3+ voltage control
interface

Change-Id: I1e944ba8d6b0d16c19c70f9d5c1385bbf9a28801
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1971082
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
wuwl10
2469090ab0 pinctrl-holi: revert qcom change for i2c_7
Below change will cause i2c_7 bus hung.
Rever it change first until qcom provide new patch.

pinctrl: qcom: function group for qup11_f* instance for holi
This reverts commit 7a2620f882.

Change-Id: Ie7b47d1fc0dd6b3fe9537bf06ea6c79bff076773
Signed-off-by: wuwl10 <wuwl10@motorola.com>
Reviewed-on: https://gerrit.mot.com/1970100
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
mahj8
14ba79f992 gki: add power supply api for mmi_parallel_charger_iio.ko
add power_supply_register and power_supply_unregister api
for mmi_parallel_charger_iio.ko DLKM

Change-Id: I59e7dc17aea0926ab94df3643ce858ca5f096254
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1963306
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
mahj8
d1b029fe40 usb:pd: Add get/select PDO api
-usbpd_get_pd_info:
get all PDO info from PD SOURCE, and save them to usbpd_pdo_info struct
-usbpd_select_pdo:
provide API to easy select the specific PDO, in order to program
its voltage and current.

Change-Id: I6663c04a9479b852449fa80e9e5c396ddfbc9e57
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1943692
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
mahj8
5f87bbb9ec smb5: add main charging on-off IIO prop
1. add main charging on-off IIO prop
2. define more mmi IIO prop for charger pump

Change-Id: Iaf49f816b53d64bb61e44fcb82fc25d8d7dd72dd
Signed-off-by: mahj8 <mahj8@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1940727
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lu Chai <chailu1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
fuxm1
d9cbdd72fc ufs/hpb: enable Micron HPB feature
Remark:
1. enable Micron HPB.
2. configure write booster as JEDEC WB for Micron.

Change-Id: Ic256689254187059ed97004e2305b147259f1e6a
Signed-off-by: fuxm1 <fuxm1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1959521
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Zhenxin Xi <xizx@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
Vasily Averin
08db6056f8 netfilter: nf_conntrack_h323: lost .data_len definition for Q.931/ipv6
Could you please push this patch into stable@?
it fixes memory corruption in kernels  v3.5 .. v4.10

Lost .data_len definition leads to write beyond end of
struct nf_ct_h323_master. Usually it corrupts following
struct nf_conn_nat, however if nat is not loaded it corrupts
following slab object.

In mainline this problem went away in v4.11,
after commit 9f0f3ebeda ("netfilter: helpers: remove data_len usage
for inkernel helpers") however many stable kernels are still affected.

Mot-CRs-fixed: (CR)
CVE-Fixed: CVE-2020-14305
Bug: 174904512

Change-Id: Ib96d3374766eecef01e92a4407ceca3f8e7c192e
Fixes: 1afc56794e ("netfilter: nf_ct_helper: implement variable length helper private data") # v3.5
cc: stable@vger.kernel.org
Reviewed-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Gajjala Chakradhar <gajjalac@motorola.com>
Reviewed-on: https://gerrit.mot.com/1957505
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
fuxm1
e6157fa890 hpb: disable HPB feature for 4G ram
Remark:
parse share memory get ram size to distinguish if is 4G ram
if yes, disable HPB feature(Due to 4G ram size is too
senstive for camera).

Change-Id: Icb8575dec742c248586e11bf4ebcc0d2bbac0d9e
Signed-off-by: fuxm1 <fuxm1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1939239
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
fuxm1
3a2623539e defconfig: enable hpb/tw for corfup and cypfg
Remark:
enable hpb and tw feature for corfu-5g and cypfg on mot4350
family.
disable for ibiza and denver, further project if reuse
currently baseline need define it accordingly.

Change-Id: I96b86b584521a88ba241b678f89332705e88e741
Signed-off-by: fuxm1 <fuxm1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1944778
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
fuxm1
d4bbff0602 scsi/ufs: porting Samsung TW + HPB feature
Remark:
proting samsung hpb + tw driver to msm-5.4 br-4350 branch

Change-Id: Ie964195e3b9bc1ef7d5ba585e839239b4aa1c761
Signed-off-by: fuxm1 <fuxm1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1885583
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
wangyq13
b2c751350a deconfig: corfup: disable fts touch configs, move to ko
defconfig/corfup:
Disable fts touch configs, move fts driver to ko.

Change-Id: I267acf79228137fa91f5eff593cd3ed5d5c9bf07
Signed-off-by: wangyq13 <wangyq13@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1954462
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
2024-04-18 14:45:03 +08:00
huangzq2
632683b8f1 mm: zram: use rw_page for zram page but submit_bio for zram wb page
Since reading zram wb page is an async operation, we can not immediately
free the slot here. So we need to read the page via submit_bio and free
the slot in end_swap_bio_read. (bio chain will be used to handle bio here
and bio in zram driver for wb page).

Change-Id: I71b88c4a2388c086bd7e0cd63b8c632b93217a95
Signed-off-by: huangzq2 <huangzq2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1933720
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1952123
Reviewed-by: Yonghui Jia <jiayh2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
2024-04-18 14:45:03 +08:00