]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 556a0964e28c4441dcdd50fb07596fd042246bd5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/mailbox/qcom-apcs-ipc-mailbox.c

index 3d29b66984f7e67c9be14f1dc58cf652d117301d..b92b3154a71a559fe2c13cebbaa4725c74f6f657 100644 (file)
@@ -36,7 +36,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,
 };