mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-28 06:23:42 -04:00
Implement the basic serial device bus abstractions required to write a serial device bus device driver with or without the need for initial device data. This includes the following data structures: The `serdev::Driver` trait represents the interface to the driver. The `serdev::Device` abstraction represents a `struct serdev_device`. In order to provide the Serdev specific parts to a generic `driver::Registration` the `driver::RegistrationOps` trait is implemented by `serdev::Adapter`. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Markus Probst <markus.probst@posteo.de> Link: https://patch.msgid.link/20260718-rust_serdev-v16-1-5809384d2e1b@posteo.de Signed-off-by: Danilo Krummrich <dakr@kernel.org>
33 lines
767 B
Plaintext
33 lines
767 B
Plaintext
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Serial bus device driver configuration
|
|
#
|
|
menuconfig SERIAL_DEV_BUS
|
|
tristate "Serial device bus"
|
|
help
|
|
Core support for devices connected via a serial port.
|
|
|
|
Note that you typically also want to enable TTY port controller support.
|
|
|
|
config RUST_SERIAL_DEV_BUS_ABSTRACTIONS
|
|
bool "Rust Serial device bus abstractions"
|
|
depends on RUST
|
|
select SERIAL_DEV_BUS
|
|
help
|
|
This enables the Rust abstraction for the serial device bus API.
|
|
|
|
if SERIAL_DEV_BUS
|
|
|
|
config SERIAL_DEV_CTRL_TTYPORT
|
|
bool "Serial device TTY port controller"
|
|
help
|
|
Say Y here if you want to use the Serial device bus with common TTY
|
|
drivers (e.g. serial drivers).
|
|
|
|
If unsure, say Y.
|
|
depends on TTY
|
|
depends on SERIAL_DEV_BUS != m
|
|
default y
|
|
|
|
endif
|