* [PATCH net-next] net: phy: qt2025: simplify Result<()> in probe return
@ 2024-11-18 13:09 Manas via B4 Relay
2024-11-18 14:15 ` Andrew Lunn
0 siblings, 1 reply; 4+ messages in thread
From: Manas via B4 Relay @ 2024-11-18 13:09 UTC (permalink / raw)
To: FUJITA Tomonori, Trevor Gross, Andrew Lunn, Heiner Kallweit,
Russell King, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni
Cc: Shuah Khan, Anup Sharma, netdev, rust-for-linux, linux-kernel, Manas
From: Manas <manas18244@iiitd.ac.in>
probe returns a `Result<()>` type, which can be simplified as `Result`,
due to default type parameters being unit `()` and `Error` types. This
maintains a consistent usage of `Result` throughout codebase.
Signed-off-by: Manas <manas18244@iiitd.ac.in>
---
drivers/net/phy/qt2025.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/qt2025.rs b/drivers/net/phy/qt2025.rs
index 1ab065798175b4f54c5f2fd6c871ba2942c48bf1..25c12a02baa255d3d5952e729a890b3ccfe78606 100644
--- a/drivers/net/phy/qt2025.rs
+++ b/drivers/net/phy/qt2025.rs
@@ -39,7 +39,7 @@ impl Driver for PhyQT2025 {
const NAME: &'static CStr = c_str!("QT2025 10Gpbs SFP+");
const PHY_DEVICE_ID: phy::DeviceId = phy::DeviceId::new_with_exact_mask(0x0043a400);
- fn probe(dev: &mut phy::Device) -> Result<()> {
+ fn probe(dev: &mut phy::Device) -> Result {
// Check the hardware revision code.
// Only 0x3b works with this driver and firmware.
let hw_rev = dev.read(C45::new(Mmd::PMAPMD, 0xd001))?;
---
base-commit: 8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b
change-id: 20241118-simplify-result-qt2025-1bb99d8e53ec
Best regards,
--
Manas <manas18244@iiitd.ac.in>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] net: phy: qt2025: simplify Result<()> in probe return
2024-11-18 13:09 [PATCH net-next] net: phy: qt2025: simplify Result<()> in probe return Manas via B4 Relay
@ 2024-11-18 14:15 ` Andrew Lunn
2024-11-18 14:28 ` Manas
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2024-11-18 14:15 UTC (permalink / raw)
To: manas18244
Cc: FUJITA Tomonori, Trevor Gross, Heiner Kallweit, Russell King,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Shuah Khan, Anup Sharma, netdev, rust-for-linux, linux-kernel
On Mon, Nov 18, 2024 at 06:39:34PM +0530, Manas via B4 Relay wrote:
> From: Manas <manas18244@iiitd.ac.in>
>
> probe returns a `Result<()>` type, which can be simplified as `Result`,
> due to default type parameters being unit `()` and `Error` types. This
> maintains a consistent usage of `Result` throughout codebase.
>
> Signed-off-by: Manas <manas18244@iiitd.ac.in>
Miguel has already pointed out, this is probably not sufficient for a
signed-off-by: You need a real name here, in order to keep the lawyers happy.
Also, each subsystem has its own way of doing things. Please take a
read of:
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
Andrew
---
pw-bot: cr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] net: phy: qt2025: simplify Result<()> in probe return
2024-11-18 14:15 ` Andrew Lunn
@ 2024-11-18 14:28 ` Manas
2024-11-18 21:23 ` Shuah Khan
0 siblings, 1 reply; 4+ messages in thread
From: Manas @ 2024-11-18 14:28 UTC (permalink / raw)
To: Andrew Lunn
Cc: FUJITA Tomonori, Trevor Gross, Heiner Kallweit, Russell King,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Shuah Khan, Anup Sharma, netdev, rust-for-linux, linux-kernel
On 18.11.2024 15:15, Andrew Lunn wrote:
>On Mon, Nov 18, 2024 at 06:39:34PM +0530, Manas via B4 Relay wrote:
>> From: Manas <manas18244@iiitd.ac.in>
>>
>> probe returns a `Result<()>` type, which can be simplified as `Result`,
>> due to default type parameters being unit `()` and `Error` types. This
>> maintains a consistent usage of `Result` throughout codebase.
>>
>> Signed-off-by: Manas <manas18244@iiitd.ac.in>
>
>Miguel has already pointed out, this is probably not sufficient for a
>signed-off-by: You need a real name here, in order to keep the lawyers happy.
>
Hi Andrew, I did clarify that "Manas" is my real name, (as in what the official
documents have). It is not a pseudonym. I am unsure if I am missing something
here.
>Also, each subsystem has its own way of doing things. Please take a
>read of:
>
>https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
>
> Andrew
>
>---
>pw-bot: cr
I did take a look at the subsystem docs. I added target tree `net-next` and
added all prefixes. I thought `Fixes:` tag wouldn't be appropriate here.
I missed the Link: and Suggested by: tags as I was moving from v1. I will add
those.
--
Manas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] net: phy: qt2025: simplify Result<()> in probe return
2024-11-18 14:28 ` Manas
@ 2024-11-18 21:23 ` Shuah Khan
0 siblings, 0 replies; 4+ messages in thread
From: Shuah Khan @ 2024-11-18 21:23 UTC (permalink / raw)
To: Manas, Andrew Lunn
Cc: FUJITA Tomonori, Trevor Gross, Heiner Kallweit, Russell King,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Anup Sharma, netdev, rust-for-linux, linux-kernel, Shuah Khan
On 11/18/24 07:28, Manas wrote:
> On 18.11.2024 15:15, Andrew Lunn wrote:
>> On Mon, Nov 18, 2024 at 06:39:34PM +0530, Manas via B4 Relay wrote:
>>> From: Manas <manas18244@iiitd.ac.in>
>>>
>>> probe returns a `Result<()>` type, which can be simplified as `Result`,
>>> due to default type parameters being unit `()` and `Error` types. This
>>> maintains a consistent usage of `Result` throughout codebase.
>>>
>>> Signed-off-by: Manas <manas18244@iiitd.ac.in>
>>
>> Miguel has already pointed out, this is probably not sufficient for a
>> signed-off-by: You need a real name here, in order to keep the lawyers happy.
>>
> Hi Andrew, I did clarify that "Manas" is my real name, (as in what the official
> documents have). It is not a pseudonym. I am unsure if I am missing something
> here.
>
Using your full name in your Signed-off-by clearly identifies the author.
I would recommend going that route.
thanks,
-- Shuah
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-11-18 21:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-18 13:09 [PATCH net-next] net: phy: qt2025: simplify Result<()> in probe return Manas via B4 Relay
2024-11-18 14:15 ` Andrew Lunn
2024-11-18 14:28 ` Manas
2024-11-18 21:23 ` Shuah Khan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®