mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
PM: sleep: Fix bit masking operation
The mask operation link->flags | DL_FLAG_PM_RUNTIME is always true which
is incorrect. The mask operation should be using the bit-wise &
operator. Fix this.
Fixes: bca84a7b93
("PM: sleep: Use DPM_FLAG_SMART_SUSPEND conditionally")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://patch.msgid.link/20250319114324.791829-1-colin.i.king@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
03f1444016
commit
3860cbe239
1 changed files with 1 additions and 1 deletions
|
@ -1836,7 +1836,7 @@ static bool device_prepare_smart_suspend(struct device *dev)
|
||||||
idx = device_links_read_lock();
|
idx = device_links_read_lock();
|
||||||
|
|
||||||
list_for_each_entry_rcu_locked(link, &dev->links.suppliers, c_node) {
|
list_for_each_entry_rcu_locked(link, &dev->links.suppliers, c_node) {
|
||||||
if (!(link->flags | DL_FLAG_PM_RUNTIME))
|
if (!(link->flags & DL_FLAG_PM_RUNTIME))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!dev_pm_smart_suspend(link->supplier) &&
|
if (!dev_pm_smart_suspend(link->supplier) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue