diff options
author | Andrey Smirnov <[email protected]> | 2017-04-04 07:22:33 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-04-08 18:51:00 +0200 |
commit | 6fe729c4bdae41b4c5a5ff21312f021a48c69399 (patch) | |
tree | 46e1fef43bf9104c00638fc2e40df99226833799 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e1dc9b08051a2c2e694edf48d1e704f07c7c143c (diff) |
serdev: Add serdev_device_write subroutine
Add serdev_device_write() a blocking call allowing to transfer
arbitraty amount of data (potentially exceeding amount that
serdev_device_write_buf can process in a single call)
To support that, also add serdev_device_write_wakeup().
Drivers wanting to use full extent of serdev_device_write
functionality are expected to provide serdev_device_write_wakeup() as
a sole handler of .write_wakeup event or call it as a part of driver's
custom .write_wakeup code.
Because serdev_device_write() subroutine is a superset of
serdev_device_write_buf() the patch re-impelements latter is terms of
the former. For drivers wanting to just use serdev_device_write_buf()
.write_wakeup handler is optional.
Cc: [email protected]
Cc: Guenter Roeck <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Rob Herring <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Andrey Smirnov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions