* [PATCH] rust: pci: fix incorrect platform references in doc comments
@ 2025-09-13 17:26 Rahul Rameshbabu
2025-09-13 19:08 ` Miguel Ojeda
0 siblings, 1 reply; 6+ messages in thread
From: Rahul Rameshbabu @ 2025-09-13 17:26 UTC (permalink / raw)
To: rust-for-linux, linux-pci
Cc: Danilo Krummrich, Bjorn Helgaas, Krzysztof Wilczyński,
Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo,
Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
Trevor Gross, Rahul Rameshbabu
Substitute 'platform' with 'pci' where appropriate in the comments.
Signed-off-by: Rahul Rameshbabu <sergeantsagara@protonmail.com>
Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions")
Fixes: 18ebb25dfa18 ("rust: pci: implement Driver::unbind()")
---
rust/kernel/pci.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
index 887ee611b553..658e806a5da7 100644
--- a/rust/kernel/pci.rs
+++ b/rust/kernel/pci.rs
@@ -240,11 +240,11 @@ pub trait Driver: Send {
/// PCI driver probe.
///
- /// Called when a new platform device is added or discovered.
- /// Implementers should attempt to initialize the device here.
+ /// Called when a new pci device is added or discovered. Implementers should
+ /// attempt to initialize the device here.
fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> Result<Pin<KBox<Self>>>;
- /// Platform driver unbind.
+ /// PCI driver unbind.
///
/// Called when a [`Device`] is unbound from its bound [`Driver`]. Implementing this callback
/// is optional.
base-commit: 099381a08db3539c6aab6616c94d7950d74fcd2d
--
2.47.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] rust: pci: fix incorrect platform references in doc comments 2025-09-13 17:26 [PATCH] rust: pci: fix incorrect platform references in doc comments Rahul Rameshbabu @ 2025-09-13 19:08 ` Miguel Ojeda 2025-09-14 3:26 ` Rahul Rameshbabu 2025-09-15 5:29 ` Manivannan Sadhasivam 0 siblings, 2 replies; 6+ messages in thread From: Miguel Ojeda @ 2025-09-13 19:08 UTC (permalink / raw) To: Rahul Rameshbabu Cc: rust-for-linux, linux-pci, Danilo Krummrich, Bjorn Helgaas, Krzysztof Wilczyński, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross On Sat, Sep 13, 2025 at 7:26 PM Rahul Rameshbabu <sergeantsagara@protonmail.com> wrote: > > Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions") > Fixes: 18ebb25dfa18 ("rust: pci: implement Driver::unbind()") These do not point to the same set of stable releases -- one cannot be backported to 6.16. In these cases, it is best to split the fix into two. And in the one that can be, you probably want to add Cc: stable so that Greg's bot doesn't detect it :) Thanks! Cheers, Miguel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: pci: fix incorrect platform references in doc comments 2025-09-13 19:08 ` Miguel Ojeda @ 2025-09-14 3:26 ` Rahul Rameshbabu 2025-09-15 5:29 ` Manivannan Sadhasivam 1 sibling, 0 replies; 6+ messages in thread From: Rahul Rameshbabu @ 2025-09-14 3:26 UTC (permalink / raw) To: Miguel Ojeda Cc: rust-for-linux, linux-pci, Danilo Krummrich, Bjorn Helgaas, Krzysztof Wilczyński, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross On Sat, 13 Sep, 2025 21:08:46 +0200 "Miguel Ojeda" <miguel.ojeda.sandonis@gmail.com> wrote: > On Sat, Sep 13, 2025 at 7:26 PM Rahul Rameshbabu > <sergeantsagara@protonmail.com> wrote: >> >> Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions") >> Fixes: 18ebb25dfa18 ("rust: pci: implement Driver::unbind()") > > These do not point to the same set of stable releases -- one cannot be > backported to 6.16. In these cases, it is best to split the fix into > two. > > And in the one that can be, you probably want to add Cc: stable so > that Greg's bot doesn't detect it :) Thanks Miguel! Just sent out the two patches. > > Thanks! > > Cheers, > Miguel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: pci: fix incorrect platform references in doc comments 2025-09-13 19:08 ` Miguel Ojeda 2025-09-14 3:26 ` Rahul Rameshbabu @ 2025-09-15 5:29 ` Manivannan Sadhasivam 2025-09-15 6:28 ` Miguel Ojeda 1 sibling, 1 reply; 6+ messages in thread From: Manivannan Sadhasivam @ 2025-09-15 5:29 UTC (permalink / raw) To: Miguel Ojeda Cc: Rahul Rameshbabu, rust-for-linux, linux-pci, Danilo Krummrich, Bjorn Helgaas, Krzysztof Wilczyński, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross On Sat, Sep 13, 2025 at 09:08:46PM GMT, Miguel Ojeda wrote: > On Sat, Sep 13, 2025 at 7:26 PM Rahul Rameshbabu > <sergeantsagara@protonmail.com> wrote: > > > > Fixes: 1bd8b6b2c5d3 ("rust: pci: add basic PCI device / driver abstractions") > > Fixes: 18ebb25dfa18 ("rust: pci: implement Driver::unbind()") > > These do not point to the same set of stable releases -- one cannot be > backported to 6.16. In these cases, it is best to split the fix into > two. > > And in the one that can be, you probably want to add Cc: stable so > that Greg's bot doesn't detect it :) > Why should a spelling fix be backported to stable? The stable kernel rules explicitly states that these kind of fixes should *not* be backported: - No "trivial" fixes without benefit for users (spelling changes, whitespace cleanups, etc). I will suggest to Cc: <stable+noautosel@kernel.org> to make the tools skip this patch instead. - Mani -- மணிவண்ணன் சதாசிவம் ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: pci: fix incorrect platform references in doc comments 2025-09-15 5:29 ` Manivannan Sadhasivam @ 2025-09-15 6:28 ` Miguel Ojeda 2025-09-15 6:58 ` Manivannan Sadhasivam 0 siblings, 1 reply; 6+ messages in thread From: Miguel Ojeda @ 2025-09-15 6:28 UTC (permalink / raw) To: Manivannan Sadhasivam Cc: Rahul Rameshbabu, rust-for-linux, linux-pci, Danilo Krummrich, Bjorn Helgaas, Krzysztof Wilczyński, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross On Mon, Sep 15, 2025 at 7:29 AM Manivannan Sadhasivam <mani@kernel.org> wrote: > > Why should a spelling fix be backported to stable? The stable kernel rules > explicitly states that these kind of fixes should *not* be backported: > > - No "trivial" fixes without benefit for users (spelling changes, whitespace > cleanups, etc). I am aware, but the stable team has autoselected a similar fix in the past (and I asked them about it, precisely because of the rules above). For typos outside doc comments, I wouldn't tag it (but they may still autoselect it). For typos in rendered docs like this one, especially one that is not just a spelling one (like this one), I think it is OK either way, and a bit more worth it since these are meant to be rendered unlike implementation comments. Thus, since this one was in the fuzzy line, I suggested it so that the contributor avoided Greg's bot when detecting the missing tag. As for noautosel, I wouldn't do that -- they want them sometimes, after all. Instead, I would reserve it for things that really shouldn't be picked for a given reason. I hope that clarifies a bit. Cheers, Miguel ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] rust: pci: fix incorrect platform references in doc comments 2025-09-15 6:28 ` Miguel Ojeda @ 2025-09-15 6:58 ` Manivannan Sadhasivam 0 siblings, 0 replies; 6+ messages in thread From: Manivannan Sadhasivam @ 2025-09-15 6:58 UTC (permalink / raw) To: Miguel Ojeda Cc: Rahul Rameshbabu, rust-for-linux, linux-pci, Danilo Krummrich, Bjorn Helgaas, Krzysztof Wilczyński, Miguel Ojeda, Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross On Mon, Sep 15, 2025 at 08:28:30AM GMT, Miguel Ojeda wrote: > On Mon, Sep 15, 2025 at 7:29 AM Manivannan Sadhasivam <mani@kernel.org> wrote: > > > > Why should a spelling fix be backported to stable? The stable kernel rules > > explicitly states that these kind of fixes should *not* be backported: > > > > - No "trivial" fixes without benefit for users (spelling changes, whitespace > > cleanups, etc). > > I am aware, but the stable team has autoselected a similar fix in the > past (and I asked them about it, precisely because of the rules > above). > > For typos outside doc comments, I wouldn't tag it (but they may still > autoselect it). > > For typos in rendered docs like this one, especially one that is not > just a spelling one (like this one), I think it is OK either way, and > a bit more worth it since these are meant to be rendered unlike > implementation comments. > > Thus, since this one was in the fuzzy line, I suggested it so that the > contributor avoided Greg's bot when detecting the missing tag. > > As for noautosel, I wouldn't do that -- they want them sometimes, > after all. Instead, I would reserve it for things that really > shouldn't be picked for a given reason. > > I hope that clarifies a bit. > Fair enough! - Mani -- மணிவண்ணன் சதாசிவம் ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-09-15 6:58 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-09-13 17:26 [PATCH] rust: pci: fix incorrect platform references in doc comments Rahul Rameshbabu 2025-09-13 19:08 ` Miguel Ojeda 2025-09-14 3:26 ` Rahul Rameshbabu 2025-09-15 5:29 ` Manivannan Sadhasivam 2025-09-15 6:28 ` Miguel Ojeda 2025-09-15 6:58 ` Manivannan Sadhasivam
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox