Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b19ab986 authored by Yan He's avatar Yan He Committed by Gerrit - the friendly Code Review server
Browse files

msm: sps: correct device base address for register dumping



Correct the base address of BAM device when dump registers of the
BAM.

Change-Id: I12f49919a278b176bb85f353f5ce538f22ddc059
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent 35331024
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1162,7 +1162,7 @@ void bam_output_register_content(void *base, u32 ee)

	print_bam_test_bus_reg(base, 0);

	print_bam_selected_reg(dev->base, BAM_MAX_EES);
	print_bam_selected_reg(base, BAM_MAX_EES);

	num_pipes = bam_read_reg_field(base, NUM_PIPES, 0,
					BAM_NUM_PIPES);
@@ -1174,11 +1174,11 @@ void bam_output_register_content(void *base, u32 ee)

	if (!enhd_pipe || !pipe_attr)
		for (i = 0; i < num_pipes; i++)
			print_bam_pipe_selected_reg(dev->base, i);
			print_bam_pipe_selected_reg(base, i);
	else {
		for (i = 0; i < num_pipes; i++) {
			if (pipe_attr & (1UL << i))
				print_bam_pipe_selected_reg(dev->base, i);
				print_bam_pipe_selected_reg(base, i);
		}
	}
}