Re: [PATCH 3/3] sample: rust: Add GPIO consumer sample driver

From: Bartosz Golaszewski

Date: Thu Sep 10 2026 - 03:37:44 EST


On Sun, 6 Sep 2026 10:45:51 +0200, Kohei Ito <koheiito.dev@xxxxxxxxx> said:
> Add a sample driver to demonstrate the use of the Rust GPIO APIs.
>
> Signed-off-by: Kohei Ito <koheiito.dev@xxxxxxxxx>
> ---

I don't like samples as they rarely get built or tested. We seem to already
have kunit support for rust, wouldn't it make more sense to implement a kunit
module for rust GPIO abstractions? If we don't have provider abstractions, you
should be able to reuse gpio-sim as the GPIO controller for testing just by
instantiating simulated GPIO devices.

Bartosz