On 21 June 2017 at 06:42, <patrice.chot...@st.com> wrote: > From: Patrice Chotard <patrice.chot...@st.com> > > use array to save deasserted resets reference in order to > assert them in case of error during probe() or during driver > removal. > > Signed-off-by: Patrice Chotard <patrice.chot...@st.com> > --- > v9: _ remove useless reset_free() when a reset is correctly requested and > deasserted > _ replace reset_assert_all() by reset_release_all() > > v8: _ rework error path by propagating the initial error code until the > end of probe() > _ replace devm_kmalloc() by devm_kcalloc() > > v7: _ replace reset_count() by ofnode_count_phandle_with_args() > > v6: _ none > > v5: _ none > > v4: _ update the memory allocation for deasserted resets. Replace lists > by arrays. > _ usage of new RESET methods reset_assert_all() and clk_disable_all(). > > v3: _ extract in this patch the RESET support add-on from previous patch 5 > _ keep deasserted resets reference in list in order to > assert resets in error path or in .remove callback > > v2: _ add error path management > _ add .remove callback > > drivers/usb/host/ohci-generic.c | 45 > +++++++++++++++++++++++++++++++++++++++-- > 1 file changed, 43 insertions(+), 2 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot