diff options
author | Alex Iacobucci <alexiacobucci@google.com> | 2023-05-08 16:12:13 +0000 |
---|---|---|
committer | Alex Iacobucci <alexiacobucci@google.com> | 2023-05-11 16:24:52 +0000 |
commit | 85686ecbeb957744db1e357063135f4c585d4adb (patch) | |
tree | 74dc3ac8a76784a8fb8e1653b85b8c0936a2b942 | |
parent | 1f8e2acece85705d7e2505e8e10dd392609d08b6 (diff) | |
download | aoc-85686ecbeb957744db1e357063135f4c585d4adb.tar.gz |
aoc: add a debug print for prvdata pointerandroid-u-beta-3_r0.3android-u-beta-3_r0.2android-u-beta-2.1_r0.4android-u-beta-2.1_r0.3android-u-beta-2.1_r0.2android-gs-raviole-5.10-u-beta3android-gs-raviole-5.10-u-beta2android-gs-pantah-5.10-u-beta2android-gs-bluejay-5.10-u-beta3android-gs-bluejay-5.10-u-beta2
Bug: 279944255
Test: tested on device
Change-Id: Iefc5fd83f00f5b54c4ff4feee1e65b1571240721
Signed-off-by: Alex Iacobucci <alexiacobucci@google.com>
-rw-r--r-- | aoc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |