From: Simon Horman <horms@kernel.org>
To: ALOK TIWARI <alok.a.tiwari@oracle.com>
Cc: anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com,
intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, darren.kenny@oracle.com
Subject: Re: [Intel-wired-lan] [External] : Re: [PATCH] ixgbe: Fix typos and clarify comments in X550 driver code
Date: Fri, 23 May 2025 08:19:09 +0100 [thread overview]
Message-ID: <20250523071909.GO365796@horms.kernel.org> (raw)
In-Reply-To: <ce71fa5a-32c0-4cc2-b537-5849d9bdea69@oracle.com>
On Thu, May 22, 2025 at 11:41:00PM +0530, ALOK TIWARI wrote:
> Hi Simon,
>
> Thanks for Your review.
>
> On 22-05-2025 22:51, Simon Horman wrote:
> > > @@ -1754,7 +1754,7 @@ ixgbe_setup_mac_link_sfp_n(struct ixgbe_hw *hw, ixgbe_link_speed speed,
> > > ret_val = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear);
> > > /* If no SFP module present, then return success. Return success since
> > > - * SFP not present error is not excepted in the setup MAC link flow.
> > > + * SFP not present error is not accepted in the setup MAC link flow.
> > I wonder if "excepted" was supposed to be "expected".
>
>
> Yes, "expected" definitely reads more naturally. However, I noticed that in
> one place, the comment uses "accepted" instead — perhaps to imply a policy
> or behavior enforcement.
Understood. I did hesitate in writing my previous email as I'm not entirely
sure what the intention was. I do agree that accepted makes sense.
And I'm happy to keep that in the absence of more information.
>
> ------------------
> static int
> ixgbe_setup_mac_link_sfp_x550em(struct ixgbe_hw *hw,
> ixgbe_link_speed speed,
> __always_unused bool
> autoneg_wait_to_complete)
> {
> bool setup_linear = false;
> u16 reg_slice, reg_val;
> int status;
>
> /* Check if SFP module is supported and linear */
> status = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear);
>
> /* If no SFP module present, then return success. Return success
> since
> * there is no reason to configure CS4227 and SFP not present error
> is
> * not accepted in the setup MAC link flow.
> */
> if (status == -ENOENT)
> --------------------
>
> >
> > > */
> > > if (ret_val == -ENOENT)
> > > return 0;
> > > @@ -1804,7 +1804,7 @@ ixgbe_setup_mac_link_sfp_x550a(struct ixgbe_hw *hw, ixgbe_link_speed speed,
> > > ret_val = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear);
> > > /* If no SFP module present, then return success. Return success since
> > > - * SFP not present error is not excepted in the setup MAC link flow.
> > > + * SFP not present error is not accepted in the setup MAC link flow.
> > Ditto.
> >
> > > */
> > > if (ret_val == -ENOENT)
> > > return 0;
> > The above notwithstanding, this looks good to me.
> >
> > Reviewed-by: Simon Horman<horms@kernel.org>
>
>
> Thanks,
> Alok
>
WARNING: multiple messages have this Message-ID (diff)
From: Simon Horman <horms@kernel.org>
To: ALOK TIWARI <alok.a.tiwari@oracle.com>
Cc: anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com,
andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com,
intel-wired-lan@lists.osuosl.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, darren.kenny@oracle.com
Subject: Re: [External] : Re: [PATCH] ixgbe: Fix typos and clarify comments in X550 driver code
Date: Fri, 23 May 2025 08:19:09 +0100 [thread overview]
Message-ID: <20250523071909.GO365796@horms.kernel.org> (raw)
In-Reply-To: <ce71fa5a-32c0-4cc2-b537-5849d9bdea69@oracle.com>
On Thu, May 22, 2025 at 11:41:00PM +0530, ALOK TIWARI wrote:
> Hi Simon,
>
> Thanks for Your review.
>
> On 22-05-2025 22:51, Simon Horman wrote:
> > > @@ -1754,7 +1754,7 @@ ixgbe_setup_mac_link_sfp_n(struct ixgbe_hw *hw, ixgbe_link_speed speed,
> > > ret_val = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear);
> > > /* If no SFP module present, then return success. Return success since
> > > - * SFP not present error is not excepted in the setup MAC link flow.
> > > + * SFP not present error is not accepted in the setup MAC link flow.
> > I wonder if "excepted" was supposed to be "expected".
>
>
> Yes, "expected" definitely reads more naturally. However, I noticed that in
> one place, the comment uses "accepted" instead — perhaps to imply a policy
> or behavior enforcement.
Understood. I did hesitate in writing my previous email as I'm not entirely
sure what the intention was. I do agree that accepted makes sense.
And I'm happy to keep that in the absence of more information.
>
> ------------------
> static int
> ixgbe_setup_mac_link_sfp_x550em(struct ixgbe_hw *hw,
> ixgbe_link_speed speed,
> __always_unused bool
> autoneg_wait_to_complete)
> {
> bool setup_linear = false;
> u16 reg_slice, reg_val;
> int status;
>
> /* Check if SFP module is supported and linear */
> status = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear);
>
> /* If no SFP module present, then return success. Return success
> since
> * there is no reason to configure CS4227 and SFP not present error
> is
> * not accepted in the setup MAC link flow.
> */
> if (status == -ENOENT)
> --------------------
>
> >
> > > */
> > > if (ret_val == -ENOENT)
> > > return 0;
> > > @@ -1804,7 +1804,7 @@ ixgbe_setup_mac_link_sfp_x550a(struct ixgbe_hw *hw, ixgbe_link_speed speed,
> > > ret_val = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear);
> > > /* If no SFP module present, then return success. Return success since
> > > - * SFP not present error is not excepted in the setup MAC link flow.
> > > + * SFP not present error is not accepted in the setup MAC link flow.
> > Ditto.
> >
> > > */
> > > if (ret_val == -ENOENT)
> > > return 0;
> > The above notwithstanding, this looks good to me.
> >
> > Reviewed-by: Simon Horman<horms@kernel.org>
>
>
> Thanks,
> Alok
>
next prev parent reply other threads:[~2025-05-23 7:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-22 7:47 [Intel-wired-lan] [PATCH] ixgbe: Fix typos and clarify comments in X550 driver code Alok Tiwari
2025-05-22 7:47 ` Alok Tiwari
2025-05-22 17:21 ` [Intel-wired-lan] " Simon Horman
2025-05-22 17:21 ` Simon Horman
2025-05-22 18:11 ` [Intel-wired-lan] [External] : " ALOK TIWARI
2025-05-22 18:11 ` ALOK TIWARI
2025-05-23 7:19 ` Simon Horman [this message]
2025-05-23 7:19 ` Simon Horman
2025-05-22 20:53 ` [Intel-wired-lan] " Jacob Keller
2025-05-22 20:53 ` Jacob Keller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250523071909.GO365796@horms.kernel.org \
--to=horms@kernel.org \
--cc=alok.a.tiwari@oracle.com \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=darren.kenny@oracle.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.