remoteproc: core: Add ops to enable custom coredump functionality
authorSiddharth Gupta <sidgup@codeaurora.org>
Thu, 19 Nov 2020 21:05:32 +0000 (13:05 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 10 Dec 2020 19:14:04 +0000 (13:14 -0600)
commitadf60a870e9130c7883ec2ab798484e05f24db39
treee2942a288d33fb5cdc0f19fd622ff581950713f2
parent0a441514bc2b8a48ebe23c2dcb9feee6351d45b6
remoteproc: core: Add ops to enable custom coredump functionality

Each remoteproc might have different requirements for coredumps and might
want to choose the type of dumps it wants to collect. This change allows
remoteproc drivers to specify their own custom dump function to be executed
in place of rproc_coredump. If the coredump op is not specified by the
remoteproc driver it will be set to rproc_coredump by default.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Link: https://lore.kernel.org/r/1605819935-10726-2-git-send-email-sidgup@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h