Re: [PATCH v5 1/3] rust: i2c: add basic I2C device and driver abstractions

From: Daniel Almeida

Date: Thu Sep 11 2025 - 15:25:22 EST


Hi Igor,

> On 11 Sep 2025, at 12:49, Igor Korotin <igor.korotin.linux@xxxxxxxxx> wrote:
>
> Implement the core abstractions needed for I2C drivers, including:
>
> * `i2c::Driver` — the trait drivers must implement, including `probe`
>
> * `i2c::I2cClient` — a safe wrapper around `struct i2c_client`
>
> * `i2c::Adapter` — implements `driver::RegistrationOps` to hook into the
> generic `driver::Registration` machinery
>
> * `i2c::DeviceId` — a `RawDeviceIdIndex` implementation for I2C device IDs
>
> Signed-off-by: Igor Korotin <igor.korotin.linux@xxxxxxxxx>

I’m a bit swamped for the next 2-3 days, but I will review this soon.

Feel free to ping me otherwise.

— Daniel