]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cpufreq: brcmstb-avs-cpufreq: Fix initial command check
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 22 May 2019 18:45:46 +0000 (11:45 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit28267d0ba42ead0943732911d0f02ce6a8d59038
treeb4725ef55262c74697af5b297aa2d1de2a73aacd
parent78fdd5516b439100f0edbd5bcb4df20c50cf5f6f
cpufreq: brcmstb-avs-cpufreq: Fix initial command check

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 22a26cc6a51ef73dcfeb64c50513903f6b2d53d8 ]

There is a logical error in brcm_avs_is_firmware_loaded() whereby if the
firmware returns -EINVAL, we will be reporting this as an error. The
comment is correct, the code was not.

Fixes: de322e085995 ("cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/cpufreq/brcmstb-avs-cpufreq.c