From 52d1f0e2c1c45be1449e446d95114cda07d8be1a Mon Sep 17 00:00:00 2001 From: Viswanath L Date: Mon, 29 Apr 2024 07:41:00 +0000 Subject: [PATCH] nvadsp: Make function ptrs available in virt mode Some device specific programming was moved from os.c to dev-t18x.c as function pointers. Move the pointer assignments so that they are not skipped in virt mode. Bug 3682950 Change-Id: I8f2d0bde8cd37507d3bdfcd9ac7fb9fe344b891f Signed-off-by: Viswanath L Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3128039 GVS: Gerrit_Virtual_Submit Reviewed-by: Dara Ramesh --- drivers/platform/tegra/nvadsp/dev-t18x.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/platform/tegra/nvadsp/dev-t18x.c b/drivers/platform/tegra/nvadsp/dev-t18x.c index f1510184..c9fa4d91 100644 --- a/drivers/platform/tegra/nvadsp/dev-t18x.c +++ b/drivers/platform/tegra/nvadsp/dev-t18x.c @@ -629,6 +629,11 @@ static int nvadsp_dev_t18x_init(struct platform_device *pdev) struct device *dev = &pdev->dev; int ret = 0; + d->set_boot_vec = __set_boot_vec_t18x; + d->set_boot_freqs = __set_boot_freqs_t18x; + d->check_wfi_status = __check_wfi_status_t18x; + d->dump_core_state = __dump_core_state_t18x; + #ifdef CONFIG_TEGRA_VIRT_AUDIO_IVC if (is_tegra_hypervisor_mode()) { @@ -639,11 +644,6 @@ static int nvadsp_dev_t18x_init(struct platform_device *pdev) } #endif - d->set_boot_vec = __set_boot_vec_t18x; - d->set_boot_freqs = __set_boot_freqs_t18x; - d->check_wfi_status = __check_wfi_status_t18x; - d->dump_core_state = __dump_core_state_t18x; - d->assert_adsp = __assert_t18x_adsp; d->deassert_adsp = __deassert_t18x_adsp; d->adspall_rst = devm_reset_control_get(dev, "adspall");