From f9c0b87ec8fc9fda73e541b6882977d04af5ecd9 Mon Sep 17 00:00:00 2001 From: Shridhar Rasal Date: Mon, 29 Jan 2018 13:24:04 +0530 Subject: [PATCH] video: tegra: host: nvdla: fix firmware reload refcnt Fix DLA firmware poweron sequence for reload firmware through debugfs. DLA free'ing resources and poweron is already handled in abstract API: flcn_reload_fw() Jira DLA-722 Change-Id: I04c4138ee9d2c0afc64a442cfafb372fe484ea96 Signed-off-by: Shridhar Rasal Reviewed-on: https://git-master.nvidia.com/r/1647794 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Prashant Gaikwad Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/nvdla_debug.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/video/tegra/host/nvdla/nvdla_debug.c b/drivers/video/tegra/host/nvdla/nvdla_debug.c index ddc31a97..31107832 100644 --- a/drivers/video/tegra/host/nvdla/nvdla_debug.c +++ b/drivers/video/tegra/host/nvdla/nvdla_debug.c @@ -511,16 +511,10 @@ static ssize_t debug_dla_fw_reload_set(struct file *file, nvdla_dbg_info(pdev, "firmware reload requested.\n"); - nvhost_module_idle(pdev); /* hack around ref counting */ - err = flcn_reload_fw(pdev); if (err) return err; /* propagate firmware reload errors */ - err = nvhost_module_busy(pdev); - if (err) - return err; - return count; }