Revert "firmware_class: make firmware caching configurable"

This reverts commit c538e23f6d.
This commit is contained in:
syphyr 2019-06-28 20:50:53 +02:00
parent effa613cd4
commit 8d60216075
2 changed files with 5 additions and 10 deletions

View File

@ -156,11 +156,6 @@ config FW_LOADER_USER_HELPER
no longer required unless you have a special firmware file that
resides in a non-standard path.
config FW_CACHE
bool "Enable firmware caching during suspend"
depends on PM_SLEEP
default n
config DEBUG_DRIVER
bool "Driver Core verbose debug messages"
depends on DEBUG_KERNEL

View File

@ -103,7 +103,7 @@ struct firmware_cache {
struct list_head head;
int state;
#ifdef CONFIG_FW_CACHE
#ifdef CONFIG_PM_SLEEP
/*
* Names of firmware images which have been cached successfully
* will be added into the below list so that device uncache
@ -423,7 +423,7 @@ static void fw_set_page_data(struct firmware_buf *buf, struct firmware *fw)
(unsigned int)buf->size);
}
#ifdef CONFIG_FW_CACHE
#ifdef CONFIG_PM_SLEEP
static void fw_name_devm_release(struct device *dev, void *res)
{
struct fw_name_devm *fwn = res;
@ -1561,7 +1561,7 @@ int uncache_firmware(const char *fw_name)
return -EINVAL;
}
#ifdef CONFIG_FW_CACHE
#ifdef CONFIG_PM_SLEEP
static ASYNC_DOMAIN_EXCLUSIVE(fw_cache_domain);
static struct fw_cache_entry *alloc_fw_cache_entry(const char *name)
@ -1827,7 +1827,7 @@ static void __init fw_cache_init(void)
INIT_LIST_HEAD(&fw_cache.head);
fw_cache.state = FW_LOADER_NO_CACHE;
#ifdef CONFIG_FW_CACHE
#ifdef CONFIG_PM_SLEEP
spin_lock_init(&fw_cache.name_lock);
INIT_LIST_HEAD(&fw_cache.fw_names);
@ -1854,7 +1854,7 @@ static int __init firmware_class_init(void)
static void __exit firmware_class_exit(void)
{
#ifdef CONFIG_FW_CACHE
#ifdef CONFIG_PM_SLEEP
unregister_syscore_ops(&fw_syscore_ops);
unregister_pm_notifier(&fw_cache.pm_notify);
#endif