[U-Boot] [PATCH v5 02/11] reset: add reset_count()
Simon Glass
sjg at chromium.org
Fri Jun 2 02:56:17 UTC 2017
On 1 June 2017 at 05:36, <patrice.chotard at st.com> wrote:
> From: Patrice Chotard <patrice.chotard at st.com>
>
> Add reset_count() method to be able to get the number
> of resets contained into a resets property. This will allow
> to allocate the right amount of memory in order to keep resets
> reference. These resets reference can be used later on error path
> or in .remove callback to release these resets.
>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
> v5: _ replace fdtdec_parse_phandle_with_args() by dev_read_phandle_with_args()
> v4: _ add reset_count() method
>
> drivers/reset/reset-uclass.c | 13 +++++++++++++
> include/reset.h | 11 +++++++++++
> 2 files changed, 24 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list