mfd: intel-m10-bmc: Change staging size to a variable
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 2 Apr 2024 18:49:25 +0000 (14:49 -0400)
committerLee Jones <lee@kernel.org>
Fri, 10 May 2024 14:39:16 +0000 (15:39 +0100)
commit74c6317df04bbfbb82ffed9dbb530e4075c7abed
tree790829cd4658ec83e9b29c3dda8cbb6efc6e7b52
parent4fd7e2ffe32dfd5e68cec6463a9b462de4e56611
mfd: intel-m10-bmc: Change staging size to a variable

The secure update driver does a sanity-check of the image size in
comparison to the size of the staging area in FLASH. Instead of
hard-wiring M10BMC_STAGING_SIZE, move the staging size to the
m10bmc_csr_map structure to make the size assignment more flexible.

Co-developed-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20240402184925.1065932-1-peter.colberg@intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/fpga/intel-m10-bmc-sec-update.c
drivers/mfd/intel-m10-bmc-pmci.c
drivers/mfd/intel-m10-bmc-spi.c
include/linux/mfd/intel-m10-bmc.h