dm: core: Allow uclass to set up a device's child before it is probed
Some buses need to set up their devices before they can be used. This setup may well be common to all buses in a particular uclass. Support a common pre-probe method for the uclass, called before any bus devices are probed. Signed-off-by:Simon Glass <sjg@chromium.org> Reviewed-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
Showing
- drivers/core/device.c 4 additions, 0 deletionsdrivers/core/device.c
- drivers/core/uclass.c 13 additions, 0 deletionsdrivers/core/uclass.c
- include/dm/test.h 3 additions, 0 deletionsinclude/dm/test.h
- include/dm/uclass-internal.h 11 additions, 0 deletionsinclude/dm/uclass-internal.h
- include/dm/uclass.h 1 addition, 0 deletionsinclude/dm/uclass.h
- test/dm/bus.c 46 additions, 0 deletionstest/dm/bus.c
- test/dm/test-fdt.c 7 additions, 0 deletionstest/dm/test-fdt.c
Loading
Please register or sign in to comment