]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7012292423ffab92e19135b897529c2ec660726
tree2dd05287ce271b5cb457690362ec60671292c918
parentc051c225c9f653546c21317f61a586e416ae29dc
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