1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-21 06:51:49 +03:00
mobile-nixos/devices/motorola-addison/kernel/0001-Allow-building-WCD9335_CODEC-without-REGMAP_ALLOW_WR.patch
Samuel Dionne-Riel 4c11bf2c50 motorola-addison: Reduce size of the kernel
The patches added here are required to build under some conditions, but
not all are ended up needed as CONFIG_DEBUG_FS is required to be active
otherwise the kernel doesn't even boot :/

The kernel size was reduced by:

 * Removing tracing support
 * Removing unneeded exfat and sdcardfs filesystems
 * Removing all sound support
 * Removing video input (camera) support

The latter options seem awfully shortsighted, until you remember that a goal is
to eventually deal with booting our own kernels through kexec.

The Moto Z Play device's boot partition size is putting us in a hard
spot.
2019-12-04 17:39:46 -05:00

26 lines
749 B
Diff

From adfef6057807b0a5e2bd73de0464c43aa3df6f2c Mon Sep 17 00:00:00 2001
From: Samuel Dionne-Riel <samuel@dionne-riel.com>
Date: Wed, 4 Dec 2019 02:57:08 -0500
Subject: [PATCH 1/6] Allow building WCD9335_CODEC without
REGMAP_ALLOW_WRITE_DEBUGFS
---
drivers/mfd/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 0b747ae632b7..15089ab8a9aa 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -1424,7 +1424,6 @@ config WCD9335_CODEC
depends on SLIMBUS
select SOUNDWIRE_WCD_CTRL
select MFD_CORE
- select REGMAP_ALLOW_WRITE_DEBUGFS
help
Enables the WCD9xxx codec core driver. The core driver provides
read/write capability to registers which are part of the
--
2.23.0