mfd: qcom_rpm: Parametrize also ack selector size
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Jun 2016 06:27:17 +0000 (08:27 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 29 Jun 2016 09:16:47 +0000 (10:16 +0100)
commitf37be01e6dc606f2fcc5e95c9933d948ce19bd35
tree41ec39f826b8a43df00173883dc4817748599d60
parent0a58da1e2f25f213fb72d7d6a18dff9562621215
mfd: qcom_rpm: Parametrize also ack selector size

The RPM has two sets of selectors (IPC bit fields): request and
acknowledge. Apparently, some models use 4*32 bit words for select
and some use 7*32 bit words for request, but all use 7*32 words
for acknowledge bits.

So apparently you can on the models with requests of 4*32 select
bits send 4*32 messages and get 7*32 different replies, so on ACK
interrupt, 7*32 bit words need to be read. This is how the vendor
code apparently works.

Cc: stable@vger.kernel.org
Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/qcom_rpm.c