Patch "PM / Domains: Fix removal of a subdomain" has been added to the 4.5-stable tree
Subsystems (5)
This is a note to let you know that I've just added the patch titled
PM / Domains: Fix removal of a subdomain
to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
pm-domains-fix-removal-of-a-subdomain.patch
and it can be found in the queue-4.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
beda5fc1ff9b527059290a97b672d2ee0eb7b92fMon Sep 17 00:00:00 2001
From: Jon Hunter <[email protected]>
Date: Fri, 4 Mar 2016 10:55:14 +0000
Subject: PM / Domains: Fix removal of a subdomain
From: Jon Hunter <[email protected]>
commit beda5fc1ff9b527059290a97b672d2ee0eb7b92f upstream.
Commit 30e7a65b3fdb (PM / Domains: Ensure subdomain is not in use before removing) added a test to ensure that a subdomain is not a master to another subdomain or if any devices are using the subdomain before removing. This change incorrectly used the "slave_links" list to determine if the subdomain is a master to another subdomain, where it should have been using the "master_links" list instead. The "slave_links" list will never be empty for a subdomain and so a subdomain can never be removed. Fix this by testing if the "master_links" list is empty instead.
--- drivers/base/power/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/power/domain.c +1 -1
@@ -1378,7 +1378,7 @@ int pm_genpd_remove_subdomain(struct genmutex_lock (&subdomain->lock);mutex_lock_nested (&genpd->lock,SINGLE_DEPTH_NESTING ); -if (!list_empty (&subdomain->slave_links) || subdomain->device_count) { +if (!list_empty (&subdomain->master_links) || subdomain->device_count) {pr_warn ("%s: unable to remove subdomain %s\n" , genpd->name, subdomain->name); ret = -EBUSY ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.5/arm-omap2-hwmod-fix-updating-of-sysconfig-register.patch queue-4.5/pm-domains-fix-removal-of-a-subdomain.patch