OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:53 +0000 (14:50 +0100)
commit3f740f7177e4c440039228e436251ef7787c9e9f
tree4f653d76f1b392c642062d0e9a2a7d63815688a3
parent26aa47a8a01fe6b75de8f967fd6bea6517470b3d
cpufreq: brcmstb-avs-cpufreq: Fix initial command check

[ 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>
drivers/cpufreq/brcmstb-avs-cpufreq.c