]> asedeno.scripts.mit.edu Git - linux.git/commit
remoteproc: Cache resource table size
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 5 Jan 2018 23:57:59 +0000 (15:57 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 15 Jan 2018 17:29:29 +0000 (09:29 -0800)
commita4b24c7560ba64c3c54d8f90ee033a6f0565f8d3
tree7e702e463226973154bdd126f8d61f964865bd3b
parentb26210cda63564a7478486faaea713f6ea965633
remoteproc: Cache resource table size

We don't re-read the resource table during a recovery, so it is possible
in the recovery path that the resource table has a different size than
cached_table. Store the original size of cached_table to avoid these
getting out of sync.

Reviewed-By: Loic Pallardy <loic.pallardy@st.com>
Tested-By: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h