]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
PM / devfreq: Fix devfreq_notifier_call returning errno
authorLeonard Crestez <leonard.crestez@nxp.com>
Thu, 31 Oct 2019 21:34:18 +0000 (23:34 +0200)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:21:28 +0000 (16:21 +0100)
commit933a5cdeb40fb32d3e30a91e5bd476f3be719ddb
tree567957e921b012cb7783234cb13e0d34a776ae27
parentdc8441f20e9c605ac89b46afffaa06fa70c1b093
PM / devfreq: Fix devfreq_notifier_call returning errno

BugLink: https://bugs.launchpad.net/bugs/1860125
[ Upstream commit e876e710ede23f670494331e062d643928e4142a ]

Notifier callbacks shouldn't return negative errno but one of the
NOTIFY_OK/DONE/BAD values.

The OPP core will ignore return values from notifiers but returning a
value that matches NOTIFY_STOP_MASK will stop the notification chain.

Fix by always returning NOTIFY_OK.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/devfreq/devfreq.c