From: Simon Horman <horms@kernel.org>
To: Karol Kolacinski <karol.kolacinski@intel.com>
Cc: intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com
Subject: Re: [PATCH v7 iwl-next 5/6] ice: Add timestamp ready bitmap for E830 products
Date: Sat, 24 Aug 2024 14:32:23 +0100 [thread overview]
Message-ID: <20240824133223.GK2164@kernel.org> (raw)
In-Reply-To: <20240820102402.576985-13-karol.kolacinski@intel.com>
On Tue, Aug 20, 2024 at 12:21:52PM +0200, Karol Kolacinski wrote:
> E830 PHY supports timestamp ready bitmap.
> Enable the bitmap by refactoring tx init function.
>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
...
> @@ -3344,20 +3327,13 @@ static int ice_ptp_init_port(struct ice_pf *pf, struct ice_ptp_port *ptp_port)
> mutex_init(&ptp_port->ps_lock);
>
> switch (hw->mac_type) {
> - case ICE_MAC_E810:
> - case ICE_MAC_E830:
> - return ice_ptp_init_tx_e810(pf, &ptp_port->tx);
> case ICE_MAC_GENERIC:
> kthread_init_delayed_work(&ptp_port->ov_work,
> ice_ptp_wait_for_offsets);
> -
> return ice_ptp_init_tx_e82x(pf, &ptp_port->tx,
> ptp_port->port_num);
> - case ICE_MAC_GENERIC_3K_E825:
> - return ice_ptp_init_tx_eth56g(pf, &ptp_port->tx,
> - ptp_port->port_num);
> default:
> - return -ENODEV;
> + return ice_ptp_init_tx(pf, &ptp_port->tx, ptp_port->port_num);
> }
I think it would be better to maintain default as an error case
for unknown mac_type values. (completely untested!)
switch (hw->mac_type) {
case ICE_MAC_E810:
case ICE_MAC_E830:
case ICE_MAC_GENERIC_3K_E825:
return ice_ptp_init_tx(pf, &ptp_port->tx, ptp_port->port_num);
case ICE_MAC_GENERIC:
kthread_init_delayed_work(&ptp_port->ov_work,
ice_ptp_wait_for_offsets);
return ice_ptp_init_tx_e82x(pf, &ptp_port->tx,
ptp_port->port_num);
default:
return -ENODEV;
}
And update the Return: section in the Kernel doc accordingly.
> }
...
next prev parent reply other threads:[~2024-08-24 13:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 10:21 [PATCH v7 iwl-next 0/6] ice: Implement PTP support for E830 devices Karol Kolacinski
2024-08-20 10:21 ` [PATCH v7 iwl-next 1/6] ice: Remove unncecessary ice_is_e8xx() functions Karol Kolacinski
2024-08-23 20:15 ` Simon Horman
2024-08-27 11:32 ` Kolacinski, Karol
2024-08-20 10:21 ` [PATCH v7 iwl-next 2/6] ice: Use FIELD_PREP for timestamp values Karol Kolacinski
2024-08-23 20:16 ` Simon Horman
2024-08-20 10:21 ` [PATCH v7 iwl-next 3/6] ice: Implement PTP support for E830 devices Karol Kolacinski
2024-08-23 20:33 ` Simon Horman
2024-08-20 10:21 ` [PATCH v7 iwl-next 4/6] ice: Process TSYN IRQ in a separate function Karol Kolacinski
2024-08-23 20:32 ` Simon Horman
2024-08-20 10:21 ` [PATCH v7 iwl-next 5/6] ice: Add timestamp ready bitmap for E830 products Karol Kolacinski
2024-08-24 13:32 ` Simon Horman [this message]
2024-08-20 10:21 ` [PATCH v7 iwl-next 6/6] ice: combine cross timestamp functions for E82x and E830 Karol Kolacinski
2024-08-24 13:24 ` Simon Horman
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=20240824133223.GK2164@kernel.org \
--to=horms@kernel.org \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=karol.kolacinski@intel.com \
--cc=netdev@vger.kernel.org \
--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 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).