dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Initial plumbing for implementing DRM connector APIs in Rust
@ 2025-08-18  5:04 Rahul Rameshbabu
  2025-08-18  5:04 ` [RFC PATCH 1/3] rust: drm: fix C header references in doc comments Rahul Rameshbabu
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Rahul Rameshbabu @ 2025-08-18  5:04 UTC (permalink / raw)
  To: rust-for-linux, dri-devel
  Cc: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, David Airlie,
	Simona Vetter, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich, Rahul Rameshbabu

Hello,

I am working on a drm_connector scoped backlight API in Rust. I have been
looking through Hans de Goede's previous efforts on this topic to help
guide my design. My hope is to enable backlight control over external
displays through DDC or USB Monitor Control Class while also supporting
internal panels. In parallel, I would like to improve the driver
probing/selection mechanism when there are different candidates for driving
a backlight device. This initial RFC is mainly intended to sanity check
that the plumbing I have chosen for extending the DRM connector
functionality in Rust seems reasonable.

I did toss in two doc comment cleanup patches in the mix. If these need to
be re-sent individually or split due to the multiple Fixes: tags, do not
hesitate to let me know.

Thanks,
Rahul Rameshbabu

Link: https://lore.kernel.org/rust-for-linux/20250808061223.3770-1-sergeantsagara@protonmail.com/
Link: https://binary-eater.github.io/tags/usb-monitor-control/
Link: https://lpc.events/event/16/contributions/1390/attachments/990/1916/kernel-recipes-backlight-2022-16x9.pdf

Rahul Rameshbabu (3):
  rust: drm: fix C header references in doc comments
  rust: pci: fix incorrect platform references in doc comments
  rust: drm: Introduce a Connector abstraction

 drivers/gpu/drm/drm_connector.c |   9 +++
 include/drm/drm_connector.h     |  20 +++++++
 rust/bindings/bindings_helper.h |   1 +
 rust/kernel/drm/connector.rs    | 103 ++++++++++++++++++++++++++++++++
 rust/kernel/drm/device.rs       |   2 +-
 rust/kernel/drm/driver.rs       |   2 +-
 rust/kernel/drm/file.rs         |   2 +-
 rust/kernel/drm/gem/mod.rs      |   2 +-
 rust/kernel/drm/ioctl.rs        |   2 +-
 rust/kernel/drm/mod.rs          |   2 +
 rust/kernel/pci.rs              |   6 +-
 11 files changed, 143 insertions(+), 8 deletions(-)
 create mode 100644 rust/kernel/drm/connector.rs


base-commit: c17b750b3ad9f45f2b6f7e6f7f4679844244f0b9
-- 
2.49.0



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-08-27  6:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18  5:04 [RFC PATCH 0/3] Initial plumbing for implementing DRM connector APIs in Rust Rahul Rameshbabu
2025-08-18  5:04 ` [RFC PATCH 1/3] rust: drm: fix C header references in doc comments Rahul Rameshbabu
2025-08-18  7:58   ` Miguel Ojeda
2025-08-18  5:04 ` [RFC PATCH 2/3] rust: pci: fix incorrect platform " Rahul Rameshbabu
2025-08-18  5:04 ` [RFC PATCH 3/3] rust: drm: Introduce a Connector abstraction Rahul Rameshbabu
2025-08-18  8:23 ` [RFC PATCH 0/3] Initial plumbing for implementing DRM connector APIs in Rust Miguel Ojeda
2025-08-19  9:06 ` Maxime Ripard
2025-08-20  4:46   ` Rahul Rameshbabu
2025-08-27  6:57     ` Maxime Ripard

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).