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>
This commit is contained in:
@@ -67,6 +67,8 @@ enum {
|
||||
struct dm_test_priv {
|
||||
int ping_total;
|
||||
int op_count[DM_TEST_OP_COUNT];
|
||||
int uclass_flag;
|
||||
int uclass_total;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -88,6 +90,7 @@ struct dm_test_uclass_priv {
|
||||
*
|
||||
* @sum: Test value used to check parent data works correctly
|
||||
* @flag: Used to track calling of parent operations
|
||||
* @uclass_flag: Used to track calling of parent operations by uclass
|
||||
*/
|
||||
struct dm_test_parent_data {
|
||||
int sum;
|
||||
|
||||
Reference in New Issue
Block a user