drivers: qcom: rpmh: allow requests to be sent asynchronously
authorLina Iyer <ilina@codeaurora.org>
Wed, 20 Jun 2018 13:27:05 +0000 (18:57 +0530)
committerAndy Gross <andy.gross@linaro.org>
Sat, 21 Jul 2018 18:33:27 +0000 (13:33 -0500)
commit564b5e24ccd4c840a7f84dfd952e5715dd9b3966
tree63a2a1d5c80d7db7c0cc350f4512a0efb6f7365f
parent600513dfeef33cb05c694d1b13d319b9e8cde536
drivers: qcom: rpmh: allow requests to be sent asynchronously

Platform drivers that want to send a request but do not want to block
until the RPMH request completes have now a new API -
rpmh_write_async().

The API allocates memory and send the requests and returns the control
back to the platform driver. The tx_done callback from the controller is
handled in the context of the controller's thread and frees the
allocated memory. This API allows RPMH requests from atomic contexts as
well.

Signed-off-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/rpmh-internal.h
drivers/soc/qcom/rpmh.c
include/soc/qcom/rpmh.h