diff options
author | Simon Glass | 2022-03-04 08:43:03 -0700 |
---|---|---|
committer | Tom Rini | 2022-03-10 08:28:36 -0500 |
commit | 5b896ed5856f768cdd55cdeb44c5f8f6b6a7a18a (patch) | |
tree | 427918a7828619a8620cd9b95d547539c9eb6733 /common | |
parent | 5a4219043d659514316e41d3d09866030c773e78 (diff) |
event: Add events for device probe/remove
Generate events when devices are probed or removed, allowing hooks
to be added for these situations.
This is controlled by the DM_EVENT config option.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/event.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/event.c b/common/event.c index 366be245696..737d3ac9eaa 100644 --- a/common/event.c +++ b/common/event.c @@ -24,6 +24,12 @@ DECLARE_GLOBAL_DATA_PTR; const char *const type_name[] = { "none", "test", + + /* Events related to driver model */ + "dm_pre_probe", + "dm_post_probe", + "dm_pre_remove", + "dm_post_remove", }; _Static_assert(ARRAY_SIZE(type_name) == EVT_COUNT, "event type_name size"); |