diff options
| author | Alain Volmat <[email protected]> | 2020-08-03 07:17:55 +0200 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2020-09-09 10:38:28 +0200 |
| commit | 2a71593da34d473461f2f5c3dbb53b883596188a (patch) | |
| tree | 11499f7b30521f57203094e4694ccc33f27c26c2 /tools/perf/scripts/python | |
| parent | e6277308ac214af04516564c516a0ff5f753d009 (diff) | |
i2c: smbus: add core function handling SMBus host-notify
SMBus Host-Notify protocol, from the adapter point of view
consist of receiving a message from a client, including the
client address and some other data.
It can be simply handled by creating a new slave device
and registering a callback performing the parsing of the
message received from the client.
This commit introduces two new core functions
* i2c_new_slave_host_notify_device
* i2c_free_slave_host_notify_device
that take care of registration of the new slave device and
callback and will call i2c_handle_smbus_host_notify once a
Host-Notify event is received.
Signed-off-by: Alain Volmat <[email protected]>
Reviewed-by: Pierre-Yves MORDRET <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions