diff options
| author | Oded Gabbay <[email protected]> | 2019-02-26 11:23:34 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-02-26 11:35:03 +0100 |
| commit | 4398e7057d66050b4121b97da048bfe3fdaf4c8d (patch) | |
| tree | 87dfea73893e480b56102f03d42335c44a8b49ac /tools/perf/scripts/python/netdev-times.py | |
| parent | 8737d037209fe97a98863047cc2789b38c3d3681 (diff) | |
habanalabs: return error when failing to read/write i2c
The driver can't read/write from i2c if the device is in reset or
disabled. Therefore, return -EBUSY in those cases instead of 0.
This change also fixes a smatch warning about uninitialized variable.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions