Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53d9c1f9 authored by Tim Murray's avatar Tim Murray Committed by Venkata Narendra Kumar Gutta
Browse files

firmware_class: make firmware caching configurable



Because firmware caching generates uevent messages that are sent over a
netlink socket, it can prevent suspend on many platforms.  It's also not
always useful, so make it a configurable option.

bug 32180327.

Change-Id: I1250512b27edb56caa78d536e5ccf1fb669476ad
Signed-off-by: default avatarTim Murray <timmurray@google.com>
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm-4.4


Git-commit: e3198d51be98ec5606e2a2c5112a8a974d354fbc
[vnkgutta@codeaurora.org: Resolved trivial merge conflicts]
Signed-off-by: default avatarVenkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
parent bd110257
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -90,6 +90,11 @@ config PREVENT_FIRMWARE_BUILD

source "drivers/base/firmware_loader/Kconfig"

config FW_CACHE
       bool "Enable firmware caching during suspend"
       depends on PM_SLEEP
       default n

config WANT_DEV_COREDUMP
	bool
	help
+3 −3
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ struct firmware_cache {
	struct list_head head;
	int state;

#ifdef CONFIG_PM_SLEEP
#ifdef CONFIG_FW_CACHE
	/*
	 * Names of firmware images which have been cached successfully
	 * will be added into the below list so that device uncache
@@ -377,7 +377,7 @@ static void fw_set_page_data(struct fw_priv *fw_priv, struct firmware *fw)
		 (unsigned int)fw_priv->size);
}

#ifdef CONFIG_PM_SLEEP
#ifdef CONFIG_FW_CACHE
static void fw_name_devm_release(struct device *dev, void *res)
{
	struct fw_name_devm *fwn = res;
@@ -861,7 +861,7 @@ request_firmware_nowait(
}
EXPORT_SYMBOL(request_firmware_nowait);

#ifdef CONFIG_PM_SLEEP
#ifdef CONFIG_FW_CACHE
static ASYNC_DOMAIN_EXCLUSIVE(fw_cache_domain);

/**