OSDN Git Service

firmware: smccc: Add function to fetch SMCCC version
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 18 May 2020 09:12:21 +0000 (10:12 +0100)
committerWill Deacon <will@kernel.org>
Wed, 20 May 2020 18:10:37 +0000 (19:10 +0100)
commita4fb17465182c9fc13104e4df04d050892055205
treee0ace75bc1e3d551cc1a94e4ed9308896c639f9e
parentf2ae97062a48b114bcf8fb2e99574d9ed2c2cd1b
firmware: smccc: Add function to fetch SMCCC version

For backward compatibility reasons, PSCI maintains SMCCC version as
SMCCC didn't provide ARM_SMCCC_VERSION_FUNC_ID until v1.1.

PSCI initialises both the SMCCC version and conduit. Similar to the
conduit, let us provide accessors to fetch the SMCCC version also so
that other SMCCC v1.1+ features can use it.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Etienne Carriere <etienne.carriere@st.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Etienne Carriere <etienne.carriere@st.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20200518091222.27467-7-sudeep.holla@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/firmware/smccc/smccc.c
include/linux/arm-smccc.h