diff --git a/drivers/tegra/hwpm/hal/t234/ip/nvdla/t234_nvdla.c b/drivers/tegra/hwpm/hal/t234/ip/nvdla/t234_nvdla.c index 3c8b657..e8bbe6d 100644 --- a/drivers/tegra/hwpm/hal/t234/ip/nvdla/t234_nvdla.c +++ b/drivers/tegra/hwpm/hal/t234/ip/nvdla/t234_nvdla.c @@ -166,11 +166,11 @@ static struct hwpm_ip_inst t234_nvdla_inst_static_array[ .ip_dev = NULL, .hwpm_ip_pm = NULL, .hwpm_ip_reg_op = NULL, - .fd = -1, + .fd = 1, }, .element_fs_mask = 0U, - .dev_name = "", + .dev_name = "/dev/nvdladebugfs/nvdla0/hwpm/ctrl", }, { .hw_inst_mask = BIT(1), @@ -229,11 +229,11 @@ static struct hwpm_ip_inst t234_nvdla_inst_static_array[ .ip_dev = NULL, .hwpm_ip_pm = NULL, .hwpm_ip_reg_op = NULL, - .fd = -1, + .fd = 1, }, .element_fs_mask = 0U, - .dev_name = "", + .dev_name = "/dev/nvdladebugfs/nvdla1/hwpm/ctrl", }, }; diff --git a/drivers/tegra/hwpm/include/tegra_hwpm.h b/drivers/tegra/hwpm/include/tegra_hwpm.h index 28f250a..bef1759 100644 --- a/drivers/tegra/hwpm/include/tegra_hwpm.h +++ b/drivers/tegra/hwpm/include/tegra_hwpm.h @@ -152,9 +152,9 @@ struct tegra_hwpm_ip_ops { u32 inst_element_index, u64 reg_offset, u32 *reg_data); /* - * fd - is used to store the - * file descriptor of the IP devctl node - * in QNX + * fd - is used to store the file descriptor of the IP devctl node in QNX. + * Default is -1, which indicates the IP has no debug node enabled for Reg ops. + * Set to 1 if IP has debug node enabled for Reg ops. */ int fd; };