Hi Jagan, On 19 August 2018 at 07:57, Jagan Teki <ja...@amarulasolutions.com> wrote: > Getting a RESET by index with device is not straight forward > for some use-cases like handling clock operations for child > node in parent driver. So we need to process the child node > in parent probe via ofnode and process RESET operation for child > without udevice but with ofnode. > > So add reset_get_by_index_nodev() and move the common code > in reset_get_by_index_tail() to use for reset_get_by_index() > > Cc: Simon Glass <s...@chromium.org> > Cc: Joe Hershberger <joe.hershber...@ni.com> > Signed-off-by: Jagan Teki <ja...@amarulasolutions.com> > --- > drivers/reset/reset-uclass.c | 53 ++++++++++++++++++++++++------------ > include/reset.h | 16 +++++++++++ > 2 files changed, 52 insertions(+), 17 deletions(-) >
Please add a test for the new function you add. Regards, Simon _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot