* [PATCH v1 0/4] rust: Add basic I2C driver abstractions
[not found] <20250620150914.276272-1-igor.korotin.linux@gmail.com>
@ 2025-06-26 17:33 ` Igor Korotin
2025-06-26 17:47 ` Igor Korotin
0 siblings, 1 reply; 3+ messages in thread
From: Igor Korotin @ 2025-06-26 17:33 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor, Wolfram Sang
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
Greg Kroah-Hartman, Viresh Kumar, Asahi Lina,
Wedson Almeida Filho, Alex Hung, Tamir Duberstein, Xiangfei Ding,
linux-kernel, rust-for-linux, linux-i2c
This patch series introduces basic Rust I2C driver abstractions
and optional ACPI match-table support and provides a sample driver
demonstrating both OF and ACPI binding
Currently Rust I2C abstractions support only Open Firmware OF device
matching. This series splits the work into four patches so that the
core abstractions and sample driver can land immediately while ACPI
integration may be reviewed once the ACPI macros are upstream
Changes include
- core I2C abstractions `i2c::Device` `i2c::Driver` `i2c::Adapter`
built on `struct i2c_client` and `struct i2c_driver`
- a standalone Rust sample driver exercising Legacy I2C ID and OF ID
matching
- optional ACPI ID-table support in the `i2c::Driver` abstraction
- ACPI-enabled sample driver showing `kernel::acpi_device_table!`
usage
This separation lets maintainers review and merge the non-ACPI portions
immediately while patches 3 and 4 both depending on the ACPI
infrastructure can be queued once the ACPI macros are upstream
Patch series:
1 rust: i2c: add basic I2C device and driver abstractions
2 samples: rust: add I2C sample driver (OF only)
3 rust: i2c: support ACPI match-table in driver abstractions
Depends-on: 20250620152425.285683-1-igor.korotin.linux@gmail.com
4 samples: rust: show ACPI ID-table in I2C sample driver
Depends-on: 20250620152425.285683-1-igor.korotin.linux@gmail.com
Igor Korotin (4):
rust: i2c: add basic I2C device and driver abstractions
samples: rust: add Rust I2C sample driver
rust: i2c: ACPI ID-table support for I2C abstractions
samples: rust: show ACPI ID-table in I2C sample driver
MAINTAINERS | 3 +
rust/bindings/bindings_helper.h | 1 +
rust/helpers/helpers.c | 1 +
rust/helpers/i2c.c | 15 ++
rust/kernel/i2c.rs | 386 ++++++++++++++++++++++++++++++++
rust/kernel/lib.rs | 2 +
samples/rust/Kconfig | 11 +
samples/rust/Makefile | 1 +
samples/rust/rust_driver_i2c.rs | 69 ++++++
9 files changed, 489 insertions(+)
create mode 100644 rust/helpers/i2c.c
create mode 100644 rust/kernel/i2c.rs
create mode 100644 samples/rust/rust_driver_i2c.rs
base-commit: 63dafeb392139b893a73b6331f347613f0929702
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v1 0/4] rust: Add basic I2C driver abstractions
@ 2025-06-26 17:46 Igor Korotin
0 siblings, 0 replies; 3+ messages in thread
From: Igor Korotin @ 2025-06-26 17:46 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor, Wolfram Sang
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
Greg Kroah-Hartman, Viresh Kumar, Asahi Lina,
Wedson Almeida Filho, Alex Hung, Tamir Duberstein, Xiangfei Ding,
linux-kernel, rust-for-linux, linux-i2c
This patch series introduces basic Rust I2C driver abstractions
and optional ACPI match-table support and provides a sample driver
demonstrating both OF and ACPI binding
Currently Rust I2C abstractions support only Open Firmware OF device
matching. This series splits the work into four patches so that the
core abstractions and sample driver can land immediately while ACPI
integration may be reviewed once the ACPI macros are upstream
Changes include
- core I2C abstractions `i2c::Device` `i2c::Driver` `i2c::Adapter`
built on `struct i2c_client` and `struct i2c_driver`
- a standalone Rust sample driver exercising Legacy I2C ID and OF ID
matching
- optional ACPI ID-table support in the `i2c::Driver` abstraction
- ACPI-enabled sample driver showing `kernel::acpi_device_table!`
usage
This separation lets maintainers review and merge the non-ACPI portions
immediately while patches 3 and 4 both depending on the ACPI
infrastructure can be queued once the ACPI macros are upstream
Patch series:
1 rust: i2c: add basic I2C device and driver abstractions
2 samples: rust: add I2C sample driver (OF only)
3 rust: i2c: support ACPI match-table in driver abstractions
Depends-on: 20250620152425.285683-1-igor.korotin.linux@gmail.com
4 samples: rust: show ACPI ID-table in I2C sample driver
Depends-on: 20250620152425.285683-1-igor.korotin.linux@gmail.com
Igor Korotin (4):
rust: i2c: add basic I2C device and driver abstractions
samples: rust: add Rust I2C sample driver
rust: i2c: ACPI ID-table support for I2C abstractions
samples: rust: show ACPI ID-table in I2C sample driver
MAINTAINERS | 3 +
rust/bindings/bindings_helper.h | 1 +
rust/helpers/helpers.c | 1 +
rust/helpers/i2c.c | 15 ++
rust/kernel/i2c.rs | 386 ++++++++++++++++++++++++++++++++
rust/kernel/lib.rs | 2 +
samples/rust/Kconfig | 11 +
samples/rust/Makefile | 1 +
samples/rust/rust_driver_i2c.rs | 69 ++++++
9 files changed, 489 insertions(+)
create mode 100644 rust/helpers/i2c.c
create mode 100644 rust/kernel/i2c.rs
create mode 100644 samples/rust/rust_driver_i2c.rs
base-commit: 63dafeb392139b893a73b6331f347613f0929702
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1 0/4] rust: Add basic I2C driver abstractions
2025-06-26 17:33 ` [PATCH v1 0/4] rust: Add basic I2C driver abstractions Igor Korotin
@ 2025-06-26 17:47 ` Igor Korotin
0 siblings, 0 replies; 3+ messages in thread
From: Igor Korotin @ 2025-06-26 17:47 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor, Wolfram Sang
Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
Greg Kroah-Hartman, Viresh Kumar, Asahi Lina,
Wedson Almeida Filho, Alex Hung, Tamir Duberstein, Xiangfei Ding,
linux-kernel, rust-for-linux, linux-i2c
On 6/26/25 18:33, Igor Korotin wrote:
> This patch series introduces basic Rust I2C driver abstractions
> and optional ACPI match-table support and provides a sample driver
> demonstrating both OF and ACPI binding
>
> Currently Rust I2C abstractions support only Open Firmware OF device
> matching. This series splits the work into four patches so that the
> core abstractions and sample driver can land immediately while ACPI
> integration may be reviewed once the ACPI macros are upstream
>
> Changes include
> - core I2C abstractions `i2c::Device` `i2c::Driver` `i2c::Adapter`
> built on `struct i2c_client` and `struct i2c_driver`
> - a standalone Rust sample driver exercising Legacy I2C ID and OF ID
> matching
> - optional ACPI ID-table support in the `i2c::Driver` abstraction
> - ACPI-enabled sample driver showing `kernel::acpi_device_table!`
> usage
>
> This separation lets maintainers review and merge the non-ACPI portions
> immediately while patches 3 and 4 both depending on the ACPI
> infrastructure can be queued once the ACPI macros are upstream
>
> Patch series:
>
> 1 rust: i2c: add basic I2C device and driver abstractions
> 2 samples: rust: add I2C sample driver (OF only)
> 3 rust: i2c: support ACPI match-table in driver abstractions
> Depends-on: 20250620152425.285683-1-igor.korotin.linux@gmail.com
> 4 samples: rust: show ACPI ID-table in I2C sample driver
> Depends-on: 20250620152425.285683-1-igor.korotin.linux@gmail.com
>
> Igor Korotin (4):
> rust: i2c: add basic I2C device and driver abstractions
> samples: rust: add Rust I2C sample driver
> rust: i2c: ACPI ID-table support for I2C abstractions
> samples: rust: show ACPI ID-table in I2C sample driver
>
> MAINTAINERS | 3 +
> rust/bindings/bindings_helper.h | 1 +
> rust/helpers/helpers.c | 1 +
> rust/helpers/i2c.c | 15 ++
> rust/kernel/i2c.rs | 386 ++++++++++++++++++++++++++++++++
> rust/kernel/lib.rs | 2 +
> samples/rust/Kconfig | 11 +
> samples/rust/Makefile | 1 +
> samples/rust/rust_driver_i2c.rs | 69 ++++++
> 9 files changed, 489 insertions(+)
> create mode 100644 rust/helpers/i2c.c
> create mode 100644 rust/kernel/i2c.rs
> create mode 100644 samples/rust/rust_driver_i2c.rs
>
>
> base-commit: 63dafeb392139b893a73b6331f347613f0929702
Please ignore. Was sent by mistake.
Thanks
Igor
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-26 17:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250620150914.276272-1-igor.korotin.linux@gmail.com>
2025-06-26 17:33 ` [PATCH v1 0/4] rust: Add basic I2C driver abstractions Igor Korotin
2025-06-26 17:47 ` Igor Korotin
2025-06-26 17:46 Igor Korotin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).