OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
4 years agoMerge tag 'v4.4.197' of https://shanghai.source.codeaurora.org/quic/la/kernel/msm...
sbwml [Wed, 20 Nov 2019 17:09:49 +0000 (01:09 +0800)]
Merge tag 'v4.4.197' of https://shanghai.source.codeaurora.org/quic/la/kernel/msm-4.4 into 10

This is the 4.4.197 stable release

4 years agoMerge tag 'v4.4.196' of https://shanghai.source.codeaurora.org/quic/la/kernel/msm...
sbwml [Wed, 20 Nov 2019 06:18:28 +0000 (14:18 +0800)]
Merge tag 'v4.4.196' of https://shanghai.source.codeaurora.org/quic/la/kernel/msm-4.4 into 10-caf

This is the 4.4.196 stable release

4 years agoMerge tag 'v4.4.195' of https://shanghai.source.codeaurora.org/quic/la/kernel/msm...
sbwml [Wed, 20 Nov 2019 06:04:55 +0000 (14:04 +0800)]
Merge tag 'v4.4.195' of https://shanghai.source.codeaurora.org/quic/la/kernel/msm-4.4 into 10

This is the 4.4.195 stable release

4 years agoqpnp-haptic: expose vibrate function
flar2 [Wed, 14 Jun 2017 02:14:35 +0000 (22:14 -0400)]
qpnp-haptic: expose vibrate function

Change-Id: I91604f6b946940c7a2681720c683010538b222e8
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
4 years agosweep2sleep: prepare for our panel
dimfish [Fri, 11 May 2018 10:35:41 +0000 (13:35 +0300)]
sweep2sleep: prepare for our panel

Change-Id: Iae9405fa7e6d4c164e8a210acee2854c8e82b603

4 years agosweep2sleep: turn off screen by sweeping over navbar
flar2 [Fri, 5 Aug 2016 05:11:18 +0000 (01:11 -0400)]
sweep2sleep: turn off screen by sweeping over navbar

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
4 years ago{chiron,sagit}_defconfig: enable kcal
Vol Zhdanov [Sun, 20 May 2018 12:31:01 +0000 (12:31 +0000)]
{chiron,sagit}_defconfig: enable kcal

Change-Id: Iafc710ef77953ca1c344101123f946627cac3b89

4 years agomsm: mdss: kcal: disable igc update
flar2 [Tue, 13 Sep 2016 04:44:20 +0000 (00:44 -0400)]
msm: mdss: kcal: disable igc update

Change-Id: Ieeadc7323520cffa6c83b821642faf60bad52e75

4 years agomdss mdp: fix washed out colours after start when screen is off during kcal initializ...
andip71 [Tue, 8 Aug 2017 08:19:25 +0000 (10:19 +0200)]
mdss mdp: fix washed out colours after start when screen is off during kcal initialization

4 years agomdss mdp: kcal for mdss_mdp_v1_7
tbalden [Sat, 16 Jul 2016 21:17:25 +0000 (14:17 -0700)]
mdss mdp: kcal for mdss_mdp_v1_7

Adding the kcal interface by @savoca and
@faux123
porting from m9 version by @flar2

Using the MDP 1_7 userspace structs to inject
configurations of kcal to the pp_cache configs.
Overriding userspace copy with memcpy when
copy_from_user fails (in case of kcal interface
used).

Adding a simple mdp ctl struct caching to
the kcal driver to grab ctl struct for config
calls.

Could be done nicer with direct interfacing
to userspace, leaves some space to make the kernel
crash if a third party app sends faulty configs,
but there's no security issue or degradation
of functionality with this memcpy patch.

@tbalden

Signed-off-by: flar2 <asegaert@gmail.com>
Change-Id: I5f992ae31c133808bbf607d6a04817f4cdba235e

4 years ago{chiron,sagit}_defconfig: Force faster charge rate for USB
ShevT [Mon, 24 Dec 2018 09:22:20 +0000 (12:22 +0300)]
{chiron,sagit}_defconfig: Force faster charge rate for USB

4 years agodrivers: misc: implement usb fast charge mode
engstk [Mon, 31 Jul 2017 17:28:24 +0000 (18:28 +0100)]
drivers: misc: implement usb fast charge mode

echo 0 /sys/kernel/fast_charge/force_fast_charge (disable)
echo 1 /sys/kernel/fast_charge/force_fast_charge (enable)

Enables force charging up to 900mA in usb mode

Signed-off-by: engstk <eng.stk@sapo.pt>
4 years agoRevert "scripts: gcc-wrapper: Use wrapper to check compiler warnings"
sbwml [Tue, 17 Sep 2019 05:01:28 +0000 (13:01 +0800)]
Revert "scripts: gcc-wrapper: Use wrapper to check compiler warnings"

This reverts commit cc95d2b.

4 years ago{chiron,sagit}_defconfig: Enable CONFIG_LOCALVERSION_AUTO
sbwml [Mon, 16 Sep 2019 13:41:33 +0000 (21:41 +0800)]
{chiron,sagit}_defconfig: Enable CONFIG_LOCALVERSION_AUTO

4 years agoarch: Change the hardware structure type armv8l > aarch64
sbwml [Sun, 24 Feb 2019 07:36:20 +0000 (15:36 +0800)]
arch: Change the hardware structure type armv8l > aarch64
Changes made for Linux deploy compatible with centos aarch64 image.

4 years agosmb-lib: Change the charging current with screen on (3200mA)
sbwml [Sun, 21 Apr 2019 22:19:44 +0000 (06:19 +0800)]
smb-lib: Change the charging current with screen on (3200mA)

4 years ago{chiron,sagit}_defconfig: Enable CONFIG_CPU_FREQ_GOV_SCHEDUTIL
sbwml [Tue, 19 Nov 2019 21:21:15 +0000 (05:21 +0800)]
{chiron,sagit}_defconfig: Enable CONFIG_CPU_FREQ_GOV_SCHEDUTIL

