Re: [PATCH v5 1/4] rust: pci: provide access to PCI Class and Class-related items

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/21/25 3:51 AM, Danilo Krummrich wrote:
On Thu Aug 21, 2025 at 6:42 AM CEST, John Hubbard wrote:
Allow callers to write Class::STORAGE_SCSI instead of
bindings::PCI_CLASS_STORAGE_SCSI, for example.

New APIs:
     Class::STORAGE_SCSI, Class::NETWORK_ETHERNET, etc.
     Class::as_raw()
     Class: From<u32> for Class
     ClassMask: Full, ClassSubclass
     Device::pci_class()

Cc: Danilo Krummrich <dakr@xxxxxxxxxx>
Cc: Alexandre Courbot <acourbot@xxxxxxxxxx>
Cc: Elle Rhumsaa <elle@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
---
  rust/kernel/pci.rs    |  10 ++
  rust/kernel/pci/id.rs | 239 ++++++++++++++++++++++++++++++++++++++++++

Please add rust/kernel/pci/ to the maintainers entry.

OK.


(Would have done on apply, but I have another comment on patch 3.)

  2 files changed, 249 insertions(+)
  create mode 100644 rust/kernel/pci/id.rs

thanks,
--
John Hubbard





[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux