summaryrefslogtreecommitdiffstats
path: root/drivers/soc
diff options
context:
space:
mode:
authorsumitg <sumitg@nvidia.com>2019-02-19 04:21:14 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2019-02-20 17:31:10 -0500
commit5aaaca4c6ca9dfe87ea9b7fa706b53d87b48c57c (patch)
tree1516984e8ed32d350dd3864c33cb84975915549a /drivers/soc
parent03c740023edfeb5f19b64aae944c0689e009b5de (diff)
soc/tegra: fix permission of forced_idle_duration_us
"nvidia-bug-report-tegra.sh" tries to read all files with read permission from path "/sys/kernel/debug/*cpuidle*/". Permission for "forced_idle_duration_us" node is wrongly set to read also but only write to this node is supported. So, reading it causes permission error. Changing permission to only write for root user to fix the error. Bug 200494482 Change-Id: Ibb41dad66e345c527addb796519cb73f792dd5ae Signed-off-by: sumitg <sumitg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2022773 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Dipen Patel <dipenp@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/tegra/pm-tegra210.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/tegra/pm-tegra210.c b/drivers/soc/tegra/pm-tegra210.c
index 20df40868..23516d591 100644
--- a/drivers/soc/tegra/pm-tegra210.c
+++ b/drivers/soc/tegra/pm-tegra210.c
@@ -447,7 +447,7 @@ static int debugfs_init(void)
447 } 447 }
448 448
449 449
450 dfs_file = debugfs_create_file("forced_idle_duration_us", 0644, 450 dfs_file = debugfs_create_file("forced_idle_duration_us", 0200,
451 cpuidle_debugfs_root, NULL, &duration_us_fops); 451 cpuidle_debugfs_root, NULL, &duration_us_fops);
452 452
453 if (!dfs_file) { 453 if (!dfs_file) {