diff options
author | Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> | 2019-09-09 11:08:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 14:51:14 +0100 |
commit | 24d6f60b670d4f63940cc5ff2c28306c47be4b64 (patch) | |
tree | ed15483b500448491ed027ff47aea89fc2438869 | |
parent | f42b8aa3138cc90fc332f174ff76cd35a81ec385 (diff) | |
download | linux-stable-24d6f60b670d4f63940cc5ff2c28306c47be4b64.tar.gz linux-stable-24d6f60b670d4f63940cc5ff2c28306c47be4b64.tar.bz2 linux-stable-24d6f60b670d4f63940cc5ff2c28306c47be4b64.zip |
mailbox: qcom-apcs: fix max_register value
[ 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>
-rw-r--r-- | drivers/mailbox/qcom-apcs-ipc-mailbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 5255dcb551a7..d8b4f08f613b 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -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, }; |