mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
soc/tegra: fuse: Remove nvmem root only access
To read fuse values, various "non-root" userspace applications require access to nvmem binary interface. Remove root only access for nvmem userspace binary interface. Signed-off-by: Kartik <kkartik@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
056a6e1db2
commit
821d96e3a0
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only
|
// SPDX-License-Identifier: GPL-2.0-only
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2013-2022, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2013-2023, NVIDIA CORPORATION. All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
@ -166,7 +166,7 @@ static int tegra_fuse_probe(struct platform_device *pdev)
|
|||||||
nvmem.nkeepout = fuse->soc->num_keepouts;
|
nvmem.nkeepout = fuse->soc->num_keepouts;
|
||||||
nvmem.type = NVMEM_TYPE_OTP;
|
nvmem.type = NVMEM_TYPE_OTP;
|
||||||
nvmem.read_only = true;
|
nvmem.read_only = true;
|
||||||
nvmem.root_only = true;
|
nvmem.root_only = false;
|
||||||
nvmem.reg_read = tegra_fuse_read;
|
nvmem.reg_read = tegra_fuse_read;
|
||||||
nvmem.size = fuse->soc->info->size;
|
nvmem.size = fuse->soc->info->size;
|
||||||
nvmem.word_size = 4;
|
nvmem.word_size = 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user