mfd: intel-m10-bmc: Add access table configuration to the regmap
authorMatthew Gerlach <matthew.gerlach@linux.intel.com>
Wed, 10 Mar 2021 15:55:47 +0000 (23:55 +0800)
committerLee Jones <lee.jones@linaro.org>
Wed, 14 Apr 2021 15:03:41 +0000 (16:03 +0100)
commit8169f74ca6f318f4187536050d2f5408fce9c264
tree2dd05287ce271b5cb457690362ec60671292c918
parent5893f4d1f43036664010e3ae1d3f7a98b2165a5d
mfd: intel-m10-bmc: Add access table configuration to the regmap

This patch adds access tables to the MAX 10 BMC regmap. This prevents
the host from accessing the unwanted I/O space. It also filters out the
invalid outputs when reading the regmap debugfs interface.

Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Reviewed-by: Tom Rix <trix@redhat.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel-m10-bmc.c
include/linux/mfd/intel-m10-bmc.h