4 years agoMerge branch msm-4.4-android-10-clang into 10
sbwml [Tue, 19 Nov 2019 21:08:21 +0000 (05:08 +0800)]
Merge branch msm-4.4-android-10-clang into 10

4 years ago{chiron,sagit}_defconfig: enable overlayfs
Mark Salyzyn [Fri, 24 Aug 2018 17:44:29 +0000 (10:44 -0700)]
{chiron,sagit}_defconfig: enable overlayfs

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Test: system/core/fs_mgr/tests/adb-remount-test.sh
Bug: 120448575
Change-Id: I724f59715e4a2ed555d7cb1d5cbf505a1ae33662

4 years ago{chiron,sagit}_defconfig: Set CONFIG_BLK_DEV_LOOP_MIN_COUNT to 16.
Martijn Coenen [Wed, 13 Mar 2019 09:04:10 +0000 (10:04 +0100)]
{chiron,sagit}_defconfig: Set CONFIG_BLK_DEV_LOOP_MIN_COUNT to 16.

To have the kernel pre-create 16 loop devices, which will save boot time
as soon as we start having more than 8 APEXes.

Bug: 119022885
Signed-off-by: Martijn Coenen <maco@android.com>
4 years ago{chiron,sagit}_defconfig: Enable CONFIG_WLAN_FEATURE_PKT_CAPTURE
Albert I [Wed, 12 Jun 2019 06:37:10 +0000 (14:37 +0800)]
{chiron,sagit}_defconfig: Enable CONFIG_WLAN_FEATURE_PKT_CAPTURE

* Fixes WiFi tethering

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I334947d57c8e36fb509c00c520db3cbe2998d175

4 years agoqcacld-3.0: Add packet capture feature option into Kconfig
Albert I [Wed, 12 Jun 2019 04:54:46 +0000 (12:54 +0800)]
qcacld-3.0: Add packet capture feature option into Kconfig

* Needed after LA.UM.7.4.r1-05300-8x98.0 merge.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I7af8ef790db303c8cb0d338479b85b12b4f86019

4 years agoBACKPORT: staging: android: ion: Pull out ion ioctls to a separate file
Laura Abbott [Wed, 7 Sep 2016 18:49:58 +0000 (11:49 -0700)]
BACKPORT: staging: android: ion: Pull out ion ioctls to a separate file

commit b1fa6d8acb50c8e90f50fb262e5d4b7d478592bf upstream.

The number of Ion ioctls may continue to grow along with necessary
validation. Pull it out into a separate file for easier management
and review.

Change-Id: I0889f08eff35d2cd149ce0f958ef05515eaaee04
Signed-off-by: Laura Abbott <labbott@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[nc: Partial backport, only needed for the next commit]
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
4 years agopower: Fix charger check using correct variable
wloot [Fri, 21 Jun 2019 09:33:37 +0000 (17:33 +0800)]
power: Fix charger check using correct variable

Change-Id: Idd31366758c7482bfb4fa343527058b10cd30e8b
Signed-off-by: wloot <wlootlxt123@gmail.com>
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
4 years agodts: xiaomi: msm8998: update from sagit-p-oss
wloot [Thu, 11 Jul 2019 09:28:04 +0000 (17:28 +0800)]
dts: xiaomi: msm8998: update from sagit-p-oss

Change-Id: I4cf0e2d2accfd6eb9698be112628e79446f7f2cc

4 years agoASoC: wcd-spi: clear bit whether spi clk is disabled
wloot [Thu, 11 Jul 2019 18:24:54 +0000 (02:24 +0800)]
ASoC: wcd-spi: clear bit whether spi clk is disabled

Change-Id: I2648736a26a3743a4faa98f03f182c0c3420c91a

4 years agoASoC: msm8998: fix typo and add check before freeing gpio
wloot [Thu, 11 Jul 2019 18:18:59 +0000 (02:18 +0800)]
ASoC: msm8998: fix typo and add check before freeing gpio

Change-Id: I46093ec856e5c4d8c7663879d8a3f17f62a46506

4 years agosynaptics_dsx_force: update from sagit-p-oss
wloot [Thu, 11 Jul 2019 12:30:05 +0000 (20:30 +0800)]
synaptics_dsx_force: update from sagit-p-oss

Change-Id: Ib849ac8e3891261fbcee8201d93e887a1a975514

4 years agofirmware: update sagit synaptics fw from sagit-p-oss
wloot [Thu, 11 Jul 2019 09:36:39 +0000 (17:36 +0800)]
firmware: update sagit synaptics fw from sagit-p-oss

Change-Id: I6e6bf87c38784b41cc6b7e8184d2c342180195f1

4 years agocamera_v2: update from sagit-p-oss
wloot [Thu, 11 Jul 2019 10:27:56 +0000 (18:27 +0800)]
camera_v2: update from sagit-p-oss

4 years agoRevert "msm: camera_v2: reject the late request"
Julian Liu [Wed, 18 Sep 2019 18:54:29 +0000 (02:54 +0800)]
Revert "msm: camera_v2: reject the late request"

This reverts commit bc82952bb8012641c5e74a228ab697ff6eec38e4.

4 years agoscsi: ufs: disable auto hibern8
Jaegeuk Kim [Wed, 27 Sep 2017 01:08:13 +0000 (18:08 -0700)]
scsi: ufs: disable auto hibern8

This patch disables auto_hibern8 to fix slow-down issue.

Bug: 66697973
Bug: 65535484
Change-Id: I922cee6132224b687fd53b90f6eb32813900e2dd
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
4 years ago{chiron,sagit}_defconfig: enable support for sdFAT filesystem
Bruno Martins [Wed, 28 Feb 2018 23:16:10 +0000 (23:16 +0000)]
{chiron,sagit}_defconfig: enable support for sdFAT filesystem

 * Update default charset for FAT to UTF-8, matching sdFAT's default.

Change-Id: I7b33b5f24e079509a47a35b3aeb06b269cdc86eb

4 years agofs: sdfat: Add MODULE_ALIAS_FS for supported filesystems
Paul Keith [Wed, 28 Mar 2018 17:52:29 +0000 (19:52 +0200)]
fs: sdfat: Add MODULE_ALIAS_FS for supported filesystems

* This is the proper thing to do for filesystem drivers

Change-Id: I109b201d85e324cc0a72c3fcd09df4a3e1703042
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
4 years agofs: sdfat: Add config option to register sdFAT for VFAT
Paul Keith [Fri, 2 Mar 2018 04:10:27 +0000 (05:10 +0100)]
fs: sdfat: Add config option to register sdFAT for VFAT

Change-Id: I72ba7a14b56175535884390e8601960b5d8ed1cf
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
4 years agofs: sdfat: Add config option to register sdFAT for exFAT
Paul Keith [Fri, 2 Mar 2018 03:51:53 +0000 (04:51 +0100)]
fs: sdfat: Add config option to register sdFAT for exFAT

Change-Id: Id57abf0a4bd0b433fecc622eecb383cd4ea29d17
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
4 years agofs: sdfat: Update to version 2.1.8
Kevin F. Haggerty [Sat, 12 Jan 2019 16:10:18 +0000 (09:10 -0700)]
fs: sdfat: Update to version 2.1.8

* Samsung version G960FXXU2CRLI

Change-Id: Ib935f8a5eae8d6145e7b585cc9239caef1d7216b
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
4 years agofs: sdfat: Update to driver version 2.0.6
Bruno Martins [Wed, 14 Mar 2018 13:29:33 +0000 (13:29 +0000)]
fs: sdfat: Update to driver version 2.0.6

 * From Samsung package version: G960USQU1ARBG

Change-Id: Ia4ba42dbd088701c23c09fbb4ba97a5654e19011

4 years agofs: sdfat: Fix compilation without debugging
Paul Keith [Mon, 19 Feb 2018 19:52:10 +0000 (20:52 +0100)]
fs: sdfat: Fix compilation without debugging

* And make WARNON debugging optional

Change-Id: Id59e908c8a60ded1238d3fd010f3d96cdde95f40
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
4 years agofs: Import sdFAT driver
Bruno Martins [Sat, 24 Feb 2018 09:21:27 +0000 (09:21 +0000)]
fs: Import sdFAT driver

 * Samsung driver version 1.4.16

 * From Samsung package version: G950FXXU1CRAP

Change-Id: I0a0f7365d432f0e006ecc6ca0d305008cc44444c

4 years ago{chiron,sagit}_defconfig: enable power efficient wq
Demon Singur [Sun, 20 May 2018 05:01:26 +0000 (05:01 +0000)]
{chiron,sagit}_defconfig: enable power efficient wq

Change-Id: I1a40ffe60a1e354eb09228fb98369eaf1c3b18ec

4 years ago{chiron,sagit}_defconfig: disable suspend sync
Demon Singur [Sat, 19 May 2018 14:55:55 +0000 (14:55 +0000)]
{chiron,sagit}_defconfig: disable suspend sync

Change-Id: I7d439285752fa01a0d0ce5c3418f26a06b68131b

4 years ago{chiron,sagit}_defconfig: enable bfq
Demon Singur [Sat, 19 May 2018 15:22:19 +0000 (15:22 +0000)]
{chiron,sagit}_defconfig: enable bfq

Change-Id: I010beeb949a021f345c1deb6f4629236ccff69de

4 years ago{chiron,sagit}_defconfig: CONFIG_HZ_300=y
Wei Wang [Sat, 6 May 2017 01:14:09 +0000 (18:14 -0700)]
{chiron,sagit}_defconfig: CONFIG_HZ_300=y

Bug: 38045690
Test: Build
Change-Id: I54f53347358a052cdc11825092a7e94e5f17271c
Signed-off-by: Wei Wang <wvw@google.com>
4 years ago{chiron,sagit}_defconfig: enable F2FS configs
Ziqi Chen [Tue, 19 Jun 2018 11:34:52 +0000 (19:34 +0800)]
{chiron,sagit}_defconfig: enable F2FS configs

Enable F2FS related configs for MSM8998.

Change-Id: Id52e93ee54e65e558a21a9280456f05b0c9bf9c5
Signed-off-by: Ziqi Chen <ziqichen@codeaurora.org>
4 years ago{chiron,sagit}_defconfig: turn on VDSO
Mark Salyzyn [Tue, 28 Mar 2017 21:11:02 +0000 (14:11 -0700)]
{chiron,sagit}_defconfig: turn on VDSO

Turn on the vdso32 feature on an arm64 kernel.

Results in roughly a 4 fold speedup for clock_gettime() and other
timekeeping functions for arm32 executables in the environment.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 20045882
Bug: 19198045
Bug: 63737556
Change-Id: If39bfad8b287a5455dc8240a73dcc8951e4bc13f
Signed-off-by: Vol Zhdanov <wight554@gmail.com>
4 years ago{chiron,sagit}_defconfig: set default readahead to 2048KB
Wei Wang [Wed, 28 Feb 2018 22:05:47 +0000 (14:05 -0800)]
{chiron,sagit}_defconfig: set default readahead to 2048KB

Android has been benefiting quicker boot from bigger readahead during
boottime than runtime. However, the boottime readahead setting is set
when init is established after treble early mount. This patch will make
readahead bigger by default so early boot can benefit from it. Readahead
will be reset by init on boot_complete.

Bug: 62413151
Test: boot walleye 100ms faster
Change-Id: Ic9dad5666ce3d4836d73afbcee04cfb875f64f5d
Signed-off-by: Wei Wang <wvw@google.com>
4 years ago{chiron,sagit}_defconfig: preserve memory on restart
Bruno Martins [Wed, 31 Oct 2018 11:57:41 +0000 (11:57 +0000)]
{chiron,sagit}_defconfig: preserve memory on restart

Change-Id: I34e38bb4ab456d9573b5b5d2bba4bb6e42cd4c85

4 years ago{chiron,sagit}_defconfig: disable unused ecrypt fs
Vol Zhdanov [Sat, 20 Oct 2018 22:42:10 +0000 (22:42 +0000)]
{chiron,sagit}_defconfig: disable unused ecrypt fs

Change-Id: Ica03eb70f8e9b27a8fb98cf7400f841f6514f9ef

4 years ago{chiron,sagit}_defconfig: enable CONFIG_MEMORY_STATE_TIME
Thierry Strudel [Tue, 14 Mar 2017 16:04:33 +0000 (09:04 -0700)]
{chiron,sagit}_defconfig: enable CONFIG_MEMORY_STATE_TIME

Change-Id: Ic4d6e76e3d7a14e9ced9ec389f4253a596169b63
Signed-off-by: Thierry Strudel <tstrudel@google.com>
4 years ago{chiron,sagit}_defconfig: enable JUMP_LABEL
joshuous [Fri, 5 Jan 2018 16:58:42 +0000 (00:58 +0800)]
{chiron,sagit}_defconfig: enable JUMP_LABEL

This option enables a transparent branch optimization
that makes certain almost-always-true or almost-always-false
branch conditions even cheaper to execute within the kernel.

Certain performance-sensitive kernel code, such as trace points,
scheduler functionality, networking code and KVM have such
branches and include support for this optimization technique.

If it is detected that the compiler has support for "asm goto",
the kernel will compile such branches with just a nop instruction.
When the condition flag is toggled to true, the nop will be
converted to a jump instruction to execute the conditional
block of instructions.

This technique lowers overhead and stress on the branchprediction
of the processor and generally makes the kernel faster.
The update of the condition is slower, but those are always
very rare.

Change-Id: I90657cf7ef3b9d116eb019da87dd62e1806e0e87
Signed-off-by: joshuous <joshuous@gmail.com>
4 years ago{chiron,sagit}_defconfig: enable LZ4 ZRAM
Wei Wang [Fri, 2 Feb 2018 21:22:46 +0000 (13:22 -0800)]
{chiron,sagit}_defconfig: enable LZ4 ZRAM

Bug: 69685432
Test: Build
Change-Id: I894bd86c76e7c5668e1535dfc7bf3a20fa233488
Signed-off-by: Wei Wang <wvw@google.com>
4 years ago{chiron,sagit}_defconfig: enable CONFIG_DETECT_HUNG_TASK
Hridya Valsaraju [Fri, 13 Apr 2018 04:43:28 +0000 (21:43 -0700)]
{chiron,sagit}_defconfig: enable CONFIG_DETECT_HUNG_TASK

Test: device boots and /proc/sys/hung_task_* files
exist
Bug: 77842593

Change-Id: I5761cfc09a36bf275f9f09ec55158c0a6e8fb71c
Signed-off-by: Hridya Valsaraju <hridya@google.com>
4 years ago{chiron,sagit}_defconfig: enable pstore
Oleg Matcovschi [Wed, 31 Jan 2018 01:56:02 +0000 (17:56 -0800)]
{chiron,sagit}_defconfig: enable pstore

Bug: 72662019
Signed-off-by: Oleg Matcovschi <omatcovschi@google.com>
Change-Id: Ifd3f5f50cd6c496a7be637547223850a5e1f89c2

4 years ago{chiron,sagit}_defconfig: enable various HID drivers
Patrick Tjin [Mon, 24 Jul 2017 19:07:38 +0000 (12:07 -0700)]
{chiron,sagit}_defconfig: enable various HID drivers

Bug: 62808409
Change-Id: Ic049d6c03aaeaf53a0ba43ac7bd62ee52bcf7704
Signed-off-by: Patrick Tjin <pattjin@google.com>
4 years ago{chiron,sagit}_defconfig: enable qcacld-3.0
Demon Singur [Sat, 19 May 2018 13:16:04 +0000 (13:16 +0000)]
{chiron,sagit}_defconfig: enable qcacld-3.0

All the configs from stock, except
CONFIG_WLAN_OFFLOAD_PACKETS=y
which didn't seem to be enabled in 8.4.19's qcacld.ko.

Change-Id: I1da7e60dd4a14c3abdd0c32b2a2bb8505b17b810

4 years ago{chiron,sagit}_defconfig: enable specific device config
Demon Singur [Sat, 19 May 2018 14:59:03 +0000 (14:59 +0000)]
{chiron,sagit}_defconfig: enable specific device config

Change-Id: I069d2a8e0f912abd6af95696e829ed27c80b7b49

4 years ago{chiron,sagit}_defconfig: disable PAN emulation
Bruno Martins [Tue, 27 Feb 2018 18:38:16 +0000 (18:38 +0000)]
{chiron,sagit}_defconfig: disable PAN emulation

 * This is a workaround to a bad implementation around
   the Elliptic Labs' proximity sensor.

Change-Id: Iea8e3314d1cda85249145b5361b5b5db00877d9e

4 years ago{chiron,sagit}_defconfig: disable cgroup debugging
Sultan Alsawaf [Sat, 18 Aug 2018 19:24:58 +0000 (12:24 -0700)]
{chiron,sagit}_defconfig: disable cgroup debugging

Change-Id: I3ac04919fc45eee87af91dfa9fdde599b6f4a4bd

4 years ago{chiron,sagit}_defconfig: disable SCHED_AUTOGROUP
John Dias [Tue, 11 Jul 2017 19:04:08 +0000 (12:04 -0700)]
{chiron,sagit}_defconfig: disable SCHED_AUTOGROUP

Under some workloads, we're seeing periods of freezing
and excessive jank that appear to be partially improved
by disabling the autogroup feature.

Bug: 63331203
Signed-off-by: John Dias <joaodias@google.com>
Change-Id: If61dd69f6a1930158ca7e8c53240042381bc7c77

4 years ago{chiron,sagit}_defconfig: disable mdss xlog debug
Adrian Salido [Tue, 8 Aug 2017 18:45:09 +0000 (11:45 -0700)]
{chiron,sagit}_defconfig: disable mdss xlog debug

