summaryrefslogtreecommitdiffstats
path: root/drivers/soc/tegra/fuse/fuse-tegra.c
diff options
context:
space:
mode:
authorKartik <kkartik@nvidia.com>2022-10-07 11:51:07 +0200
committerThierry Reding <treding@nvidia.com>2022-10-24 17:09:55 +0200
commitcc5b2ad5393ec237c8697bb3989a34c0c3beb2f6 (patch)
treef06903cd0c14d2a2ee8786968f281bf9d7935d5b /drivers/soc/tegra/fuse/fuse-tegra.c
parentsoc/tegra: fuse: Use SoC specific nvmem cells (diff)
downloadlinux-cc5b2ad5393ec237c8697bb3989a34c0c3beb2f6.tar.xz
linux-cc5b2ad5393ec237c8697bb3989a34c0c3beb2f6.zip
soc/tegra: fuse: Add nvmem keepout list
On Tegra186 and later, various FUSE offsets are restricted and cannot be accessed from CCPLEX. Currently nvmem binary interface allows reading such offsets from userspace, which results in RAS errors. Add nvmem keepout lists to avoid any reads to restricted offsets. Signed-off-by: Kartik <kkartik@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/soc/tegra/fuse/fuse-tegra.c')
-rw-r--r--drivers/soc/tegra/fuse/fuse-tegra.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c
index 793032f4f015..ea25a1dcafc2 100644
--- a/drivers/soc/tegra/fuse/fuse-tegra.c
+++ b/drivers/soc/tegra/fuse/fuse-tegra.c
@@ -149,6 +149,8 @@ static int tegra_fuse_probe(struct platform_device *pdev)
nvmem.owner = THIS_MODULE;
nvmem.cells = fuse->soc->cells;
nvmem.ncells = fuse->soc->num_cells;
+ nvmem.keepout = fuse->soc->keepouts;
+ nvmem.nkeepout = fuse->soc->num_keepouts;
nvmem.type = NVMEM_TYPE_OTP;
nvmem.read_only = true;
nvmem.root_only = true;