firmware: smccc: Refactor SMCCC specific bits into separate file
authorSudeep Holla <sudeep.holla@arm.com>
Mon, 18 May 2020 09:12:20 +0000 (10:12 +0100)
committerWill Deacon <will@kernel.org>
Wed, 20 May 2020 18:10:37 +0000 (19:10 +0100)
commitf2ae97062a48b114bcf8fb2e99574d9ed2c2cd1b
tree15ae441ab539114219be045bc40663142f23cfe3
parentad5a57dfe434b02ab28852703d7ad5510998ccef
firmware: smccc: Refactor SMCCC specific bits into separate file

In order to add newer SMCCC v1.1+ functionality and to avoid cluttering
PSCI firmware driver with SMCCC bits, let us move the SMCCC specific
details under drivers/firmware/smccc/smccc.c

We can also drop conduit and smccc_version from psci_operations structure
as SMCCC was the sole user and now it maintains those.

No functionality change in this patch though.

Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Etienne Carriere <etienne.carriere@st.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-6-sudeep.holla@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
MAINTAINERS
drivers/firmware/Makefile
drivers/firmware/psci/psci.c
drivers/firmware/smccc/Makefile [new file with mode: 0644]
drivers/firmware/smccc/smccc.c [new file with mode: 0644]
include/linux/psci.h