summaryrefslogtreecommitdiff
path: root/include/dm/test.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-01-25 18:27:10 +0300
committerSimon Glass <sjg@chromium.org>2015-01-30 03:09:56 +0300
commit83c7e434c9dd3ca81f8b763e23c1881b973bcf2f (patch)
treec0fc096ee51bbcd66ccabd77826e236f49329845 /include/dm/test.h
parent1603bf3cc189da65362b83b85831e094a2fe8516 (diff)
downloadu-boot-83c7e434c9dd3ca81f8b763e23c1881b973bcf2f.tar.xz
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>
Diffstat (limited to 'include/dm/test.h')
-rw-r--r--include/dm/test.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dm/test.h b/include/dm/test.h
index f08c05da81..707c69e07f 100644
--- a/include/dm/test.h
+++ b/include/dm/test.h
@@ -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;