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,
Michal Michalik <michal.michalik@intel.com>,
Milena Olech <milena.olech@intel.com>,
Paul Greenwalt <paul.greenwalt@intel.com>
Subject: Re: [PATCH v7 iwl-next 3/6] ice: Implement PTP support for E830 devices
Date: Fri, 23 Aug 2024 21:33:37 +0100 [thread overview]
Message-ID: <20240823203337.GH2164@kernel.org> (raw)
In-Reply-To: <20240820102402.576985-11-karol.kolacinski@intel.com>
On Tue, Aug 20, 2024 at 12:21:50PM +0200, Karol Kolacinski wrote:
> From: Michal Michalik <michal.michalik@intel.com>
>
> Add specific functions and definitions for E830 devices to enable
> PTP support.
> Introduce new PHY model ICE_PHY_E830.
> E830 devices support direct write to GLTSYN_ registers without shadow
> registers and 64 bit read of PHC time.
>
> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
> Co-developed-by: Milena Olech <milena.olech@intel.com>
> Signed-off-by: Milena Olech <milena.olech@intel.com>
> Co-developed-by: Paul Greenwalt <paul.greenwalt@intel.com>
> Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
> Signed-off-by: Michal Michalik <michal.michalik@intel.com>
> Co-developed-by: Karol Kolacinski <karol.kolacinski@intel.com>
> Signed-off-by: Karol Kolacinski <karol.kolacinski@intel.com>
...
> diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c
...
> @@ -1405,10 +1416,11 @@ void ice_ptp_link_change(struct ice_pf *pf, u8 port, bool linkup)
>
> switch (hw->mac_type) {
> case ICE_MAC_E810:
> - /* Do not reconfigure E810 PHY */
> + case ICE_MAC_E830:
> + /* Do not reconfigure E810 or E830 PHY */
> return;
> - case ICE_MAC_GENERIC_3K_E825:
> case ICE_MAC_GENERIC:
> + case ICE_MAC_GENERIC_3K_E825:
> ice_ptp_port_phy_restart(ptp_port);
> return;
> default:
The re-ordering of ICE_MAC_GENERIC_3K_E825 does not feel like it belongs
in this patch. Perhaps it can be squashed into the earlier patch
in the series that adds the code that is being shuffled here?
...
> @@ -3271,10 +3285,8 @@ 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_GENERIC_3K_E825:
> - return ice_ptp_init_tx_eth56g(pf, &ptp_port->tx,
> - ptp_port->port_num);
> 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,
> @@ -3282,6 +3294,9 @@ static int ice_ptp_init_port(struct ice_pf *pf, struct ice_ptp_port *ptp_port)
>
> 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;
> }
Ditto.
...
next prev parent reply other threads:[~2024-08-23 20:33 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 [this message]
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
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=20240823203337.GH2164@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=michal.michalik@intel.com \
--cc=milena.olech@intel.com \
--cc=netdev@vger.kernel.org \
--cc=paul.greenwalt@intel.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 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).