summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSudhir Vyas <svyas@nvidia.com>2016-09-02 09:06:07 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-09-09 18:13:35 -0400
commit6dfb2c8de6f9da0d0522b5a21491d5008925ca3d (patch)
tree90a64b31b728603078df005f5abe375029a6be03
parent0ba0877edf9fbd7a94870b36d41f2c93a7484394 (diff)
platform: tegra: rtcpu: Fix reboot debugfs
currently the reboot debugfs resets the RTCPU but fails to restart it successfully. So once reboot test is run, RTCPU is off, and no other test is able to run. This change fixes it by calling rtcpu start and stop APIs, which perform correct steps to restart rtcpu. Bug 200232545 Jira CRTC-436 Change-Id: I2e63cb4405cd71c94913b98cbcf734855c365a0e Signed-off-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-on: http://git-master/r/1213744 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Pekka Pessi <ppessi@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Jihoon Bang <jbang@nvidia.com>
-rw-r--r--drivers/platform/tegra/rtcpu/debug.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/platform/tegra/rtcpu/debug.c b/drivers/platform/tegra/rtcpu/debug.c
index 6eef54e49..f421d3d62 100644
--- a/drivers/platform/tegra/rtcpu/debug.c
+++ b/drivers/platform/tegra/rtcpu/debug.c
@@ -93,11 +93,9 @@ static int camrtc_show_reboot(struct seq_file *file, void *data)
93 struct tegra_ivc_channel *ch = file->private; 93 struct tegra_ivc_channel *ch = file->private;
94 struct device *rce_dev = camrtc_get_device(ch); 94 struct device *rce_dev = camrtc_get_device(ch);
95 95
96 tegra_camrtc_set_halt(rce_dev, true); 96 tegra_camrtc_stop(rce_dev);
97 97
98 tegra_camrtc_reset(rce_dev); 98 tegra_camrtc_start(rce_dev);
99
100 tegra_camrtc_set_halt(rce_dev, false);
101 99
102 seq_puts(file, "0\n"); 100 seq_puts(file, "0\n");
103 101