Bug: 62470966
Change-Id: Ib12674f38fb109ea467729eeeff283299ace2e63
Signed-off-by: Adrian Salido <salidoa@google.com>
4 years ago{chiron,sagit}_defconfig: disable MSM_11AD
Thierry Strudel [Tue, 7 Mar 2017 00:20:26 +0000 (16:20 -0800)]
{chiron,sagit}_defconfig: disable MSM_11AD

Change-Id: I01399642ab5d2e6405cf8dbb23caa140fcf71b56
Signed-off-by: Thierry Strudel <tstrudel@google.com>
4 years ago{chiron,sagit}_defconfig: disable BRIDGE_NETFILTER
Chris Fries [Thu, 26 Apr 2018 15:49:23 +0000 (10:49 -0500)]
{chiron,sagit}_defconfig: disable BRIDGE_NETFILTER

CONFIG_BRIDGE_NETFILTER is default=m and we don't use it.

Bug: 78574169
Change-Id: Ie8aa5e2a7adc64679e142f931b8da03999b08a43
Signed-off-by: Chris Fries <cfries@google.com>
4 years ago{chiron,sagit}_defconfig: disable QBT1000
Chris Fries [Mon, 5 Feb 2018 22:38:59 +0000 (16:38 -0600)]
{chiron,sagit}_defconfig: disable QBT1000

Remove Qualcomm's fingerprint solution.

Change-Id: I6782ee5413ac28a1bc338943fc7732dafd41da75
Signed-off-by: Chris Fries <cfries@google.com>
4 years ago{chiron,sagit}_defconfig: disable unused power drivers
Patrick Tjin [Mon, 30 Oct 2017 21:48:42 +0000 (14:48 -0700)]
{chiron,sagit}_defconfig: disable unused power drivers

Change-Id: Idb250458ed3f36b2134ca584813c63106ee12de2
Signed-off-by: Patrick Tjin <pattjin@google.com>
4 years ago{chiron,sagit}_defconfig: remove remaining unused configs
Demon Singur [Sat, 19 May 2018 13:19:43 +0000 (13:19 +0000)]
{chiron,sagit}_defconfig: remove remaining unused configs

 * disable seemp core
 * remove unused platform support
 * remove STMVL53L0 support
 * disable debug options
 * disable unneded filesystems
 * disable useless modules
 * disable mmc support
 * disable unused regulators

Change-Id: I467c9df894597c0c434dcd0b1a1365651e6dca28
Signed-off-by: Vol Zhdanov <wight554@gmail.com>
4 years ago{chiron,sagit}_defconfig: remove unused kernel config
Wei Wang [Wed, 20 Sep 2017 22:26:09 +0000 (15:26 -0700)]
{chiron,sagit}_defconfig: remove unused kernel config

Bug: 66228430
Test: boot
Change-Id: Ib779822633f700a4378b8ea3293fc6f8cb9f7175
Signed-off-by: Wei Wang <wvw@google.com>
4 years ago{chiron,sagit}_defconfig: remove various debug configs
Thierry Strudel [Fri, 21 Jul 2017 00:37:21 +0000 (17:37 -0700)]
{chiron,sagit}_defconfig: remove various debug configs

Disable remaining DEBUG configuration for shipping ROM

Bug: 62470966
Bug: 62235647
Change-Id: Id32f7ca9bc3585235826b32dd0d5719283a1c465
Signed-off-by: Thierry Strudel <tstrudel@google.com>
4 years ago{chiron,sagit}_defconfig: clean up configs
Patrick Tjin [Tue, 20 Jun 2017 02:42:27 +0000 (19:42 -0700)]
{chiron,sagit}_defconfig: clean up configs

Remove SCSI media changer support
Remove Ethernet plug in card support
Remove Qualcomm HBTP driver
Remove PPP sync support
Remove Linux Logo
Remove PCI and SPI sound card support
Remove Serial based input device support
Remove Elecom BT mouse support
Remove USB touch screen support
Remove X-Gene Phy support
Remove Non-USB Mouse, Joystick support

Enable Wacom input
Enable Realtek USB Ethernet support
Enable Announce USB device

Test: Keyboard, Mouse, Ethernet(USB3GIGV1), Headset
Test: Power/Volume Up/Down hard keys work
Change-Id: Icfdcc6ee0479c8d943a330d724aa29e0f0ca47ee
Signed-off-by: Patrick Tjin <pattjin@google.com>
4 years ago{chiron,sagit}_defconfig: start clean from msmcortex-perf_defconfig
Demon Singur [Sat, 19 May 2018 10:17:18 +0000 (10:17 +0000)]
{chiron,sagit}_defconfig: start clean from msmcortex-perf_defconfig

* use msmcortex-perf_defconfig from latest tag

Change-Id: I0c902d56f256f5e334ef4866810afd82f1d3b4a8
Signed-off-by: Vol Zhdanov <wight554@gmail.com>
Signed-off-by: Arian <arian.kulmer@web.de>
4 years agoclk: msm8998: remove gcc_mss_q6_bimc_axi_clk
Demon Singur [Sun, 17 Jun 2018 07:42:26 +0000 (07:42 +0000)]
clk: msm8998: remove gcc_mss_q6_bimc_axi_clk

Fails to enable and will generate a warning at init.

