]> asedeno.scripts.mit.edu Git - linux.git/commit
firmware: meson_sm: Rework driver as a proper platform driver
authorCarlo Caione <ccaione@baylibre.com>
Wed, 31 Jul 2019 08:23:39 +0000 (09:23 +0100)
committerKevin Hilman <khilman@baylibre.com>
Thu, 3 Oct 2019 15:43:33 +0000 (08:43 -0700)
commit8cde3c2153e8f57be884c0e73f18bc4de150e870
tree1a1ab4553a4218150903420c586bfd9c6b4184dd
parent47b3c53a16c030691edaf8345cbea4f0018dcbef
firmware: meson_sm: Rework driver as a proper platform driver

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: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Carlo Caione <ccaione@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
drivers/firmware/meson/meson_sm.c
drivers/nvmem/meson-efuse.c
include/linux/firmware/meson/meson_sm.h