Commit Graph

8 Commits

Author SHA1 Message Date
Sergii Glushchenko
c2e8d01cb9 Fix clippy warnings and adjust coverage
Signed-off-by: Sergii Glushchenko <gsserge@amazon.com>
2022-01-19 13:30:06 +01:00
Viresh Kumar
be99550269 i2c: Improve test coverage
Add more tests to increase coverage.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-10 12:50:52 +05:30
Viresh Kumar
78da64c7f2 i2c: Always pass vring to process_requests()
For tests we can pass a non related vring to just make it run, hence no
need of making it optional. Always pass the vring.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-10 12:50:34 +05:30
Viresh Kumar
2898424f0a
Merge branch 'main' into i2c/logger 2022-01-06 15:08:19 +05:30
Viresh Kumar
8d8950b4cf i2c: Initialize env_logger
The i2c crate now uses log crate to publish error, info and warn
messages, but doesn't initialize a logger yet and these messages never
make it out.

Initialize the env_logger to see these messages.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-06 14:41:32 +05:30
Viresh Kumar
7492b83692 i2c: Fix build issues with vhost update
Update version of other dependencies and fix minor build issues.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-06 14:37:13 +05:30
dependabot[bot]
50312eadfc build(deps): bump vhost from 0.2.0 to 0.3.0
Bumps [vhost](https://github.com/rust-vmm/vhost) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/rust-vmm/vhost/releases)
- [Changelog](https://github.com/rust-vmm/vhost/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-vmm/vhost/compare/v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: vhost
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-06 14:37:13 +05:30
Viresh Kumar
677b897576 i2c: Move i2c to top folder
The workspace section in Rust documentation suggests adding new crates
in the top level directory itself instead of the src folder. Remove the
top level src folder.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-01-05 11:09:33 +05:30