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: Tim 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: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
This commit is contained in:
parent
bd110257ad
commit
53d9c1f90d
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue