summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Iacobucci <alexiacobucci@google.com>2023-05-08 16:12:13 +0000
committerAlex Iacobucci <alexiacobucci@google.com>2023-05-11 16:24:52 +0000
commit85686ecbeb957744db1e357063135f4c585d4adb (patch)
tree74dc3ac8a76784a8fb8e1653b85b8c0936a2b942
parent1f8e2acece85705d7e2505e8e10dd392609d08b6 (diff)
downloadaoc-85686ecbeb957744db1e357063135f4c585d4adb.tar.gz
Bug: 279944255 Test: tested on device Change-Id: Iefc5fd83f00f5b54c4ff4feee1e65b1571240721 Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
-rw-r--r--aoc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/aoc.c b/aoc.c
index 3ff4973..235b4ee 100644
--- a/aoc.c
+++ b/aoc.c
@@ -216,6 +216,8 @@ struct aoc_prvdata {
int reset_wait_time_index;
};
+struct aoc_prvdata *aoc_prvdata_copy;
+
/* TODO: Reduce the global variables (move into a driver structure) */
/* Resources found from the device tree */
static struct resource *aoc_sram_resource;
@@ -1587,6 +1589,7 @@ static void acpm_aoc_reset_callback(unsigned int *cmd, unsigned int size)
return;
prvdata = platform_get_drvdata(aoc_platform_device);
+ pr_info("AOC prvdata pointer is: %p (expected: %p)", prvdata, aoc_prvdata_copy);
prvdata->aoc_reset_done = true;
wake_up(&prvdata->aoc_reset_wait_queue);
}
@@ -3171,6 +3174,7 @@ static int aoc_platform_probe(struct platform_device *pdev)
rc = -ENOMEM;
goto err_failed_prvdata_alloc;
}
+ aoc_prvdata_copy = prvdata;
prvdata->dev = dev;
prvdata->disable_monitor_mode = 0;