mfd: rave-sp: Emulate CMD_GET_STATUS on device that don't support it
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Sat, 7 Jul 2018 02:41:08 +0000 (19:41 -0700)
committerLee Jones <lee.jones@linaro.org>
Fri, 27 Jul 2018 07:13:25 +0000 (08:13 +0100)
commit80d139b8638f01ec5e048e546aba6f2b6704079b
tree3641e0590845a89aeaf64a0e5da96b57528c5fc1
parent405dfd489921379fc4d44c58e7b84f5d7a39b5e1
mfd: rave-sp: Emulate CMD_GET_STATUS on device that don't support it

CMD_GET_STATUS is not supported by some devices implementing
RDU2-compatible ICD as well as "legacy" devices. To account for that
fact, add code that obtains the same information (app/bootloader FW
version) using several different commands.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rave-sp.c