linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/3] rust: Build PHY device tables by using module_device_table macro
@ 2025-06-23  6:09 FUJITA Tomonori
  2025-06-23  6:09 ` [PATCH v1 1/3] rust: device_id: make DRIVER_DATA_OFFSET optional FUJITA Tomonori
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: FUJITA Tomonori @ 2025-06-23  6:09 UTC (permalink / raw)
  To: alex.gaynor, dakr, gregkh, ojeda, rafael, robh, saravanak
  Cc: a.hindborg, aliceryhl, bhelgaas, bjorn3_gh, boqun.feng,
	david.m.ertman, devicetree, gary, ira.weiny, kwilczynski, leon,
	linux-kernel, linux-pci, lossin, netdev, rust-for-linux, tmgross

Build PHY device tables by using module_device_table macro.

The PHY abstractions have been generating their own device tables
manually instead of using the module_device_table macro provided by
the device_id crate. However, the format of device tables occasionally
changes [1] [2], requiring updates to both the device_id crate and the custom
format used by the PHY abstractions, which is cumbersome to maintain.

[1]: https://lore.kernel.org/lkml/20241119235705.1576946-14-masahiroy@kernel.org/
[2]: https://lore.kernel.org/lkml/6e2f70b07a710e761eb68d089d96cee7b27bb2d5.1750511018.git.legion@kernel.org/

FUJITA Tomonori (3):
  rust: device_id: make DRIVER_DATA_OFFSET optional
  rust: net::phy represent DeviceId as transparent wrapper over
    mdio_device_id
  rust: net::phy Change module_phy_driver macro to use
    module_device_table macro

 rust/kernel/auxiliary.rs |   6 ++-
 rust/kernel/device_id.rs |  26 ++++++----
 rust/kernel/net/phy.rs   | 109 ++++++++++++++++++++-------------------
 rust/kernel/of.rs        |   3 +-
 rust/kernel/pci.rs       |   3 +-
 5 files changed, 79 insertions(+), 68 deletions(-)


base-commit: dc35ddcf97e99b18559d0855071030e664aae44d
-- 
2.43.0


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

end of thread, other threads:[~2025-07-04  0:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23  6:09 [PATCH v1 0/3] rust: Build PHY device tables by using module_device_table macro FUJITA Tomonori
2025-06-23  6:09 ` [PATCH v1 1/3] rust: device_id: make DRIVER_DATA_OFFSET optional FUJITA Tomonori
2025-07-03 22:15   ` Danilo Krummrich
2025-07-03 23:41     ` FUJITA Tomonori
2025-07-04  0:19       ` Danilo Krummrich
2025-06-23  6:09 ` [PATCH v1 2/3] rust: net::phy Represent DeviceId as transparent wrapper over mdio_device_id FUJITA Tomonori
2025-06-23  6:09 ` [PATCH v1 3/3] rust: net::phy Change module_phy_driver macro to use module_device_table macro FUJITA Tomonori
2025-06-23  9:21   ` Miguel Ojeda
2025-06-23 13:02     ` FUJITA Tomonori

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