[    0.422228] gcc_mss_q6_bimc_axi_clk: status stuck off
[    0.422322] ------------[ cut here ]------------
[    0.422346] WARNING: at
/home/aicpdevs/lineage-15.1/kernel/xiaomi/msm8998/drivers/clk/msm/clock-local2.c:670
[    0.422359]
[    0.422381] CPU: 4 PID: 6 Comm: kworker/u16:0 Not tainted
4.4.78-perf+ #31
[    0.422397] Hardware name: Qualcomm Technologies, Inc. MSM 8998 v2.1
MTP (DT)
[    0.422432] Workqueue: deferwq deferred_probe_work_func
[    0.422458] task: fffffffb76524380 ti: fffffffb76558000 task.ti:
fffffffb76558000
[    0.422482] PC is at branch_clk_halt_check+0x114/0x164
[    0.422500] LR is at branch_clk_halt_check+0x114/0x164
[    0.422518] pc : [<ffffff91afb14500>] lr : [<ffffff91afb14500>]
pstate: 600000c5
[    0.422532] sp : fffffffb7655b9c0
[    0.422546] x29: fffffffb7655b9c0 x28: fffffffb76548100
[    0.422577] x27: fffffffb76416000 x26: 00000000000000a0
[    0.422605] x25: ffffff91b0f53078 x24: ffffff91b05df050
[    0.422632] x23: 00000000d0000000 x22: 0000000080000000
[    0.422658] x21: ffffff8008e8a040 x20: 0000000000000000
[    0.422684] x19: 0000000000000000 x18: fffffffb76507930
[    0.422710] x17: 0000000000000001 x16: 0000000000000007
[    0.422736] x15: 0000000000000001 x14: 0ffffffffffffffe
[    0.422761] x13: 0000000000000018 x12: 7aadf1b97e533910
[    0.422787] x11: 0000000000000006 x10: fffffffb7655b7a0
[    0.422813] x9 : 00000000ffffffd0 x8 : ffffff91af0fb3ac
[    0.422838] x7 : ffffff91b0e4ce60 x6 : 0000000000000038
[    0.422863] x5 : 0000000000000000 x4 : 0000000000000000
[    0.422889] x3 : 0000000000000000 x2 : 7aadf1b97e533910
[    0.422914] x1 : 7aadf1b97e533910 x0 : 0000000000000029
[    0.422941] \x0aPC: 0xffffff91afb144c0:
[    0.422958] 44c0  a94153f3 a9425bf5 a94363f7 a8c57bfd d65f03c0
aa1903e0 d2800001 94001d1e
[    0.423037] 44e0  b4000219 b140073f 540001c8 f9400b21 b0005be0
aa1803e2 913dc000 97d1c0da
[    0.423114] 4500  d4210000 12800da0 f94023f9 a94153f3 a9425bf5
a94363f7 a8c57bfd d65f03c0
[    0.423190] 4520  90004d81 91142021 17fffff2 b0002fc1 b0005be0
91262021 913e2000 91010021
[    0.423269] \x0aLR: 0xffffff91afb144c0:
[    0.423284] 44c0  a94153f3 a9425bf5 a94363f7 a8c57bfd d65f03c0
aa1903e0 d2800001 94001d1e
[    0.423361] 44e0  b4000219 b140073f 540001c8 f9400b21 b0005be0
aa1803e2 913dc000 97d1c0da
[    0.423437] 4500  d4210000 12800da0 f94023f9 a94153f3 a9425bf5
a94363f7 a8c57bfd d65f03c0
[    0.423512] 4520  90004d81 91142021 17fffff2 b0002fc1 b0005be0
91262021 913e2000 91010021
[    0.423590] \x0aSP: 0xfffffffb7655b980:
[    0.423605] b980  afb14500 ffffff91 7655b9c0 fffffffb afb14500
ffffff91 600000c5 00000000
[    0.423681] b9a0  b0f53078 ffffff91 00000000 00000000 ffffffff
ffffffff b0e4ce60 ffffff91
[    0.423757] b9c0  7655ba10 fffffffb afb156bc ffffff91 b0f53070
ffffff91 b13cc158 ffffff91
[    0.423833] b9e0  b0f53078 ffffff91 00000040 00000000 b0692df0
ffffff91 00000000 00000000
[    0.423908]
[    0.423941] ---[ end trace 4d957e9333d6dbf1 ]---
[    0.423955] Call trace:
[    0.423973] Exception stack(0xfffffffb7655b7d0 to 0xfffffffb7655b900)
[    0.423993] b7c0:                                   0000000000000000
0000008000000000
[    0.424015] b7e0: fffffffb7655b9c0 ffffff91afb14500 00000000600000c5
00000000000000c0
[    0.424035] b800: ffffff91b04cde08 ffffff91b0e26b98 0000000000000000
ffffff91b1035148
[    0.424055] b820: fffffffb7655b830 ffffff91aef0cfcc fffffffb7655b8d0
ffffff91aef0d354
[    0.424076] b840: ffffff91b0e06000 ffffff91aef0d31c ffffff8008e8a040
0000000080000000
[    0.424095] b860: 00000000d0000000 ffffff91b05df050 ffffff91b0f53078
00000000000000a0
[    0.424115] b880: fffffffb76416000 7aadf1b97e533910 0000000000000029
7aadf1b97e533910
[    0.424134] b8a0: 7aadf1b97e533910 0000000000000000 0000000000000000
0000000000000000
[    0.424154] b8c0: 0000000000000038 ffffff91b0e4ce60 ffffff91af0fb3ac
00000000ffffffd0
[    0.424173] b8e0: fffffffb7655b7a0 0000000000000006 7aadf1b97e533910
0000000000000018
[    0.424193] [<ffffff91afb14500>] branch_clk_halt_check+0x114/0x164
[    0.424214] [<ffffff91afb156bc>] branch_clk_enable+0x80/0xe4
[    0.424237] [<ffffff91afb11360>] clk_enable+0x90/0x1cc
[    0.424259] [<ffffff91afb11fbc>] __handoff_clk.part.3+0x290/0x318
[    0.424280] [<ffffff91afb12070>] __handoff_clk+0x2c/0x5c
[    0.424301] [<ffffff91afb12474>] msm_clock_register+0x130/0x2c4
[    0.424322] [<ffffff91afb12684>] of_msm_clock_register+0x7c/0xa4
[    0.424345] [<ffffff91afb1c154>] msm_gcc_8998_probe+0x1a0/0x380
[    0.424366] [<ffffff91af452e5c>] platform_drv_probe+0x40/0xc4
[    0.424385] [<ffffff91af4514ec>] driver_probe_device+0x1f0/0x2ec
[    0.424403] [<ffffff91af45170c>] __device_attach_driver+0x84/0xb0
[    0.424420] [<ffffff91af44f9d4>] bus_for_each_drv+0x60/0xb0
[    0.424438] [<ffffff91af4511e8>] __device_attach+0xd0/0x124
[    0.424456] [<ffffff91af451770>] device_initial_probe+0x10/0x18
[    0.424473] [<ffffff91af44fc98>] bus_probe_device+0x90/0x98
[    0.424491] [<ffffff91af450b94>] deferred_probe_work_func+0x78/0xac
[    0.424515] [<ffffff91aeeba2e8>] process_one_work+0x144/0x440
[    0.424536] [<ffffff91aeeba720>] worker_thread+0x13c/0x440
[    0.424555] [<ffffff91aeec0a40>] kthread+0xec/0x100
[    0.424575] [<ffffff91aee82ef0>] ret_from_fork+0x10/0x20
[    0.424633] failed to enable always-on clock gcc_mss_q6_bimc_axi_clk

Change-Id: I449d2876d12e065127c13380eaf36a1ddb5de79d

4 years agocamera_v2: import xiaomi changes
Demon Singur [Wed, 28 Feb 2018 19:40:09 +0000 (19:40 +0000)]
camera_v2: import xiaomi changes

Change-Id: I1c63e5f13cfea310256e173c1164cc68198304d6

4 years agoASoC: msm8998: kill logspam if max wsa devices property is set to 0
Volodymyr Zhdanov [Sun, 17 Mar 2019 21:31:18 +0000 (21:31 +0000)]
ASoC: msm8998: kill logspam if max wsa devices property is set to 0

* I'm not sure it's a good idea to print this messages dozens of times
* Also remove useless xiaomi's hack (it acts the same as property anyway)

Change-Id: Ib12e7c793aa53e757356edefec950906641d8f1a

4 years agotfa98xx: fix self assigment errors
Demon Singur [Sat, 10 Mar 2018 20:47:56 +0000 (20:47 +0000)]
tfa98xx: fix self assigment errors

Change-Id: Ie87226c26ea07a5284fdb61fee6802817c00006b

4 years agosound: Import polaris changes for USB audio
Bruno Martins [Mon, 18 Jun 2018 20:05:03 +0000 (21:05 +0100)]
sound: Import polaris changes for USB audio

Change-Id: I4dbf44995e2bc05dd632fc33f543f56415f9b33f
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
4 years agosound: elliptic: update from sagit-p-oss
Volodymyr Zhdanov [Fri, 12 Jul 2019 12:24:04 +0000 (15:24 +0300)]
sound: elliptic: update from sagit-p-oss

Change-Id: I77d8c6756d8c4e853b23593c5aabfccd9a34c36d

4 years agosound: properly include elliptic drivers headers
Demon Singur [Mon, 12 Mar 2018 08:32:46 +0000 (08:32 +0000)]
sound: properly include elliptic drivers headers

Change-Id: I6d6b14e9bf1fc50ff74ca167ff36b42f4e5a253b

4 years agosound: import xiaomi changes
Demon000 [Fri, 10 Nov 2017 20:18:06 +0000 (22:18 +0200)]
sound: import xiaomi changes

Change-Id: I1305495c4d591d27d380ba61a553bb924d2ce6a8

4 years agopower: smb2: remove xiaomi's typeC try.snk implementation
dianlujitao [Fri, 19 Oct 2018 08:57:41 +0000 (16:57 +0800)]
power: smb2: remove xiaomi's typeC try.snk implementation

 * Qualcomm introduced a SW implementation of try.SNK and enabled by default.

Change-Id: Ib3faf2f283e90974399b2d26302f5eac3a37509c

4 years agopower: ignore IRQs while system is suspended
Demon Singur [Wed, 16 May 2018 15:49:37 +0000 (15:49 +0000)]
power: ignore IRQs while system is suspended

There's no reason to handle IRQs for SoC changes while system is
suspended.

Change-Id: I0dee8baa49addb808b3d6d5a2d467b48a405df9e

4 years agopower: add charging current limitting
Demon Singur [Sat, 24 Mar 2018 17:27:51 +0000 (17:27 +0000)]
power: add charging current limitting

Charging at 3200mA while using the phone makes it quite hot.
Decrease the charging current to ~1600mA to prevent bad user
experience and complaints.

After 90 seconds with screen on, vote USB ICL to lower current
to 1600mA.
After 5 seconds with screen off, unvote USB ICL so the current
goes back to 3200mA.

Also, add compatibility with stock hvdcp service that writes to
the system_temp_level property to trigger thermal throttling.

Values taken from MIUI kernel, rewritten to look better and avoid
locking in framebuffer notifiers.

Change-Id: Iedf2789304356221283472ba242211d3ea6256d8

4 years agopower: import xiaomi changes
Demon Singur [Wed, 7 Feb 2018 15:34:41 +0000 (15:34 +0000)]
power: import xiaomi changes

* import voltage limits
* enable try sink mode
* wait more for typec detection
* do device wakeup before smb probe logic

Change-Id: I3dfd28cd005c03e7001fa51fe1df332e4d330236

4 years agoof_batterydata: add fallback to generic node
dianlujitao [Sat, 22 Sep 2018 12:02:56 +0000 (20:02 +0800)]
of_batterydata: add fallback to generic node

Change-Id: Ic8b1c163a20a787e3d485a8ec27eebb6b0c25d32

4 years agonfc: import xiaomi sagit-p-oss changes
wloot [Fri, 12 Jul 2019 17:08:43 +0000 (01:08 +0800)]
nfc: import xiaomi sagit-p-oss changes

Change-Id: Ib320f9d088e7be28ef0986d88071256dd80fd2e4

4 years agogoodix_ta: respect capacitive keys state
dianlujitao [Fri, 2 Feb 2018 09:31:04 +0000 (17:31 +0800)]
goodix_ta: respect capacitive keys state

 * Only report key event when capacitive keys enabled

Change-Id: Id30ba1fd7a589b2fce7bd3d2f433a6b1d756b37d

4 years agogoodix_ta: boost fingerprint hal priority when screen is off
Demon Singur [Fri, 4 May 2018 15:29:57 +0000 (15:29 +0000)]
goodix_ta: boost fingerprint hal priority when screen is off

Give fingerprint hal the priority -1 when the screen is off to
speed up fingerprint processing, and then reset its priority back to
normal when the screen is on.

Change-Id: I0e144fdfcef8c96478593a4396a51a431af83989

4 years agogoodix_ta: clean up everything
Demon Singur [Thu, 22 Mar 2018 20:22:47 +0000 (20:22 +0000)]
goodix_ta: clean up everything

 * get rid of spi bus support, we only need platform bus
 * move fingerprint detection wakelock time to a define
 * do not dynamically allocate minors, there's only one
   minor needed, 0
 * move wakelock declaration to gf_dev
 * merge enable/disable irq methods
 * remove spi clk control
 * remove nav event support
 * remove unused input events
 * remove unused ioctls
 * remove ioctl type checking, copy_from/to_user already
   handles this
 * remove fasync support
 * move netlink message sending out of notifier, inside
   dedicated worker
 * register platform_driver directly
 * move event handling to a high priority worker
 * do not use conflicting names for struct and instance of it

Change-Id: Iac4951f65d533befe1362a718ce4ce8773d7973c

4 years agofpc1268: respect capacitive keys state
dianlujitao [Fri, 2 Feb 2018 10:59:59 +0000 (18:59 +0800)]
fpc1268: respect capacitive keys state

 * Implement a key handler with the simple purpose of filtering
   the key events sent by the fingerprint HAL.
 * Only report key event when capacitive keys enabled.
 * Input handler taken from bgcngm's implementation for Xiaomi msm8996.

Change-Id: I091eb514fee291b7625193496c217c0b966fa518

4 years agofingerprint: add fpc1020_tee and goodix_ta drivers
Demon000 [Fri, 10 Nov 2017 17:19:29 +0000 (19:19 +0200)]
fingerprint: add fpc1020_tee and goodix_ta drivers

Change-Id: Iebb57cea163fdd93824d884bfe8e5f95894fcc18
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
4 years agosynaptics_dsx_force: export capacitive keys state
dianlujitao [Fri, 2 Feb 2018 09:21:25 +0000 (17:21 +0800)]
synaptics_dsx_force: export capacitive keys state

Change-Id: I9d92311d52dc170dd5b2a9770072a57eff038f2c

4 years agosynaptics_dsx_force: do not reinit the device upon suspend/resume
Xiaonian Wang [Fri, 15 Apr 2016 11:34:12 +0000 (19:34 +0800)]
synaptics_dsx_force: do not reinit the device upon suspend/resume

There is no need to reinit the device when suspend, resume or even an
spontaneous reset is detected, touch will recover by itself.

CRs-Fixed: 1003951
Change-Id: Ifb5b134d0fbeb2f55f16af8806abb9c8e51c35e0

4 years agosynaptics_dsx_force: do not spam dmesg for button presses
Demon Singur [Mon, 9 Apr 2018 04:26:02 +0000 (04:26 +0000)]
synaptics_dsx_force: do not spam dmesg for button presses

Change-Id: Ia10ab0db050cf1d1fd4fc73e99a1c46b923281fa

4 years agosynaptics_dsx_force: guard test reporting
Demon Singur [Sat, 31 Mar 2018 10:56:42 +0000 (10:56 +0000)]
synaptics_dsx_force: guard test reporting

Change-Id: I4cae16efcae5d1fa7aa1b1a6f7851e4fe9200edd

4 years agosynaptics_dsx_force: symlink input device to /proc/touchpanel
Demon000 [Sun, 12 Feb 2017 21:23:11 +0000 (23:23 +0200)]
synaptics_dsx_force: symlink input device to /proc/touchpanel

Change-Id: I5bf1291aa22b889522585a3faeab5f96ff6612e2

4 years agosynaptics_dsx_force: allow reversing back and menu keys
Louis Popi [Wed, 29 Nov 2017 21:16:12 +0000 (23:16 +0200)]
synaptics_dsx_force: allow reversing back and menu keys

Change-Id: I8b6c6afd85e82dd1e05d95702e7071d3eedbbb9a

4 years agosynaptics_dsx_force: check if buttons are enabled before reporting touch event
Demon000 [Sun, 9 Apr 2017 15:14:25 +0000 (18:14 +0300)]
synaptics_dsx_force: check if buttons are enabled before reporting touch event

Change-Id: I5483fc47dc76bb8f00b921261fcc48fa923e860d

4 years agosynpatics_dsx_force: alias sysfs nodes
Demon000 [Thu, 16 Nov 2017 19:37:33 +0000 (21:37 +0200)]
synpatics_dsx_force: alias sysfs nodes

Change-Id: I79cd5267da895e2f8535e73fd13bf7691897eb74

4 years agotouchscreen: import synaptics_dsx_force driver
Demon000 [Fri, 10 Nov 2017 17:26:10 +0000 (19:26 +0200)]
touchscreen: import synaptics_dsx_force driver

Change-Id: Ib7bc0dd2cda6e68ce6739153406afe6081ca0476

4 years agoclk: mdss: silence slave PLL unavailable message
Demon000 [Sun, 12 Nov 2017 17:02:23 +0000 (19:02 +0200)]
clk: mdss: silence slave PLL unavailable message

Change-Id: Ife6dc30ef6e498915af38661c4c8450363cf7a04

4 years agomdss: add hooks for touchscreen
Demon000 [Sun, 12 Nov 2017 09:22:07 +0000 (11:22 +0200)]
mdss: add hooks for touchscreen

Change-Id: I9b840a18e2443975bf90c0332cfc2fec5e022fbc