remoteproc: Pass size and offset as arguments to segment dump function
authorRishabh Bhatnagar <rishabhb@codeaurora.org>
Thu, 16 Jul 2020 22:20:33 +0000 (15:20 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 21 Jul 2020 21:03:37 +0000 (14:03 -0700)
commit76abf9cea6c8215ea45b9359f11f0e30127c544a
tree1389f920bbae5604b0c074d6451de3b052714c09
parent7ac516d39dd35450596a2dbb9dedea2c85eab1ea
remoteproc: Pass size and offset as arguments to segment dump function

Change the segment dump API signature to include size and offset
arguments. Refactor the qcom_q6v5_mss driver to use these
arguments while copying the segment. Doing this lays the ground
work for "inline" coredump functionality being added in the next
patch.

Tested-by: Sibi Sankar <sibis@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Sibi Sankar <sibis@codeaurora.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Link: https://lore.kernel.org/r/1594938035-7327-4-git-send-email-rishabhb@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_mss.c
drivers/remoteproc/remoteproc_coredump.c
include/linux/remoteproc.h