public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rust: pci: export ConfigSpace
@ 2026-01-31  2:20 Zijing Zhang
  2026-01-31  3:49 ` Alexandre Courbot
  0 siblings, 1 reply; 5+ messages in thread
From: Zijing Zhang @ 2026-01-31  2:20 UTC (permalink / raw)
  To: dakr; +Cc: gary, ojeda, linux-pci, rust-for-linux, linux-kernel

Re-export ConfigSpace from kernel::pci so users can name the returned
type from Device::config_space*().

Signed-off-by: Zijing Zhang <zijing.zhang@ry.rs>
---
 rust/kernel/pci.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
index f347c2f7c3a6..af74ddff6114 100644
--- a/rust/kernel/pci.rs
+++ b/rust/kernel/pci.rs
@@ -42,6 +42,7 @@
 };
 pub use self::io::{
     Bar,
+    ConfigSpace,
     ConfigSpaceKind,
     ConfigSpaceSize,
     Extended,
-- 
2.52.0


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

* Re: [PATCH] rust: pci: export ConfigSpace
  2026-01-31  2:20 [PATCH] rust: pci: export ConfigSpace Zijing Zhang
@ 2026-01-31  3:49 ` Alexandre Courbot
  0 siblings, 0 replies; 5+ messages in thread
From: Alexandre Courbot @ 2026-01-31  3:49 UTC (permalink / raw)
  To: Zijing Zhang; +Cc: dakr, gary, ojeda, linux-pci, rust-for-linux, linux-kernel

On Sat Jan 31, 2026 at 11:20 AM JST, Zijing Zhang wrote:
> Re-export ConfigSpace from kernel::pci so users can name the returned
> type from Device::config_space*().
>
> Signed-off-by: Zijing Zhang <zijing.zhang@ry.rs>

This should also have:

Fixes: 4dc0bacb1d3c ("rust: pci: add config space read/write support")

With that,

Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>

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

* [PATCH] rust: pci: export ConfigSpace
@ 2026-01-31  4:02 Zijing Zhang
  2026-01-31  4:57 ` Alexandre Courbot
  2026-01-31 16:16 ` Gary Guo
  0 siblings, 2 replies; 5+ messages in thread
From: Zijing Zhang @ 2026-01-31  4:02 UTC (permalink / raw)
  To: dakr, linux-pci, rust-for-linux; +Cc: acourbot, Zijing Zhang

Re-export ConfigSpace from kernel::pci so users can name the returned
type from Device::config_space*().

Fixes: 4dc0bacb1d3c ("rust: pci: add config space read/write support")
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Zijing Zhang <zijing.zhang@ry.rs>
---
 rust/kernel/pci.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
index f347c2f7c3a6..af74ddff6114 100644
--- a/rust/kernel/pci.rs
+++ b/rust/kernel/pci.rs
@@ -42,6 +42,7 @@
 };
 pub use self::io::{
     Bar,
+    ConfigSpace,
     ConfigSpaceKind,
     ConfigSpaceSize,
     Extended,
-- 
2.52.0


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

* Re: [PATCH] rust: pci: export ConfigSpace
  2026-01-31  4:02 Zijing Zhang
@ 2026-01-31  4:57 ` Alexandre Courbot
  2026-01-31 16:16 ` Gary Guo
  1 sibling, 0 replies; 5+ messages in thread
From: Alexandre Courbot @ 2026-01-31  4:57 UTC (permalink / raw)
  To: Zijing Zhang; +Cc: dakr, linux-pci, rust-for-linux

On Sat Jan 31, 2026 at 1:02 PM JST, Zijing Zhang wrote:
> Re-export ConfigSpace from kernel::pci so users can name the returned
> type from Device::config_space*().
>
> Fixes: 4dc0bacb1d3c ("rust: pci: add config space read/write support")
> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
> Signed-off-by: Zijing Zhang <zijing.zhang@ry.rs>

There was probably no need to resend, but since you did, the title
should have contained "[PATCH v2]".

No need to resend again. :)

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

* Re: [PATCH] rust: pci: export ConfigSpace
  2026-01-31  4:02 Zijing Zhang
  2026-01-31  4:57 ` Alexandre Courbot
@ 2026-01-31 16:16 ` Gary Guo
  1 sibling, 0 replies; 5+ messages in thread
From: Gary Guo @ 2026-01-31 16:16 UTC (permalink / raw)
  To: Zijing Zhang, dakr, linux-pci, rust-for-linux; +Cc: acourbot

On Sat Jan 31, 2026 at 4:02 AM GMT, Zijing Zhang wrote:
> Re-export ConfigSpace from kernel::pci so users can name the returned
> type from Device::config_space*().
>
> Fixes: 4dc0bacb1d3c ("rust: pci: add config space read/write support")
> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
> Signed-off-by: Zijing Zhang <zijing.zhang@ry.rs>

Please reference the initial bug report in tags:

Reported-by: Gary Guo <gary@garyguo.net>
Closes: https://lore.kernel.org/rust-for-linux/DG2D5ONS18FE.TC7K3O8V8SU1@garyguo.net/

Best,
Gary

> ---
>  rust/kernel/pci.rs | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
> index f347c2f7c3a6..af74ddff6114 100644
> --- a/rust/kernel/pci.rs
> +++ b/rust/kernel/pci.rs
> @@ -42,6 +42,7 @@
>  };
>  pub use self::io::{
>      Bar,
> +    ConfigSpace,
>      ConfigSpaceKind,
>      ConfigSpaceSize,
>      Extended,


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

end of thread, other threads:[~2026-01-31 16:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-31  2:20 [PATCH] rust: pci: export ConfigSpace Zijing Zhang
2026-01-31  3:49 ` Alexandre Courbot
  -- strict thread matches above, loose matches on Subject: below --
2026-01-31  4:02 Zijing Zhang
2026-01-31  4:57 ` Alexandre Courbot
2026-01-31 16:16 ` Gary Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox