]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
mailbox: qcom-apcs: fix max_register value
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Mon, 9 Sep 2019 09:08:50 +0000 (11:08 +0200)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 17 Sep 2019 05:54:29 +0000 (00:54 -0500)
The mailbox length is 0x1000 hence the max_register value is 0xFFC.

Fixes: c6a8b171ca8e ("mailbox: qcom: Convert APCS IPC driver to use
regmap")
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/qcom-apcs-ipc-mailbox.c

index 043b5a726ce226dcc13bffc072cc04d47db3d633..eeebafd546e56e47f0dec5a2679359c7702fbc20 100644 (file)
@@ -28,7 +28,7 @@ static const struct regmap_config apcs_regmap_config = {
        .reg_bits = 32,
        .reg_stride = 4,
        .val_bits = 32,
-       .max_register = 0x1000,
+       .max_register = 0xFFC,
        .fast_io = true,
 };