Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 525ae72d authored by Carlo Caione's avatar Carlo Caione Committed by Greg Kroah-Hartman
Browse files

firmware: meson_sm: Rework driver as a proper platform driver



[ Upstream commit 8cde3c2153e8f57be884c0e73f18bc4de150e870 ]

The secure monitor driver is currently a frankenstein driver which is
registered as a platform driver but its functionality goes through a
global struct accessed by the consumer drivers using exported helper
functions.

Try to tidy up the driver moving the firmware struct into the driver
data and make the consumer drivers referencing the secure-monitor using
a new property in the DT.

Currently only the nvmem driver is using this API so we can fix it in
the same commit.

Reviewed-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Signed-off-by: default avatarCarlo Caione <ccaione@baylibre.com>
Signed-off-by: default avatarKevin Hilman <khilman@baylibre.com>
Stable-dep-of: cbd38332c140 ("nvmem: meson-efuse: fix function pointer type mismatch")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ee4e9c19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment